marcoubuntu |
08-31-2017 02:45 PM |
postfix/dovecot don't send emails [outside and locally]
Hi everybody,
I'm trying to installing postfix and dovecot on my server and I'm getting frustrating because I'm not able to receive any email to my virtual users.
Further that I've the following errors:
Code:
Aug 31 12:37:51 xxxxxxxx postfix/qmgr[30533]: warning: private/lmtp socket: malformed response
Aug 31 12:37:51 xxxxxxxx postfix/qmgr[30533]: warning: transport lmtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 31 12:37:51 xxxxxxxx postfix/master[30530]: warning: process /usr/lib/postfix/sbin/smtp pid 1933 exit status 1
Aug 31 12:37:51 xxxxxxxx postfix/master[30530]: warning: /usr/lib/postfix/sbin/smtp: bad command startup -- throttling
Aug 31 12:37:51 xxxxxxxx postfix/error[1938]: C912F3E2919: to=<marco@xxxxxxxx.com>, relay=none, delay=46621, delays=46619/1.4/0/0.05, dsn=4.3.0, status=deferred (unknown mail transport error)
Aug 31 13:12:49 xxxxxxxx postfix/qmgr[30533]: 345C33E31EB: from=<root@xxxxxxxx.com>, size=486, nrcpt=1 (queue active)
Aug 31 13:12:49 xxxxxxxx postfix/smtp[2156]: fatal: unknown service: private/dovecot-lmtp/tcp
Aug 31 21:03:41 xxxxxxxx postfix/error[4830]: 345C33E31EB: to=<marco@xxxxxxxx.com>, relay=none, delay=80260, delays=80221/39/0/0.1, dsn=4.3.0, status=deferred (unknown mail transport error)
Aug 31 21:03:41 xxxxxxxx postfix/error[4831]: C912F3E2919: to=<marco@xxxxxxxx.com>, relay=none, delay=76971, delays=76931/39/0/0.08, dsn=4.3.0, status=deferred (unknown mail transport error)
Aug 31 21:09:55 xxxxxxxx postfix/postfix-script[5865]: stopping the Postfix mail system
Aug 31 21:09:55 xxxxxxxx postfix/master[30530]: terminating on signal 15
Aug 31 21:09:56 xxxxxxxx postfix/postfix-script[6042]: starting the Postfix mail system
Aug 31 21:09:56 xxxxxxxx postfix/master[6044]: daemon started -- version 3.1.4, configuration /etc/postfix
Aug 31 21:10:10 xxxxxxxx dovecot: master: Warning: Killed with signal 15 (by pid=6068 uid=0 code=kill)
Aug 31 21:10:10 xxxxxxxx dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Aug 31 21:10:11 xxxxxxxx dovecot: master: Dovecot v2.2.27 (c0f36b0) starting up for imap, lmtp (core dumps disabled)
Aug 31 21:12:04 xxxxxxxx postfix/pickup[6046]: 12A313E2928: uid=0 from=<root>
Aug 31 21:12:04 xxxxxxxx postfix/cleanup[6162]: 12A313E2928: message-id=<20170831191203.bkxp5roz4r3fmr7l@xxxxxxxx.com>
Aug 31 21:12:04 xxxxxxxx postfix/qmgr[6047]: 12A313E2928: from=<root@xxxxxxxx.com>, size=484, nrcpt=1 (queue active)
Aug 31 21:12:05 xxxxxxxx postfix/smtp[6164]: fatal: unknown service: private/dovecot-lmtp/tcp
Aug 31 21:12:06 xxxxxxxx postfix/qmgr[6047]: warning: private/lmtp socket: malformed response
Aug 31 21:12:06 xxxxxxxx postfix/qmgr[6047]: warning: transport lmtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 31 21:12:06 xxxxxxxx postfix/master[6044]: warning: process /usr/lib/postfix/sbin/smtp pid 6164 exit status 1
Aug 31 21:12:06 xxxxxxxx postfix/master[6044]: warning: /usr/lib/postfix/sbin/smtp: bad command startup -- throttling
Aug 31 21:12:06 xxxxxxxx postfix/error[6165]: 12A313E2928: to=<marco@xxxxxxxx.com>, relay=none, delay=2.3, delays=0.91/1.4/0/0.05, dsn=4.3.0, status=deferred (unknown mail transport error)
Aug 31 21:19:56 xxxxxxxx postfix/qmgr[6047]: 12A313E2928: from=<root@xxxxxxxx.com>, size=484, nrcpt=1 (queue active)
Aug 31 21:19:56 xxxxxxxx postfix/smtp[6218]: fatal: unknown service: private/dovecot-lmtp/tcp
Aug 31 21:19:57 xxxxxxxx postfix/qmgr[6047]: warning: private/lmtp socket: malformed response
Aug 31 21:19:57 xxxxxxxx postfix/qmgr[6047]: warning: transport lmtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 31 21:19:57 xxxxxxxx postfix/master[6044]: warning: process /usr/lib/postfix/sbin/smtp pid 6218 exit status 1
Aug 31 21:19:57 xxxxxxxx postfix/master[6044]: warning: /usr/lib/postfix/sbin/smtp: bad command startup -- throttling
Aug 31 21:19:57 xxxxxxxx postfix/error[6219]: 12A313E2928: to=<marco@xxxxxxxx.com>, relay=none, delay=474, delays=472/1.2/0/0.14, dsn=4.3.0, status=deferred (unknown mail transport error)
Aug 31 21:29:56 xxxxxxxx postfix/qmgr[6047]: 12A313E2928: from=<root@xxxxxxxx.com>, size=484, nrcpt=1 (queue active)
Aug 31 21:29:57 xxxxxxxx postfix/smtp[6320]: fatal: unknown service: private/dovecot-lmtp/tcp
Aug 31 21:29:58 xxxxxxxx postfix/qmgr[6047]: warning: private/lmtp socket: malformed response
Aug 31 21:29:58 xxxxxxxx postfix/qmgr[6047]: warning: transport lmtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 31 21:29:58 xxxxxxxx postfix/master[6044]: warning: process /usr/lib/postfix/sbin/smtp pid 6320 exit status 1
Aug 31 21:29:58 xxxxxxxx postfix/master[6044]: warning: /usr/lib/postfix/sbin/smtp: bad command startup -- throttling
Aug 31 21:29:58 xxxxxxxx postfix/error[6321]: 12A313E2928: to=<marco@xxxxxxxx.com>, relay=none, delay=1074, delays=1073/1.3/0/0.06, dsn=4.3.0, status=deferred (unknown mail transport error)
My postfix configurations are
Code:
root@xxxxxxxx:~# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 2
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
milter_default_action = accept
milter_protocol = 2
mydestination = mail.xxxxxxxx.com, localhost.$mydomain, localhost
mydomain = xxxxxxxx.com
myhostname = xxxxxxxx.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
non_smtpd_milters = inet:localhost:8891
readme_directory = no
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_milters = inet:localhost:8891
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/private/dovecot.pem
smtpd_use_tls = yes
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_transport = lmtp:unix:private/dovecot-lmtp
Code:
root@deemaily:~# grep '^[^#]' /etc/postfix/master.cf
submission unix n - y - - smtpd
spamassassin unix - n n - - pipe
smtp inet n - - - - smtpd
-o receive_override_options=no_header_body_checks
-o content_filter=spamassassin
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authentication,reject
pickup unix n - y 60 1 pickup
cleanup unix n - y - 0 cleanup
qmgr unix n - n 300 1 qmgr
tlsmgr unix - - y 1000? 1 tlsmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
trace unix - - y - 0 bounce
verify unix - - y - 1 verify
flush unix n - y 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - y - - smtp
relay unix - - y - - smtp
showq unix n - y - - showq
error unix - - y - - error
retry unix - - y - - error
discard unix - - y - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - y - - smtp
anvil unix - - y - 1 anvil
scache unix - - y - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
Code:
root@xxxxxxxx:~# dovecot -n
# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (fed8554)
# OS: Linux 4.10.0-33-generic x86_64 Ubuntu 17.04 ext4
auth_mechanisms = plain login
mail_location = maildir:/var/mail/vhosts/%d/%n
mail_privileged_group = mail
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-sql.conf.ext
driver = sql
}
protocols = imap lmtp
service auth-worker {
user = vmail
}
service auth {
unix_listener auth-userdb {
mode = 0600
user = vmail
}
user = dovecot
}
service imap-login {
inet_listener imap {
port = 0
}
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
ssl = required
ssl_cert = /etc/ssl/certs/dovecot.pem
ssl_key = # hidden, use -P to show it
userdb {
args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
driver = static
}
I really appreciate if you can help me to understand where is the problem.
Thank you
|