Topic: [status=deferred (temporary failur]AD + Dovecot + Postfix + RoundCube
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,
*NEED YOUR HELP PLEASE*
I have status=deferred (temporary failure) error when i'm trying to send an email for an user@domain.com
On roundcube we can login with couple user@domaine.com/pwd but couldn't send or received mail.
Please see below the log and configuration files :
###Postfix mail log
Apr 15 14:27:17 <hostname> postfix/qmgr[233748]: 9E866281805: from=<user2@example.domain.c
om>, size=593, nrcpt=2 (queue active)
Apr 15 14:27:17 <hostname> postfix/pipe[275094]: 9E866281805: to=<user2@domain.com
>, relay=dovecot, delay=1185, delays=1185/0/0/0, dsn=4.3.5, status=deferred (mail system confi
guration error)
Apr 15 14:27:17 <hostname> postfix/pipe[275094]: 9E866281805: to=<user1@domain.com>, rela
y=dovecot, delay=1185, delays=1185/0/0/0, dsn=4.3.5, status=deferred (mail system configuratio
n error)
Apr 15 14:27:17 <hostname> postfix/pipe[275094]: warning: pipe flag `D' requires dovecot_destin
ation_recipient_limit = 1
Apr 15 14:27:38 <hostname> postfix/postfix-script[275468]: fatal: the Postfix mail system is al
ready running
Apr 15 14:28:07 <hostname> postfix/pickup[271872]: 8FB87281824: uid=0 from=<root@<hostname>>
Apr 15 14:28:07 <hostname> postfix/cleanup[275091]: 8FB87281824: message-id=<20210415142807.8FB
87281824@localhost.domain.com>
Apr 15 14:28:07 <hostname> postfix/qmgr[233748]: 8FB87281824: from=<root@<hostname>>, size=360,
nrcpt=1 (queue active)
Apr 15 14:28:07 <hostname> postfix/pipe[275094]: 8FB87281824: to=<user2@domain.com
>, relay=dovecot, delay=0.04, delays=0.01/0/0/0.03, dsn=4.3.0, status=deferred (temporary fail
ure)
### Dovecot Log
Apr 15 14:24:58 imap-login: Info: Login: user=<user1@domain.com>, method=PLAIN, rip=127.
0.0.1, lip=127.0.0.1, mpid=275051, secured, session=<LEfLoAPAcoV/AAAB>
Apr 15 14:24:58 imap(user1@domain.com)<275051><LEfLoAPAcoV/AAAB>: Debug: Added userdb se
tting: mail=maildir:~/Maildir/
Apr 15 14:24:58 imap(user1@domain.com)<275051><LEfLoAPAcoV/AAAB>: Debug: Effective uid=5
000, gid=5000, home=/var/mail/vhosts/path/user1@domain.com
Apr 15 14:24:58 imap(user1@domain.com)<275051><LEfLoAPAcoV/AAAB>: Debug: Namespace inbox
: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mail
dir:~/Maildir/
Apr 15 14:24:58 imap(user1@domain.com)<275051><LEfLoAPAcoV/AAAB>: Debug: maildir++: root
=/var/mail/vhosts/path/user1@domain.com/Maildir, index=, indexpvt=, control=
, inbox=/var/mail/vhosts/path/user1@domain.com/Maildir, alt=
Apr 15 14:24:58 imap(user1@domain.com)<275051><LEfLoAPAcoV/AAAB>: Debug: Namespace : typ
e=private, prefix=#mbox/, sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes location=mbo
x:~/mail:INBOX=/var/mail/vhosts/path/user1@domain.com
Apr 15 14:24:58 imap(user1@domain.com)<275051><LEfLoAPAcoV/AAAB>: Debug: fs: root=/var/m
ail/vhosts/path/user1@domain.com/mail, index=, indexpvt=, control=, inbox=/v
ar/mail/vhosts/path/user1@domain.com, alt=
Apr 15 14:24:58 imap(user1@domain.com)<275051><LEfLoAPAcoV/AAAB>: Debug: Mailbox INBOX:
Mailbox opened because: STATUS
Apr 15 14:24:58 imap(user1@domain.com)<275051><LEfLoAPAcoV/AAAB>: Info: Logged out in=50
out=546 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
## RoundCube log
[15-Apr-2021 11:00:53 +0000]: <4eafak0n> IMAP Error: Login failed for user3@domain.com ag
ainst localhost from 10.209.143.145. AUTHENTICATE PLAIN: Temporary authentication failure. [ic
rd-mail:2021-04-15 11:00:53] in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on l
ine 204 (POST /?_task=mail&_action=refresh)
[15-Apr-2021 12:59:02 +0000]: <4eafak0n> IMAP Error: Login failed for user3@domain.com ag
ainst localhost from 10.209.143.145. Could not connect to localhost:143: Connection refused in
/usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on line 204 (POST /?_task=mail&_act
ion=refresh)
#Dovecot -n
# 2.3.7.2 (3c910f64b): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.7.2 ()
# OS: Linux 5.4.0-70-generic x86_64 Ubuntu 20.04.1 LTS ext4
# Hostname: <hostname>
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_verbose = yes
disable_plaintext_auth = no
first_valid_gid = 5000
first_valid_uid = 5000
imap_client_workarounds = tb-lsub-flags
lda_mailbox_autocreate = yes
listen = *
log_path = /var/log/dovecot.log
mail_debug = yes
mail_gid = vmail
mail_location = maildir:/var/mail/vhosts/%d/%n/
mail_privileged_group = mail
mail_uid = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress
comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify env
ironment mailbox date index ihave duplicate mime foreverypart extracttext
namespace {
hidden = yes
list = no
location = mbox:~/mail:INBOX=/var/mail/vhosts/%d/%u
prefix = "#mbox/"
separator = /
}
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
plugin {
sieve = file:~/sieve;active=~/.dovecot.sieve
}
postmaster_address = postmaster@domain.com
protocols = imap pop3 lmtp
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0600
user = postfix
}
}
service imap-login {
inet_listener imap {
port = 143
}
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
service stats {
unix_listener stats-reader {
group = vmail
mode = 0660
user = vmail
}
unix_listener stats-writer {
group = vmail
mode = 0660
user = vmail
}
}
ssl = no
ssl_cert = </etc/ssl/certs/ssl-cert-snakeoil.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
userdb {
args = uid=5000 gid=5000 home=/var/mail/vhosts/%Ld/%Lu allow_all_users=yes
driver = static
}
#Postfix -n
lias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 2
default_transport = smtp
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps =
mail_owner = postfix
mailbox_command = /usr/lib/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT"
mailbox_size_limit = 0
mydestination = $my<hostname>, localhost.$mydomain, localhost
mydomain = domain.com
my<hostname> = <hostname>
myorigin = /etc/mailname
queue_directory = /var/spool/postfix
readme_directory = no
recipient_bcc_maps =
recipient_delimiter = +
relay_domains =
relay_recipient_maps =
relayhost =
sender_bcc_maps =
sender_dependent_relayhost_maps =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $my<hostname> ESMTP $mail_name (Ubuntu)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destinatio
n
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = domain.com
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ad_sender_login_maps.cf
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_ciphers = medium
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_protocols = TLSv1 TLSv1.1 TLSv1.2
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = proxy:ldap:/etc/postfix/ad_virtual_group_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/mail/vhosts/path
virtual_mailbox_domains = domain.com
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ad_virtual_mailbox_maps.cf
virtual_minimum_uid = 5000
virtual_transport = dovecot
virtual_uid_maps = static:5000
#Master.cf
smtp inet n - - - - smtpd -v
#smtp inet n - y - 1 postscreen
#smtpd pass - - y - - smtpd
#dnsblog unix - - y - 0 dnsblog
#tlsproxy unix - - y - 0 tlsproxy
#submission inet n - y - - smtpd
submission inet n - - - - smtpd
# -o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
# -o smtpd_tls_auth_only=yes
# -o smtpd_reject_unlisted_recipient=no
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o smtpd_helo_restrictions=$mua_helo_restrictions
# -o smtpd_sender_restrictions=$mua_sender_restrictions
# -o smtpd_recipient_restrictions=
# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
smtps inet n - - - - smtpd
# -o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
# -o smtpd_reject_unlisted_recipient=no
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o smtpd_helo_restrictions=$mua_helo_restrictions
# -o smtpd_sender_restrictions=$mua_sender_restrictions
# -o smtpd_recipient_restrictions=
# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
Please anyone help me, i've wast a lot of time for this particular issue.
Thank you
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.