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 <users>

match  from any for domain <domains> 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=<da...@davidfavor.com> to=<supp...@newswire.net> rcpt=<supp...@newswire.net> 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

Reply via email to