[Dovecot] Deliver all addresses to the same mdbox:?

Timo Sirainen tss at iki.fi
Tue Jan 3 20:34:11 EET 2012


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=<firstname.lastname at charite.de@backup.invalid>,
> 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 at charite.de"@backup.invalid> User doesn't exist: "firstname.lastname at 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 {}


More information about the dovecot mailing list