Home > Guides > Alpine Server > Setting up Dovecot LMTP

Setting up Dovecot LMTP


Install dovecot-lmtpd:

apk add dovecot-lmtpd

Enable the lmtp protocol in /etc/dovecot/dovecot.conf:

protocols = imap pop3 lmtp

Enable the lmtp service in /etc/dovecot/conf.d/10-master.conf:

service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    mode = 0666
    user = postfix
    group = postfix

  user = vmail
  group = postdrop

Reload the Dovecot configuration to enable LTMP:

/etc/init.d/dovecot reload

Check if Dovecot is listening on /var/spool/postfix/private/dovecot-lmtp:

netstat -anp | grep dovecot

Change the virtual_transport option to use the Dovecot LMTP socket in /etc/postfix/main.cf:

virtual_transport = lmtp:unix:private/dovecot-lmtp

Reload the Postfix configuration to use LMTP:

/etc/init.d/postfix reload


To test your LMTP setup, you can send an e-mail from another domain to yourself.