[Dovecot] Domain part / auth_username_format

Robert Coup
Wed, 13 Jun 2007 12:23:06 -0000

Timo Sirainen said:
> Do you mean that you want to have user at domain1.org and user at
domain2.org
> have the same password but different maildirs?

Yes. Basically using the domain part as a variable :)

> What passdb and userdb
> are you using? I don't think there's a way to do this with auth_*
> settings. With SQL it would be easy.

Currently I'm using PAM, but I could probably hack up a checkpassword
script or some sql auth. auth_username_format is very close except the %d
disappears when it comes to evaluate mail_location!

Thanks,

Rob :)