1

Topic: 4 new domain + 4 users is rejected missing dovecot relay or transport.

Hi ..

Today I have created 4 new domains and in each of them 1 user account. Nothing went wrong in the gui when doing so. Have done that alot of time. But this is the first time after the last upgrade.

I dont say that the upgrade is the problem - only trying to explain..

- iRedMail version: iRedAdmin-Pro v1.6.2 (LDAP)
- Linux/BSD distribution name and version: Debian 5.0.8

My mail.log is saying af following:

Oct  4 18:04:20 mail postfix/qmgr[2786]: warning: connect to transport private/dovecot,dovecot: No such file or directory
Oct  4 18:04:20 mail postfix/error[3513]: 44A64EC201: to=<xx@x-xxxx.xx>, relay=none, delay=0.6, delays=0.57/0.01/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)

xx@xxxx.xx is replaced characters..

What I have tried so far. Restarted server. Removed dovecot from the relay in domain settings, saved, tested and nothing. Putting dovecot back in, save and tested - and nothing.

Anyone with a solutions or some info/hints on that to try next.

Thanks in advance

Regards

Kenneth Kristiansen

----

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

2

Re: 4 new domain + 4 users is rejected missing dovecot relay or transport.

Oct  4 18:04:20 mail postfix/qmgr[2786]: warning: connect to transport private/dovecot,dovecot: No such file or directory

It means Postfix cannot connect to Dovecot socket file /var/spool/postfix/private/dovecot.
Was Dovecot running as expected? Could you please post output of below commands to help troubleshoot?

# dovecot -n
# postfix -n

3 (edited by BlackMuddler 2011-10-05 19:10:44)

Re: 4 new domain + 4 users is rejected missing dovecot relay or transport.

ZhangHuangbin wrote:

It means Postfix cannot connect to Dovecot socket file /var/spool/postfix/private/dovecot.
Was Dovecot running as expected? Could you please post output of below commands to help troubleshoot?

That path and file exist, have owner+group postfix 666 ..

But all my others domain and account is working very well on this very one mailserver.

# dovecot -n

# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-2-amd64 x86_64 Debian 5.0.8 
log_path: /var/log/dovecot.log
protocols: imap imaps pop3 pop3s managesieve none
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): 127.0.0.1:2000
ssl_cert_file: /etc/ssl/certs/iRedMail_CA.pem
ssl_key_file: /etc/ssl/private/iRedMail.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_uid: 1001
mail_gid: 1001
mail_location: maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugins(managesieve): 
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
pop3_client_workarounds(default): 
pop3_client_workarounds(imap): 
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve): 
lda:
  postmaster_address: root
  auth_socket_path: /var/run/dovecot/auth-master
  mail_plugins: sieve quota
  sieve_global_path: /var/vmail/sieve/dovecot.sieve
  log_path: /var/log/sieve.log
auth default:
  mechanisms: plain login
  default_realm: domain.net
  user: vmail
  passdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/dovecot-auth
      mode: 438
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 438
      user: vmail
      group: vmail
plugin:
  quota_warning: storage=85%% /usr/local/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/local/bin/dovecot-quota-warning.sh 95
  quota: maildir
  quota_rule: *:storage=100M
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  auth_socket_path: /var/run/dovecot/auth-master
  sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
  sieve_dir: /var/vmail/sieve/%Ld/%Ln/
dict:
  expire: db:/var/lib/dovecot/expire/expire.db
mail:~# 

# postfix -n

