-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 11 May 2010, Phil Howard wrote:
actually it looks like, nobody uses passwd-file like you do :)
The doc at http://wiki.dovecot.org/AuthDatabase/PasswdFile would lead to your assumption of operation, that is:
- you auth using user@domain
- look up the user in the domain-specific file without domain
- but you don't overwrite "user", hence, further processing should have the domainin %d
Could you verify that the domain gets stripped by setting mail_debug, auth_verbose and auth_debug?
This page http://wiki.dovecot.org/VirtualUsers catches my eyes:
"In the above examples users are expected to log in as "user@domain". Their mail is kept in their home directory at /home/<domain>/<username>/Maildir.
The usernames in the passwd and shadow files are expected to contain only the user part, no domain. This is because the path itself already contained %d to specify the domain. If you want the files to contain full user@domain names, you can use %0.d instead of %d."
This is exactly what you want, IMO.
These pages also describes your idea: http://neranjara.org/article/title/How_to_configure_PostFix_and_Dovecot_for_...
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS+pku7+Vh58GPL/cAQKbnAf+Ow0xbN3LcUqNWJ0fsZV2wy0o8/LCHjQR RynUPYP5XWGhb4WIwZesmwd7Lo/Pi0l0vnqHKVgRBB827KuvxFJk7Nab7ZI2xM5W 4OHRrPz5SvKQGagoN2p7uf5D3Njdlg4HKoeW0ikp67jR8I8Mu16Mp9BPSv/7eqbL ViulJRqNU4gdnadF/XEh1g+mWFxNAUT6KeMxcihdA+C6FA4wM8NSZqoKScfFD1xp FPin+oN0PebY8I5Pr1zKdCCCn889lShU/GvdKlgqcq80Ue5/NR3X0LcktjdDgyqW Elgq2OyLummQu2aZ0a9ULyZKsoaNYnV4s75C0R1cRM/3uPeXiqPbKQ== =V1gw -----END PGP SIGNATURE-----