Re: Problem with Dovecot LMTP delivery
Thomas Bohl wrote: Hi, action remote_delivery lmtp "/usr/lib/dovecot/lmtp" rcpt-to virtual Camping - inotifywait -mrq /usr/lib/dovecot - show the lmtp executable is never touched, when Dovecot is running. You have to call the LMTP server by IP:Port or UNIX socket, not by executable. On OpenBSD it would look like this: action remote_delivery lmtp "/var/dovecot/lmtp" rcpt-to virtual With # doveconf | grep lmtp you can look if your config uses "unix_listener lmtp" # doveconf | grep state_dir should tell you the directory of the lmtp unix socket. 2) Also there doesn't seem to be a working Dovecot LMTP example, anywhere I can find. If someone can point me to an example (using new syntax), that would be great. https://prefetch.eu/blog/2020/email-server/ Thanks Thomas for resolving this problem!
Re: Problem with Dovecot LMTP delivery
Hi, action remote_delivery lmtp "/usr/lib/dovecot/lmtp" rcpt-to virtual Camping - inotifywait -mrq /usr/lib/dovecot - show the lmtp executable is never touched, when Dovecot is running. You have to call the LMTP server by IP:Port or UNIX socket, not by executable. On OpenBSD it would look like this: action remote_delivery lmtp "/var/dovecot/lmtp" rcpt-to virtual With # doveconf | grep lmtp you can look if your config uses "unix_listener lmtp" # doveconf | grep state_dir should tell you the directory of the lmtp unix socket. 2) Also there doesn't seem to be a working Dovecot LMTP example, anywhere I can find. If someone can point me to an example (using new syntax), that would be great. https://prefetch.eu/blog/2020/email-server/
Re: Problem with Dovecot LMTP delivery
David Favor wrote: Config File ipv4addr = 192.99.135.223 hostn = mail.newswire.net pki $hostn cert "/etc/letsencrypt/live/mail.newswire.net/fullchain.pem" pki $hostn key "/etc/letsencrypt/live/mail.newswire.net/privkey.pem" table domains file:/etc/mail/domains table users file:/etc/mail/users listen on localhost listen on $ipv4addr port 25 tls pki $hostn hostname $hostn action remote_delivery lmtp "/usr/lib/dovecot/lmtp" rcpt-to virtual match from any for domain action remote_delivery /etc/mail/users entry # grep ^supp...@newswire.net /etc/mail/users supp...@newswire.net vmail Error Message f03ef7cfdfb050bb mda delivery evpid=f259e1c3f4f1acb0 from= to= rcpt= user=vmail delay=0s result=TempFail stat=Error (temporary failure: "mail.lmtp: connect: Permission denied") 1) Same error occurs whether Dovecot is running or stopped. Camping - inotifywait -mrq /usr/lib/dovecot - show the lmtp executable is never touched, when Dovecot is running. Be great if someone can let me know how to fix this. 2) Also there doesn't seem to be a working Dovecot LMTP example, anywhere I can find. If someone can point me to an example (using new syntax), that would be great. Thanks. Still be great if someone can point me to a working Dovecot LMTP example using new syntax... ___ Figured out the problem. Appears to be an Ubuntu package problem. Fix sequence... 1) In /etc/dovecot/conf.d/10-master.conf change to... service lmtp { ### unix_listener lmtp { unix_listener /var/lib/dovecot/lmtp { mode = 0660 user = vmail group = vmail } # Create inet listener only if you can't use the above UNIX socket #inet_listener lmtp { # Avoid making LMTP visible for the entire internet #address = #port = #} } 2) Restart Dovecot to create the socket. 3) Change opensmtpd to use correct socket path. 4) Restart opensmtpd
Problem with Dovecot LMTP delivery
Config File ipv4addr = 192.99.135.223 hostn = mail.newswire.net pki $hostn cert "/etc/letsencrypt/live/mail.newswire.net/fullchain.pem" pki $hostn key "/etc/letsencrypt/live/mail.newswire.net/privkey.pem" table domains file:/etc/mail/domains table users file:/etc/mail/users listen on localhost listen on $ipv4addr port 25 tls pki $hostn hostname $hostn action remote_delivery lmtp "/usr/lib/dovecot/lmtp" rcpt-to virtual match from any for domain action remote_delivery /etc/mail/users entry # grep ^supp...@newswire.net /etc/mail/users supp...@newswire.net vmail Error Message f03ef7cfdfb050bb mda delivery evpid=f259e1c3f4f1acb0 from= to= rcpt= user=vmail delay=0s result=TempFail stat=Error (temporary failure: "mail.lmtp: connect: Permission denied") 1) Same error occurs whether Dovecot is running or stopped. Camping - inotifywait -mrq /usr/lib/dovecot - show the lmtp executable is never touched, when Dovecot is running. Be great if someone can let me know how to fix this. 2) Also there doesn't seem to be a working Dovecot LMTP example, anywhere I can find. If someone can point me to an example (using new syntax), that would be great. Thanks.