Do you mean postconf -n ?

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = ipv4
mail_name = iRedMail
mail_version = 0.6.0
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 9057286400
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
message_size_limit = 1024000000
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = domain.net
myhostname = domain.net
mynetworks = 127.0.0.0/8, x.x.x.x/24
mynetworks_style = subnet
myorigin = mail.php-host.dk
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps
queue_run_delay = 300s
readme_directory = no
recipient_bcc_maps = proxy:ldap:/etc/postfix/ldap_recipient_bcc_maps_domain.cf, proxy:ldap:/etc/postfix/ldap_recipient_bcc_maps_user.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:ldap:/etc/postfix/ldap_relay_domains.cf
relay_recipient_maps = proxy:ldap:/etc/postfix/ldap_virtual_mailbox_maps.cf
relayhost = 
sender_bcc_maps = proxy:ldap:/etc/postfix/ldap_sender_bcc_maps_domain.cf, proxy:ldap:/etc/postfix/ldap_sender_bcc_maps_user.cf
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:127.0.0.1:10031
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain = 
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ldap_sender_login_maps.cf
smtpd_sender_restrictions = check_policy_service inet:127.0.0.1:7778, permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = proxy:ldap:/etc/postfix/ldap_transport_maps_user.cf, proxy:ldap:/etc/postfix/ldap_transport_maps_domain.cf
virtual_alias_maps = proxy:ldap:/etc/postfix/ldap_virtual_alias_maps.cf, proxy:ldap:/etc/postfix/ldap_virtual_group_maps.cf, proxy:ldap:/etc/postfix/ldap_sender_login_maps.cf, proxy:ldap:/etc/postfix/ldap_catch_all_maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap_virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap_virtual_mailbox_maps.cf
virtual_minimum_uid = 1001
virtual_transport = dovecot
virtual_uid_maps = static:1001
mail:~# 

Regards

Kenneth Kristiansen

4

Re: 4 new domain + 4 users is rejected missing dovecot relay or transport.

BlackMuddler wrote:

That path and file exist, have owner+group postfix 666 ..

But all my others domain and account is working very well on this very one mailserver.

Update with a little more mail log.. First - A email got delivered to a old exiting email account and the last lines shows one of the 4 new domain+account being not delivered..

Oct  6 07:20:24 mail postfix/smtpd[3108]: connect from gerolde.archlinux.org[66.211.214.132]
Oct  6 07:20:24 mail postfix-policyd: connecting to mysql database: 127.0.0.1
Oct  6 07:20:24 mail postfix-policyd: connected..
Oct  6 07:20:24 mail postfix-policyd: rcpt=5, greylist=update, host=66.211.214.132 (gerolde.archlinux.org), from=arch-general-bounces@archlinux.org, to=account@domain.net, size=3478
Oct  6 07:20:24 mail postfix-policyd: rcpt=5, throttle=clear(a), host=66.211.214.132, from=arch-general-bounces@archlinux.org, to=account@domain.net, size=3478/1024000000, quota=3478/250000000, count=1/512(5406), rcpt=1/3600(5406), threshold=0%|0%|0%
Oct  6 07:20:24 mail postfix-policyd: rcpt=5, throttle_rcpt=clear(a), host=66.211.214.132, from=arch-general-bounces@archlinux.org, to=account@domain.net, count=0/64(1899), threshold=0%
Oct  6 07:20:24 mail postfix/smtpd[3108]: E0E71EC208: client=gerolde.archlinux.org[66.211.214.132]
Oct  6 07:20:25 mail postfix/cleanup[3112]: E0E71EC208: message-id=<CAA-QjUrXpHuW=fMzhYr+_8E4sM9axDJwWKbqYLSVLcDMhUUv3A@mail.gmail.com>
Oct  6 07:20:25 mail postfix/qmgr[2781]: E0E71EC208: from=<arch-general-bounces@archlinux.org>, size=3743, nrcpt=1 (queue active)
Oct  6 07:20:25 mail postfix/smtpd[3108]: disconnect from gerolde.archlinux.org[66.211.214.132]
Oct  6 07:20:25 mail postfix/pipe[3113]: E0E71EC208: to=<account@domain.net>, relay=dovecot, delay=0.26, delays=0.24/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
Oct  6 07:20:25 mail postfix/qmgr[2781]: E0E71EC208: removed
Oct  6 07:20:39 mail postfix/qmgr[2781]: 0B9E3EC0EE: from=<modeltrain@gmail.com>, size=1759, nrcpt=1 (queue active)
Oct  6 07:20:39 mail postfix/qmgr[2781]: warning: connect to transport private/dovecot,dovecot: No such file or directory
Oct  6 07:20:39 mail postfix/error[3116]: 0B9E3EC0EE: to=<newaccount@newdomain.net>, relay=none, delay=354, delays=354/0/0/0.04, dsn=4.3.0, status=deferred (mail transport unavailable)

