2 messages in net.sourceforge.lists.courier-users[courier-users] aliases in mysql
FromSent OnAttachments
Leonardo Rochael AlmeidaMay 25, 2000 5:09 pm 
Sam VarshavchikMay 25, 2000 5:28 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] aliases in mysqlActions...
From:Leonardo Rochael Almeida (lr@insite.com.br)
Date:May 25, 2000 5:09:12 pm
List:net.sourceforge.lists.courier-users

Hi,

I'm a sysadmin in a virtual hosting provider, and courier's integration with mysql in all aspects (delivery and pop, imap and web serving) has called my attention. There is one thing I couldn't make out of the documentation, though (and that I'm to lazy to look up in the sources):

Is it possible to specify aliases or some kind of redirection via the authlib mechanism (and, consequently, thru mysql)? It would be a nice feature since the provider I work for offers e-mail redirection and pop mailboxes, and some clients have some of both. It would be nice to be able to configure aliasing thru mysql tables, instead of having to put a dot-courier file in the virtual account home or fiddling with files in the @sysconfdir@/aliases directory.

For instance, if the "home directory" field of the authlib mechanism specified an e-mail address instead of a home directory, courier could assume it is an alias instead of a directory and act accordingly. Of course this would not work for normal authentication, since the authlib process has to chdir to the home directory, but it could be made to work for courier and would have the side effect of failing the authentication for other services (pop, imap,...), which is the desired effect. On the other hand, the authentication stage probably occurs after all aliases lookups, so aliasing at this stage would be a kludge equivalent to assuming that the homedir contains a dot-courier containing a single line with the aliased e-mail address.

Come to think of it, it would be nice to be able to feed the contents of a dot-courier from an authlib module (as a pipe or in some environment variable), instead of (or along with) returning (or chdir'ing to) the homedir, this way we could have the whole power of dot-courier in mysql tables, for example.

Another possibility is to have a way to assemble aliases.dat from mysql tables, or I could just stop being lazy and code in the script to populate the aliases directory from mysql tables :-)

Regards, Leo