Unable to send email SMTP Error

5 posts / 0 new
Last post
#1 Fri, 09/27/2019 - 03:57
Sanikana

Unable to send email SMTP Error

Please i need help!

I was trying to setup SMTP for my server, then i run into SMTP error. I have 3 other virtual domains running on my server (CentOS 7).

postfix mail_version 3.4.6

My SMTP ports 25 and 587 are open and there are no blocks preventing mail, but my emails are not going through and I get SMTP errors message.

Here is the output of /var/log/maillog

Sep 22 03:11:56 web1 postfix/smtp[14108]: fatal: specify a password table via the smtp_sasl_password_maps' configuration parameter Sep 22 03:11:56 web1 postfix/smtpd[14109]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reje$ Sep 22 03:11:57 web1 postfix/master[1543]: warning: process /usr/libexec/postfix/smtp pid 14108 exit status 1 Sep 22 03:11:57 web1 postfix/master[1543]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling Sep 22 03:11:57 web1 postfix/master[1543]: warning: process /usr/libexec/postfix/smtpd pid 14109 exit status 1 Sep 22 03:11:57 web1 postfix/master[1543]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Sep 22 03:12:57 web1 postfix/smtp[14250]: fatal: specify a password table via thesmtp_sasl_password_maps' configuration parameter Sep 22 03:12:57 web1 postfix/smtpd[14251]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reje$ Sep 22 03:12:58 web1 postfix/master[1543]: warning: process /usr/libexec/postfix/smtp pid 14250 exit status 1 Sep 22 03:12:58 web1 postfix/master[1543]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling Sep 22 03:12:58 web1 postfix/master[1543]: warning: process /usr/libexec/postfix/smtpd pid 14251 exit status 1 Sep 22 03:12:58 web1 postfix/master[1543]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Sep 22 03:13:58 web1 postfix/smtp[14258]: fatal: specify a password table via the smtp_sasl_password_maps' configuration parameter Sep 22 03:13:58 web1 postfix/smtpd[14259]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reje$ Sep 22 03:13:59 web1 postfix/master[1543]: warning: process /usr/libexec/postfix/smtp pid 14258 exit status 1 Sep 22 03:13:59 web1 postfix/master[1543]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling Sep 22 03:13:59 web1 postfix/master[1543]: warning: process /usr/libexec/postfix/smtpd pid 14259 exit status 1 Sep 22 03:13:59 web1 postfix/master[1543]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Sep 22 03:14:51 web1 postfix/qmgr[7743]: 4984DC58584: from=skanah@web1.cityfindout.com, size=670, nrcpt=1 (queue active) Sep 22 03:14:51 web1 postfix/qmgr[7743]: warning: connect to transport private/smtp: Resource temporarily unavailable Sep 22 03:14:51 web1 postfix/qmgr[7743]: BA031C5858E: from=skanah@web1.cityfindout.com, size=634, nrcpt=1 (queue active) Sep 22 03:14:51 web1 postfix/qmgr[7743]: 3D112C585C0: from=skanah@web1.cityfindout.com, size=968, nrcpt=1 (queue active) Sep 22 03:14:51 web1 postfix/qmgr[7743]: EB7A5C5859D: from=skanah@web1.cityfindout.com, size=646, nrcpt=1 (queue active) Sep 22 03:14:51 web1 postfix/qmgr[7743]: AC790C58585: from=skanah@web1.cityfindout.com, size=615, nrcpt=1 (queue active) Sep 22 03:14:51 web1 postfix/error[14264]: 4984DC58584: to=anhcv@youngworld.vn, relay=none, delay=311370, delays=311369/0.02/0/0.03, dsn=4.3.0, status=deferred (mail$ Sep 22 03:14:51 web1 postfix/error[14267]: 3D112C585C0: to=anhcv@youngworld.vn, relay=none, delay=344818, delays=344818/0.03/0/0.02, dsn=4.3.0, status=deferred (mail$ Sep 22 03:14:51 web1 postfix/error[14265]: BA031C5858E: to=anhcv@youngworld.vn, relay=none, delay=214544, delays=214544/0.02/0/0.04, dsn=4.3.0, status=deferred (mail$ Sep 22 03:14:51 web1 postfix/error[14269]: EB7A5C5859D: to=anhcv@youngworld.vn, relay=none, delay=109684, delays=109684/0.05/0/0.02, dsn=4.3.0, status=deferred (mail$ Sep 22 03:14:51 web1 postfix/error[14264]: AC790C58585: to=anhcv@youngworld.vn, relay=none, delay=311343, delays=311343/0.05/0/0.02, dsn=4.3.0, status=deferred (mail$ Sep 22 03:14:59 web1 postfix/smtp[14276]: fatal: specify a password table via thesmtp_sasl_password_maps' configuration parameter Sep 22 03:14:59 web1 postfix/smtpd[14277]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reje$ Sep 22 03:15:00 web1 postfix/master[1543]: warning: process /usr/libexec/postfix/smtp pid 14276 exit status 1 Sep 22 03:15:00 web1 postfix/master[1543]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling Sep 22 03:15:00 web1 postfix/master[1543]: warning: process /usr/libexec/postfix/smtpd pid 14277 exit status 1 Sep 22 03:15:00 web1 postfix/master[1543]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Sep 22 03:16:00 web1 postfix/smtp[14315]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter Sep 22 03:16:00 web1 postfix/smtpd[14316]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reje$ Sep 22 03:16:01 web1 postfix/master[1543]: warning: process /usr/libexec/postfix/smtp pid 14315 exit status 1 Sep 22 03:16:01 web1 postfix/master[1543]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