Regards

Kenneth Kristiansen

5

Re: 4 new domain + 4 users is rejected missing dovecot relay or transport.

I saw you have below setting in Postfix, which is incorrect:

smtpd_sasl_path = private/dovecot-auth

Default setting in iRedMail is:

smtpd_sasl_path = ./dovecot-auth

In maillog, it shows:

Oct  6 07:20:39 mail postfix/qmgr[2781]: warning: connect to transport private/dovecot,dovecot: No such file or directory

It means this user has incorrect per-user transport. Could you please paste LDIF data of this account here to help troubleshoot? You can export LDIF data of this account by accessing iRedAdmin-Pro-LDAP:
https://your_server/iredadmin/export/ldif/user/user@domain.ltd (Replace "user@domain.ltd" with real email address)

Warning: Please do remove sensitive infomation in LDIF before posting.

6

Re: 4 new domain + 4 users is rejected missing dovecot relay or transport.

After checking your "dovecot -n", i found you have different settings with iRedMail default settings:

Yours:

  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/dovecot-auth
      mode: 438
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 438
      user: vmail
      group: vmail

In iRedMail, it should be:

socket:
    type: listen
    client:
      path: /var/spool/postfix/dovecot-auth
      mode: 0666
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 0666
      user: vmail
      group: vmail

7 (edited by BlackMuddler 2011-10-06 18:22:13)

Re: 4 new domain + 4 users is rejected missing dovecot relay or transport.

Hi ZangHuangbin ..

First - Thanks for your help so far ..

Now - I cant simply find anywhere i files mode = 0438 - all places I only see mode = 0666 .. If not in /etc/dovecot/dovecot.conf files where could that info else come from?

LDIF shows for one of the 4 new account the following:

dn: mail=xx@newdomain.net,ou=Users,domainName=newdomain.net,o=domains,dc=xx,dc=xx
accountStatus: active
amavisLocal: TRUE
cn: xx
enabledService: mail
enabledService: deliver
enabledService: lda
enabledService: smtp
enabledService: smtpsecured
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: internal
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
homeDirectory: /var/vmail/newdomain.net/x/x/x/xx-2011.10.06.07.05.55/
mail: xx@newdomain.net
mailMessageStore: vmail/newdomain.net/x/x/x/xx-2011.10.06.07.05.55/
mailQuota: 0
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
shadowLastChange: 0
sn: xx
storageBaseDirectory: /var
uid: xx
userPassword: {SSHA}xxxxx

Regards

Kenneth Kristiansen

8

Re: 4 new domain + 4 users is rejected missing dovecot relay or transport.

BlackMuddler wrote:

Now - I cant simply find anywhere i files mode = 0438 - all places I only see mode = 0666 .. If not in /etc/dovecot/dovecot.conf files where could that info else come from?

Your dovecot.conf should have settings like below:

auth default {
    [...OMIT OTHER SETTINGS HERE...]

    socket listen {
        master {
            path = /var/run/dovecot/auth-master
            mode = 0666

            user = vmail
            group = vmail
        }
        client {
            path = /var/spool/postfix/dovecot-auth
            mode = 0666

            user = postfix
            group = postfix
        }
    }
}

BlackMuddler wrote:

LDIF shows for one of the 4 new account the following:

LDIF data looks fine. Could you please post LDIF data of this new domain? You can get it via accessing iRedAdmin-Pro-LDAP:
https://your_server/iredadmin/export/ldif/domain/newdomain.com

As mentioned in my previous reply, please make sure you have correct settings in Postfix and Dovecot. If it doesn't work, post output of command "dovecot -n" and "postconf -n" here to help troubleshoot.