Edward Carraro
2010-Sep-23 17:44 UTC
[Dovecot] execvp /usr/local/libexec/dovecot/dovecot-lda: Permission denied
I'm trying to follow the instructions for configuring Dovecot LMTP with postfix for virtual domains but whenever mail arrives, in /var/log/maillog, I see Sep 23 16:01:20 mybox postfix/pipe[572]: 999C83206C6: to=< user at mytest.domain.com>, relay=dovecot, delay=0.08, delays=0.04/0.01/0/0.03, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /usr/local/libexec/dovecot/dovecot-lda: Permission denied ) ls -lh for /usr/local/libexec/dovecot/dovecot-lda -rwxr-xr-x 1 root staff 62K Sep 20 15:15 dovecot-lda It will deliver mail when I do the sudo invocation of dovecot-lda, but I thought LMTP was suppose to be an alternative to that postfix/main.cf: virtual_transport = dovecot virtual_mailbox_domains = mytest.domain.com dovecot_destination_recipient_limit = 1 /etc/postfix/master.cf: dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient} /usr/local/etc/dovecot/conf.d/10-master.conf: service auth { unix_listener auth-userdb { mode = 0600 user = vmail #group = vmail } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } inet_listener lmtp { port = 24 } user = vmail } Did I miss something in my config?
Timo Sirainen
2010-Sep-23 17:50 UTC
[Dovecot] execvp /usr/local/libexec/dovecot/dovecot-lda: Permission denied
On Thu, 2010-09-23 at 13:44 -0400, Edward Carraro wrote:> I'm trying to follow the instructions for configuring Dovecot LMTP with > postfix for virtual domains but whenever mail arrives, in /var/log/maillog, > I see> postfix/main.cf: > virtual_transport = dovecotTo use LMTP you need to make Postfix deliver mail via LMTP, not via dovecot-lda. I think something like: virtual_transport = lmtp:unix:dovecot-lmtp (or maybe a full path to dovecot-lmtp)
Edward Carraro
2010-Sep-23 19:13 UTC
[Dovecot] execvp /usr/local/libexec/dovecot/dovecot-lda: Permission denied
Thanks everyone! I changed it to "virtual_transport = lmtp:unix:private/dovecot-lmtp" in main.cf and chowned the file "/var/spool/postfix/private/dovecot-lmtp" to "postfix:postfix" it is now delivering email On Thu, Sep 23, 2010 at 3:03 PM, Thomas Leuxner <tlx at leuxner.net> wrote:> Am 23.09.2010 um 20:44 schrieb Edward Carraro: > > using "virtual_transport = lmtp:unix:dovecot-lmtp" in main.cf I get > > Sep 23 18:38:25 mybox postfix/lmtp[2175]: 7790032064F: to=< > user at mytest.domain.com>, relay=none, delay=525, delays=525/0.02/0/0, > dsn=4.4.1, status=deferred (connect to mybox.domain.com[dovecot-lmtp]: No > such file or directory) > > i did a search for dovecot-lmtp but Debian is unable to find it. > > > Per default Debian uses a chrooted Postfix configuration. Therefore the > socket needs to be located inside the chroot e.g: > > service lmtp { > unix_listener /var/spool/postfix/private/dovecot-lmtp { > group = postfix > mode = 0660 > user = postfix > } > } > > These should give an idea on how it plays together: > > http://wiki2.dovecot.org/HowTo/VirtualUserFlatFilesPostfix > http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP > >
fakessh
2010-Sep-23 20:03 UTC
[Dovecot] execvp /usr/local/libexec/dovecot/dovecot-lda: Permission denied
Timo, can be expected to correct the wiki -- "be invented in a clumsy and happiness" author unknow On Thu, 23 Sep 2010 15:13:01 -0400, Edward Carraro <ednitido at gmail.com> wrote:> Thanks everyone! > > I changed it to "virtual_transport = lmtp:unix:private/dovecot-lmtp" in > main.cf and chowned the file "/var/spool/postfix/private/dovecot-lmtp" to > "postfix:postfix" > it is now delivering email > > On Thu, Sep 23, 2010 at 3:03 PM, Thomas Leuxner <tlx at leuxner.net> wrote: > >> Am 23.09.2010 um 20:44 schrieb Edward Carraro: >> >> using "virtual_transport = lmtp:unix:dovecot-lmtp" in main.cf I get >> >> Sep 23 18:38:25 mybox postfix/lmtp[2175]: 7790032064F: to=< >> user at mytest.domain.com>, relay=none, delay=525, delays=525/0.02/0/0, >> dsn=4.4.1, status=deferred (connect to mybox.domain.com[dovecot-lmtp]: No >> such file or directory) >> >> i did a search for dovecot-lmtp but Debian is unable to find it. >> >> >> Per default Debian uses a chrooted Postfix configuration. Therefore the >> socket needs to be located inside the chroot e.g: >> >> service lmtp { >> unix_listener /var/spool/postfix/private/dovecot-lmtp { >> group = postfix >> mode = 0660 >> user = postfix >> } >> } >> >> These should give an idea on how it plays together: >> >> http://wiki2.dovecot.org/HowTo/VirtualUserFlatFilesPostfix >> http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP >> >>