[Dovecot] LMTP Setup/Design Help Request

Andreas K. andreas at cymail.eu
Tue Apr 9 00:46:37 EEST 2013


On 08-04-2013 22:39, Matthias Hofer wrote:
> Hi altogether,
>
> I am switching from dbmail 2.2 to dovecot 2.1.7, and I was able to do
> a successful transition of IMAP. But I
> had a very hard time with receiving mail, and in the end -- after
> loads of reading and debugging -- I broke
> down and failed. This is why I am asking you for your kind help.
>
> I only have virtual users and have set
>
> mail_uid = dovemail
> mail_gid = dovemail
>
> For authentication, I simply use (for now) a flat file:
>
> passdb {
>   driver = passwd-file
>   args = scheme=PLAIN username_format=%u /etc/dovecot/mypasswd.file
> }
>
> # cat /etc/dovecot/mypasswd.file
> user1:{PLAIN}userpw1
> user2:{PLAIN}userpw2
> user3:{PLAIN}userpw3
>
> And everything works fine with IMAP. I am completely domain-agnostic 
> here.
> But I was not able to use this fine setup to receive mails with my
> postfix. I tried about 13 different
> configurations, some with considerable changes dovecot-config, the
> passwd-file or postfix, but I could not
> find a single variant working.
>
> In this situation, I would be very happy if somebody could give me a
> hint, which would be the prudent way to
> configure dovecot, LDA/LMTP and postfix based on the setup above.
>
> Thank you very much in advance, and have a great time,
>
> Matthias Hofer

I suppose your postfix is in working state. Note that you do not need 
dovecot
to deliver mail with postfix. But it is a good idea. To deliver using 
dovecot-lda
my postfix main.cf contains

mail_spool_directory = /Mail/
mailbox_command = /usr/local/libexec/dovecot/dovecot-lda -f "$SENDER" 
-a "$RECIPIENT"



More information about the dovecot mailing list