1

Topic: Postfix and Dovecot LMTP on different server

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====
I am setting Posfix to communicate over TCP. Postfix and Dovecot LMTP runs on different machine. I have set the following so that they can communicate.
#main.cf
virtual_transport = lmtp:IP:port1
mailbox_transport =  lmtp:IP:port2
smtpd_sasl_path = inet:IP:port3
smtpd_sasl_type = dovecot
smtpd_sasl_auth_enable = yes

#dovecot.conf
protocols = pop3 imap sieve lmtp
#LMTP
service lmtp {
  inet_listener lmtp {
    address = xxx.xxx.xxx.xxx 127.0.0.1 ::1
    port = 24
  }

  unix_listener lmtp {
    #mode = 0666
  }
}

protocol lmtp {
  mail_plugins = $mail_plugins sieve
  info_log_path = /var/log/dovecot-lmtp.log
  log_path = /var/log/lmtp.log
}

I am unable to deliver emails to local users. I am getting the following errors in /var/log/maillog
Jan 27 15:08:01 server1 postfix/qmgr[26531]: B4F0F1FBD8: from=<user1@server1.com>, size=1033, nrcpt=1 (queue active)
Jan 27 15:08:01 server1 postfix/qmgr[26531]: warning: connect to transport private/dovecot: No such file or directory
Jan 27 15:08:01 server1 postfix/error[16416]: B4F0F1FBD8: to=<user1@server1.com>, relay=none, delay=2231, delays=2231/0.06/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)

Do I need to configure also master.cf? How.

Kindly assist me on how I can configure this to work.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Postfix and Dovecot LMTP on different server

Please always show us basic info of your iRedMail server:

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====

djbahati1 wrote:

Jan 27 15:08:01 server1 postfix/qmgr[26531]: warning: connect to transport private/dovecot: No such file or directory

iRedMail sets per-user and/or per-domain transport in SQL/LDAP, did you change it to use LMTP?