Mark Constable writes:

On 07/11/14 21:52, Sam Varshavchik wrote:
>> Is it possible to add authmysql twice (and have them behave differently)?
>
> Nope. You could list authmysql twice, but each instance uses the same config
> file.

Maybe falling over to different auth backends might work but, Sam, it would
be really neat to somehow have sane multiple auth options. For instance I
would love to have separate imap/pop and smtp auth passwords so if a users
incoming mail password is compromised the virus/bot still can't send out
using the same account (assuming the user takes advantage of multi passwords).

That's already doable with authmysql, authpgsql, or authsqlite. They can execute a custom SQL query. The $(service) variable expands to the service being authenticated. You could customize the query to have something like "WHERE username='$(local_part)' AND service='$(service)'", and have multiple entries in the table for each service being authenticated, each one with a different password.


Attachment: pgpcwwiNo5yb2.pgp
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to