On 1/04/25 12:23, Herb Weiner via Postfix-users wrote:
I am having problems comfiguring Postfix and Dovecot to communicate via
lmtp on Ubuntu.
The following is an excerpt of my Dovecot configuration:
protocols = imap lmtp
protocol lmtp {
postmaster_address = postmas...@wiskit.com# required
mail_plugins = quota sieve
lmtp_rawlog_dir = /var/log/dovecot-lmtp
}
So far so good.
service lmtp {
inet_listener lmtp {
address = *
port = 24
}
You likely don't want lmtp listening for public connections and you
probably don't need it listening via IMAP at all. Also I would
recommend a higher port number if you use this at all, like 10024.
unix_listener /var/spool/postfix/private/lmtp {
group = postfix
mode = 0660
user = postfix
}
}
As pointed out by Viktor, you can't use lmtp as the socket name here
because that's already taken by postfix's lmtp service.
The following is an exceprt of my Postfix configuration:
virtual_transport = lmtp:unix:private/lmtp
mailbox_transport = lmtp:unix:private/lmtp
You're using a unix socket here so there's no nbeed for lmtp to listen
on an inet socket (above).
This is the relevant config that I have which works just fine for me:
Dovecot:
protocols = lmtp imap pop3
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
protocol lmtp {
mail_plugins = quota sieve
postmaster_address = postmas...@example.com
}
Postfix:
virtual_transport = lmtp:unix:private/dovecot-lmtp
(I don't use lmtp for local delivery, but if you do then use a
mailbox_transport line as well).
Peter
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org