Fri, 09/27/2019 - 06:46
andreychek

Howdy,

It looks like there's some errors occurring when Postfix is starting up... this one in particular shows up:

fatal: specify a password table via the smtp_sasl_password_maps' configuration parameter

What is the output of this command:

postconf -n

Fri, 09/27/2019 - 06:53
Sanikana

Thanks Andreychek for your response.

Here is the Output:

postconf -n

postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions

postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions

postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions

alias_database = hash:/etc/aliases

alias_maps = hash:/etc/aliases

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

data_directory = /var/lib/postfix

debug_peer_level = 2

debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5

home_mailbox = Maildir/

html_directory = no

inet_interfaces = all

inet_protocols = all

mail_owner = postfix

mailq_path = /usr/bin/mailq.postfix

manpage_directory = /usr/share/man

meta_directory = /etc/postfix

mydestination = $myhostname, localhost.$mydomain, localhost, web1.cityfindout.com

mydomain = web1.cityfindout.com

myhostname = web1.cityfindout.com

mynetworks = 168.100.189.0/28, 127.0.0.0/8

myorigin = $mydomain

newaliases_path = /usr/bin/newaliases.postfix

queue_directory = /var/spool/postfix

readme_directory = /usr/share/doc/postfix3-3.4.6/README_FILES

relay_domains = $mydestination

relayhost = [smtp.gmail.com]:587

sample_directory = /usr/share/doc/postfix3-3.4.6/samples

sendmail_path = /usr/sbin/sendmail.postfix

setgid_group = postdrop

shlib_directory = /usr/lib/postfix

smtp_sasl_auth_enable = yes

smtp_tls_security_level = may

smtpd_relay_restrictions = ${{$compatibility_level} < {1} ? {} : {permit_mynetworks permit_sasl_authenticated defer_unauth_destination}}

smtpd_tls_CAfile = /etc/postfix/postfix.ca.pem

smtpd_tls_cert_file = /etc/postfix/postfix.cert.pem

smtpd_tls_key_file = /etc/postfix/postfix.key.pem

smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1

smtpd_tls_security_level = may

unknown_local_recipient_reject_code = 550

Fri, 09/27/2019 - 07:08
andreychek

I suspect the issue is related to this line here:

smtp_sasl_auth_enable = yes

Try changing that to instead be:

smtpd_sasl_auth_enable = yes

And then restart Postfix with:

service postfix restart

Fri, 09/27/2019 - 08:42
Sanikana

After changing this: smtp_sasl_auth_enable = yes
TO this: smtpd_sasl_auth_enable = yes

I can not still send email.

I then checked the /var/log/maillog and saw a different output.

Here is the Output:

]# tail -f /var/log/maillog Sep 27 13:37:12 web1 dovecot: imap-login: Login: user=<sani.kana-skanah.com>, method=PLAIN, rip=::1, lip=::1, mpid=22764, secured, session <CjjH+4iTjL8AAAAAAAAAAAAAAAAAAAAB>

Sep 27 13:37:12 web1 dovecot: imap(sani.kana-skanah.com): Logged out in=129 out=980

Sep 27 13:37:35 web1 postfix/smtpd[22770]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains

Sep 27 13:37:36 web1 postfix/master[16849]: warning: process /usr/libexec/postfix/smtpd pid 22770 exit status 1

Sep 27 13:37:36 web1 postfix/master[16849]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

Sep 27 13:38:02 web1 postfix/smtpd[22775]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains

Sep 27 13:38:03 web1 postfix/master[16849]: warning: process /usr/libexec/postfix/smtpd pid 22775 exit status 1

Sep 27 13:38:03 web1 postfix/master[16849]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

Sep 27 13:38:12 web1 dovecot: imap-login: Login: user=<sani.kana-skanah.com>, method=PLAIN, rip=::1, lip=::1, mpid=22782, secured, session=<msla/4iTkr8AAAAAAAAAAAAAAAAAAAAB>

Sep 27 13:38:12 web1 dovecot: imap(sani.kana-skanah.com): Logged out in=129 out=980

Sep 27 13:38:36 web1 postfix/smtpd[22821]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains

Sep 27 13:38:37 web1 postfix/master[16849]: warning: process /usr/libexec/postfix/smtpd pid 22821 exit status 1

Sep 27 13:38:37 web1 postfix/master[16849]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

Sep 27 13:39:03 web1 postfix/smtpd[22825]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains

Sep 27 13:39:04 web1 postfix/master[16849]: warning: process /usr/libexec/postfix/smtpd pid 22825 exit status 1

Sep 27 13:39:04 web1 postfix/master[16849]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

Sep 27 13:39:12 web1 dovecot: imap-login: Login: user=<sani.kana-skanah.com>, method=PLAIN, rip=::1, lip=::1, mpid=22828, secured, session=