ufw status
Status: active
To Action From
-- ------ ----
Apache ALLOW Anywhere
Apache Full ALLOW Anywhere
465/tcp ALLOW Anywhere
22/tcp ALLOW Anywhere
Apache (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)
465/tcp (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
465/tcp ALLOW OUT Anywhere
465/tcp (v6) ALLOW OUT Anywhere (v6)
-------------------------------------------------------------
master.cf
smtp inet n - y - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_tls_wrappermode=yes
-o smtpd_reject_unlisted_recipient=no
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o smtpd_helo_restrictions=permit_mynetworks,reject_invalid_helo_hostname,reject_non_fqdn_helo_hostname
-o smtpd_sender_restrictions=permit_mynetworks,reject_non_fqdn_sender,reject_unknown_sender_domain
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
#628 inet n - y - - qmqpd
pickup unix n - y 60 1 pickup
cleanup unix n - y - 0 cleanup
qmgr unix n - n 300 1 qmgr
#qmgr unix n - n 300 1 oqmgr
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
-o syslog_name=postfix/$service_name
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
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 - - lmtp
anvil unix - - y - 1 anvil
scache unix - - y - 1 scache
postlog unix-dgram n - n - 1 postlogd
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
----------------------------------------------------------------------------------
mail.log (only the last 12 entries, been restarted.
2024-05-09T15:35:34.631083+00:00 (mailserver no .com in it) postfix/smtps/smtpd[5002]: disconnect from localhost[::1] commands=0/0
2024-05-09T15:36:14.921785+00:00 (mailserver no .com in it) postfix/smtps/smtpd[5002]: connect from 172-234-224-51.ip.linodeusercontent.com[172.234.224.51]
2024-05-09T15:36:22.566665+00:00 (mailserver no .com in it) postfix/smtps/smtpd[5002]: SSL_accept error from 172-234-224-51.ip.linodeusercontent.com[172.234.224.51]: -1
2024-05-09T15:36:22.566810+00:00 (mailserver no .com in it) postfix/smtps/smtpd[5002]: warning: TLS library problem: error:0A00010B:SSL routines::wrong version number:../ssl/record/ssl3_record.c:354:
2024-05-09T15:36:22.566880+00:00 (mailserver no .com in it) postfix/smtps/smtpd[5002]: lost connection after CONNECT from 172-234-224-51.ip.linodeusercontent.com[172.234.224.51]
2024-05-09T15:36:22.566919+00:00 (mailserver no .com in it) postfix/smtps/smtpd[5002]: disconnect from 172-234-224-51.ip.linodeusercontent.com[172.234.224.51] commands=0/0
2024-05-09T15:42:10.141657+00:00 (mailserver no .com in it) postfix/postfix-script[1195]: starting the Postfix mail system
2024-05-09T15:42:10.149404+00:00 (mailserver no .com in it) postfix/master[1197]: daemon started -- version 3.8.6, configuration /etc/postfix
2024-05-09T15:47:12.228436+00:00 (mailserver no .com in it) postfix/smtps/smtpd[1394]: connect from a27-253.smtp-out.us-west-2.amazonses.com[54.240.27.253]
2024-05-09T15:49:12.132170+00:00 (mailserver no .com in it) postfix/smtps/smtpd[1394]: SSL_accept error from a27-253.smtp-out.us-west-2.amazonses.com[54.240.27.253]: lost connection
2024-05-09T15:49:12.138871+00:00 (mailserver no .com in it) postfix/smtps/smtpd[1394]: lost connection after CONNECT from a27-253.smtp-out.us-west-2.amazonses.com[54.240.27.253]
2024-05-09T15:49:12.138933+00:00 (mailserver no .com in it) postfix/smtps/smtpd[1394]: disconnect from a27-253.smtp-out.us-west-2.amazonses.com[54.240.27.253] commands=0/0
sudo netstat -tul
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 _localdnsstub:domain 0.0.0.0:* LISTEN
tcp 0 0 localhost:33060 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:smtp 0.0.0.0:* LISTEN
tcp 0 0 localhost:mysql 0.0.0.0:* LISTEN
tcp 0 0 _localdnsproxy:domain 0.0.0.0:* LISTEN
tcp6 0 0 [::]:http [::]:* LISTEN
tcp6 0 0 [::]:smtp [::]:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN
udp 0 0 _localdnsproxy:domain 0.0.0.0:*
udp 0 0 _localdnsstub:domain 0.0.0.0:*
udp 0 0 172-234-224-51.i:bootpc 0.0.0.0:*
sudo netstat -tuln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:33060 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::25 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
udp 0 0 127.0.0.54:53 0.0.0.0:*
udp 0 0 127.0.0.53:53 0.0.0.0:*
udp 0 0 172.234.224.51:68 0.0.0.0:*
Como
sudo netstat -tul
mostra, sua instância do Postfix está escutando na porta padrão25
:Para alterá-lo para
465
, você precisará alterar esta linha em/etc/postfix/master.cf
:para esta linha:
E então recarregue a configuração do Postfix: