I am running a Debian Lenny machine with Postfix 2.5.5 and Dovecot 2.0.8. Up until now I ran Postfix with the Procmail delivery agent succesfully. The machine has only local users; I am not using virtual mailboxes. Due to obvious reasons I want to switch to Dovecot LDA delivery, through LMTP.
I spend quite some time finding 'the' configuration for both Postfix and Dovecot, but without success. Find my current configuration below. Postfix receives the e-mail, but delivery through LMTP fails, resulting in Postfix sending an NDR.
I just cannot figure out what's wrong and I am not sure whether it's a Postfix or Dovecot problem either. Some log output from Postfix:
No. The LMTP protocol, like SMTP requires complete email addresses.
Wietse
Additionally, overriding local_transport means you won't be able to use
the standard alias_maps setting to list valid local recipients - you
have to customize these for dovecot LMTP.
Simply put, /etc/aliases no longer works; you'll have to set up
virtual_alias_maps for all your local aliases.
This also means you can't alias or forward to commands anymore; any
command execution you wish to do will have to be set up as a
full-fledged pipe(8) transport.
Consider using mailbox_transport instead.
--
J.
Better scalability, performance, and error handling than is possible
with the pipe-to-command interface.
> In Postfix documentation, I've read about lmtp that "The advantage of
> this setup is that one Postfix machine can feed multiple mailbox servers
> over LMTP. The opposite is true as well: one mailbox server can be fed
> over LMTP by multiple Postfix machines."
>
> And I wonder:
>
> 1. Can't this be done also with Dovecot LDA?
Yes, if you limit yourself to one machine.
Wietse
I am running a Debian Lenny machine with Postfix 2.5.5 and Dovecot 2.0.8. Up until now I ran Postfix with the Procmail delivery agent succesfully. The machine has only local users; I am not using virtual mailboxes. Due to obvious reasons I want to switch to Dovecot LDA delivery, through LMTP.
I spend quite some time finding 'the' configuration for both Postfix and Dovecot, but without success. Find my current configuration below. Postfix receives the e-mail, but delivery through LMTP fails, resulting in Postfix sending an NDR.
I just cannot figure out what's wrong and I am not sure whether it's a Postfix or Dovecot problem either. Some log output from Postfix:
I finally figured out what's wrong. It appears that Dovecot in fact is checking the existance of user 're...@hostname.domain.tld' in one of the configured user databases. Obviously, local users/usernames do not have the local domain added.
Adding
userdb {
driver = passwd-file
args = username_format=%n /etc/passwd
}
to the 'protocol lmtp { }' block solves the issue.