Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Any solution about multiple POP3 servers ? #3

Open
allensph opened this Issue Mar 13, 2012 · 9 comments

Comments

Projects
None yet
2 participants

We have 4 email servers with different mail domains in our school,
is it possible to add multiple POP3 servers in this tool ?

Thanks a lot.

Owner

kevinoid commented Mar 14, 2012

Can you describe in a bit more detail how you would like the software to interact with the multiple mail servers? I would guess you are looking for one of the following scenarios:

  1. The plugin attempts to login to each configured mail server and grants access if any of them succeed (union of users across multiple mail servers).
  2. The plugin attempts to login to each configured mail server and grants access if all of them succeed (intersection of users across multiple mail servers).
  3. The plugin attempts to connect to one of the configured mail servers (at random) and uses the result of the single connection attempt (for load-balancing).
  4. Something else?

Yes, the status 1 is what I'm talking about.
That well be great if we can add/remove servers in admin panel.
(Consider to most situations, each server have different options.)

Plz feel free to let me know if something is not clear.
Thanks again for your kind response.

Owner

kevinoid commented Mar 30, 2012

I've been playing around with a few possible solutions and considering the issue and here's the conclusion I have come to for the moment:

The ideal implementation (in my view) would be for Joomla! CMS to support multiple instances of authentication plugins. The problem is not specific to this plugin and it would make sense to authenticate against multiple LDAP servers, multiple databases, etc. for many plugin types. It is also the most elegant, since all of the parameters could theoretically be different for each server. However, I do not have the time available to advocate for or implement this solution.

I am also hesitant to add the code for multiple servers (as fallback, with shared parameter values) to the plugin for 2 main reasons: The first is that I don't see this as a major use case (correct me if I am wrong about this - both OP and future users who see this bug and want to add their vote). In my experience, this would be handled by a load-balancer or frontend/backend setup allowing users to access multiple servers through a single name rather than instructing users to use different servers (although I have seen this in academia). The other, more trivial, reason is that there is no elegant way to do it. Joomla! does not support a multiple-text-value parameter type, so it would require parsing a textarea field or creating a custom parameter type, which are both less than ideal.

However, that being said, it shouldn't be hard to simply copy the code for the plugin and rename it to "mailbox2" "mailbox3" etc to get the equivalent of multiple instances of the plugin running simultaneously. If you are interested in this solution, I'd be happy to assist you in making it work. (If so, send me a message to coordinate - if others are interested as well, I'll put up a wiki page and/or reconsider implementing this feature.)

Greetings! Thanks for your reply.

For years, developers using POP3 authentication for almost all academic information systems, and keep 4 different mail domain in campus at the same time( for some "history" or "politic" issues, aha) , but NO LDAP server.. in most case, they provide an ugly drop down list in login form to let users choosing their mail sub-domain, "instructing users to use different servers", like you said.

That's my problem: I am trying build something in Joomla for campus, and keep POP3 authentication for users habit, but there's no LDAP service.So, it's important for me to find solutions, or Joomla won't be an option at all.

I've tried a little hack around codes, but it's not working.
I'm interested in any possible solution,
and it will be nice if you can explain more details about it.
Thank you.

Owner

kevinoid commented Apr 17, 2012

Sure, I can put up a version of auth-mailbox-joomla with the appropriate changes made so that you can use it as a reference (or just drop it in). Which version of Joomla! are you using?

I am using version 2.5.4

Owner

kevinoid commented Apr 18, 2012

Ok. I've uploaded auth-mailbox-joomla-1.0.5-multiple-instances.zip which contains 4 copies of auth-mailbox-joomla which can be installed simultaneously. To use it, download the file and unzip it, then install each of the 4 zip files using the Joomla! Extension Manager, then enable and configure each of the plugin instances using the Plug-in Manager with each plugin authenticating against a different server. Let me know how that works for you.

kevinoid added a commit that referenced this issue Feb 9, 2014

Clarify supported and unsupported features in the README
It was not totally clear what the plugin does and what it does not do.
Attempt to clean up the README to make this clearer.

Fixes #3.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

kevinoid added a commit that referenced this issue Feb 9, 2014

Clarify supported and unsupported features in the README
It was not totally clear what the plugin does and what it does not do.
Attempt to clean up the README to make this clearer.

Fixes #3.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

@kevinoid kevinoid closed this in 06c78b6 Feb 9, 2014

Owner

kevinoid commented Feb 9, 2014

Sorry, closed the wrong issue from a recent commit. This feature is still pending. Sorry for the nosie.

@kevinoid kevinoid reopened this Feb 9, 2014

Hello Kevin, thanks for your help! sorry for not giving you a prompt reply.
The multiple instances works well on Joomla 2.5.4 but not support on 3.4.1 today.
Is it possible to have a multiple instance version for Joomla 3.4 ?
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment