[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@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?
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 = dovecot
To 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)
using "virtual_transport = lmtp:unix:dovecot-lmtp" in main.cf I get
Sep 23 18:38:25 mybox postfix/lmtp[2175]: 7790032064F: to=< user@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.
"locate lmtp" returns the following:
/usr/lib/postfix/lmtp /usr/local/etc/dovecot/conf.d/20-lmtp.conf /usr/local/include/dovecot/lmtp-client.h /usr/local/libexec/dovecot/lmtp /usr/local/share/doc/dovecot/example-config/conf.d/20-lmtp.conf /usr/local/var/run/dovecot/lmtp /usr/share/doc/procmail/examples/local_procmail_lmtp.m4 /usr/share/man/man8/lmtp.8postfix.gz
On Thu, Sep 23, 2010 at 1:50 PM, Timo Sirainen tss@iki.fi wrote:
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 = dovecot
To 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)
On 23.09.2010 20:44, wrote Edward Carraro:
using "virtual_transport = lmtp:unix:dovecot-lmtp" in main.cf I get
I think with
unix_listener /var/spool/postfix/private/dovecot-lmtp
in your dovecot -n output it should be
virtual_transport = lmtp:unix:private/dovecot-lmtp
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@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
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@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@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
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@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@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@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
Hi Edward Carraro,
I see you got your goal. So I have same trouble and don´t solved. I used the three scenarios you used.
based in http://wiki.dovecot.org/LDA/%VirtualUsers
And tried using the lmtp, but too don´t worked to delivery mail, I use dovecot-lda to sieve plugin work.
Please help me.
See the logs:
mail postfix/local[14324]: 45FCB12E89: to=teste@foobar.br, relay=local, delay=1785, delays=1785/0.05/0/0.12, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /usr/libexec/dovecot/deliver: Permission denied)
Thanks.
-- View this message in context: http://dovecot.2317879.n4.nabble.com/execvp-usr-local-libexec-dovecot-doveco... Sent from the Dovecot mailing list archive at Nabble.com.
Le 7 août 2013 à 16:32, will moura a écrit :
Hi Edward Carraro,
I see you got your goal. So I have same trouble and don´t solved. I used the three scenarios you used.
based in http://wiki.dovecot.org/LDA/%VirtualUsers
And tried using the lmtp, but too don´t worked to delivery mail, I use dovecot-lda to sieve plugin work.
Please help me.
See the logs:
mail postfix/local[14324]: 45FCB12E89: to=teste@foobar.br, relay=local, delay=1785, delays=1785/0.05/0/0.12, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /usr/libexec/dovecot/deliver: Permission denied)
Thanks.
Hello Will,
Are you cross-posting without knowing it? As far as I'm concerned, I'm unable to find any previous related email on this list; and the above sure is insufficient for anyone on this list to be of some help... Could you re-state your trouble for the sake of all of us? :-)
Axel
Hi,
Can you help me?
Because my config in master.cf is:
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
But now I have this problem in my postfix, logs:
"fatal destination user parameter (-d user) not given"
It´s funny because, this problem occur only in my domain, no to external domains.
Before I was with this problem with permissions, I solved, but now happen this.
Thanks.
-- View this message in context: http://dovecot.2317879.n4.nabble.com/execvp-usr-local-libexec-dovecot-doveco... Sent from the Dovecot mailing list archive at Nabble.com.
participants (7)
-
Axel Luttgens
-
e-frog
-
Edward Carraro
-
fakessh
-
Thomas Leuxner
-
Timo Sirainen
-
will moura