# postconf -n
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_size_limit = 0
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = xxxxx.pgw.jp
myhostname = mail.xxxxx.pgw.jp
myorigin = $mydomain
recipient_delimiter = +
smtpd_banner = $myhostname ESMTP unknown
smtpd_recipient_restrictions = permit_mynetworks , permit_sasl_authenticated , reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
relayhost = [smtp.mailgun.org]:2525
smtp_tls_security_level = encrypt
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
#netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 10.138.0.2:22 106.156.154.48:56742 ESTABLISHED
tcp 0 0 10.138.0.2:57738 169.254.169.254:80 CLOSE_WAIT
tcp 0 0 10.138.0.2:57744 169.254.169.254:80 ESTABLISHED
tcp 0 0 10.138.0.2:57746 169.254.169.254:80 ESTABLISHED
tcp 0 52 10.138.0.2:22 106.156.154.48:57073 ESTABLISHED
tcp 0 0 10.138.0.2:57742 169.254.169.254:80 ESTABLISHED
tcp6 0 0 :::111 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN