[Dovecot] Deliver all addresses to the same mdbox:?
For archiving purposes I'm delivering all addresses to the same mdbox: like this:
passdb { driver = passwd-file args = username_format=%u /etc/dovecot/passwd }
userdb { driver = static args = uid=1000 gid=1000 home=/home/copymail allow_all_users=yes }
Yet I'm getting this:
Jan 3 19:03:27 mail postfix/lmtp[29378]: 3THjg02wfWzFvmL: to=
In short: backup.invalid is delivered to dovecot by means of LMTP (local socket). I thought my static mapping in userdb would enable the lmtp listener to accept ALL recipients and map their $home to /home/copymail - why is that not working?
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
On 3.1.2012, at 20.09, Ralf Hildebrandt wrote:
For archiving purposes I'm delivering all addresses to the same mdbox: like this:
passdb { driver = passwd-file args = username_format=%u /etc/dovecot/passwd }
userdb { driver = static args = uid=1000 gid=1000 home=/home/copymail allow_all_users=yes }
allow_all_users=yes is used only when the passdb is incapable of telling if the user exists or not.
Yet I'm getting this:
Jan 3 19:03:27 mail postfix/lmtp[29378]: 3THjg02wfWzFvmL: to=
, relay=mail.charite.de[private/dovecot-lmtp], conn_use=20, delay=323, delays=323/0/0/0, dsn=4.1.1, status=SOFTBOUNCE (host mail.charite.de[private/dovecot-lmtp] said: 550 5.1.1 <"firstname.lastname@charite.de"@backup.invalid> User doesn't exist: "firstname.lastname@charite.de"@backup.invalid (in reply to RCPT TO command))
Fails because user doesn't exist in passwd-file, I guess.
Maybe use passdb static? If you also need authentication to work, put passdb static in protocol lmtp {} and passdb passwd-file in protocol !lmtp {}
- Timo Sirainen tss@iki.fi:
On 3.1.2012, at 20.09, Ralf Hildebrandt wrote:
For archiving purposes I'm delivering all addresses to the same mdbox: like this:
passdb { driver = passwd-file args = username_format=%u /etc/dovecot/passwd }
userdb { driver = static args = uid=1000 gid=1000 home=/home/copymail allow_all_users=yes }
allow_all_users=yes is used only when the passdb is incapable of telling if the user exists or not.
Ah, damn :|
Fails because user doesn't exist in passwd-file, I guess.
Indeed.
Maybe use passdb static?
Right now I simply solved it by using + addressing like this:
Jan 3 19:42:49 mail postfix/lmtp[2728]: 3THkfd20f1zFvlF: to=backup+first.last+charite.de@backup.invalid, relay=mail.charite.de[private/dovecot-lmtp], delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (250 2.0.0 backup+first.last+charite.de@backup.invalid IHdDM9VLA0/aCwAAY73zkw Saved)
Call me lazy :)
If you also need authentication to work, put passdb static in protocol lmtp {} and passdb passwd-file in protocol !lmtp {}
Ah yes, good idea.
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
participants (2)
-
Ralf Hildebrandt
-
Timo Sirainen