Kyle
2007-Jan-01 01:28 UTC
[Dovecot] DvCot/PstFix Virtual Domains Virtual Users PAM Authentication - How pls
Hi Folks, I'm hoping some one can set me straight here please. Postfix 2.1.5 Dovecot 0.99.11-2 I have Postfix set up on a new box with Virtual Domains and Virtual Users using MailDir format with their mail homes in /var/spool/mail/<domain>/<user> I want Dovecot to login using PAM Authentication. The idea is to host multiple domains which each have multiple aliases which resolve to one email account for their respective domain but using a user name which actually _is_ a system user. So I might have; jo at abc.com joe at abc.com joey at abc.com pete at abc.com peter at abc.com jo at xyz.com joe at xyz.com joey at xyz.com pete at xyz.com peter at xyz.com where 'joe' and 'peter' are both system users each with mail homes of; /var/spool/mail/abc.com/joe /var/spool/mail/abc.com/peter /var/spool/mail/xyz.com/joe /var/spool/mail/xyz.com/peter In my dovecot.conf, I have; auth_userdb = static uid=89 gid=89 home=/var/spool/mail/%d/%u auth_passdb = pam If I login with just 'joe', I get; Fatal: chdir(/var/spool/mail//joe) failed with uid 89: Not a directory Fair enough, that sounds logical to me. But if I then login with 'joe at abc.com', I get; PAM: pam_authenticate(joe at abc.com) failed: Authentication failure So it appears Dovecot is checking PAM for 'joe at abc.com' rather than just 'joe'. How can I make it check for just 'joe' please? -- ------------------------------------------------------------------------ Kind Regards Kyle -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://dovecot.org/pipermail/dovecot/attachments/20070101/70ea2690/attachment-0001.html>
Timo Sirainen
2007-Jan-03 21:25 UTC
[Dovecot] DvCot/PstFix Virtual Domains Virtual Users PAM Authentication - How pls
On 1.1.2007, at 3.28, Kyle wrote:> Dovecot 0.99.11-2Use 1.0rc instead. 0.99 isn't supported anymore.> So it appears Dovecot is checking PAM for 'joe at abc.com' rather than > just 'joe'. How can I make it check for just 'joe' please?auth_username_format = %n Requires 1.0rc. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070103/aaad5c62/attachment.bin>