§2024-04-24
Here is my main.cf at this above date
alexlai@h2Jammy:/etc/postfix$ grep myorigin main.cf
#myorigin = /etc/mailname
myorigin = /etc/mailname
alexlai@h2Jammy:/etc/postfix$ cat /etc/mailname
h2Jammy.yushei.net
alexlai@h2Jammy:/etc/postfix$ grep mynetworks main.cf
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/16
alexlai@h2Jammy:/etc/postfix$ grep relayhost main.cf
relayhost =
You should set up a postmaster alias in the aliases(5) table that directs mail to a human person.
alexlai@h2Jammy:/etc/postfix$ cat /etc/aliases
# See man 5 aliases for format
postmaster: root
root: alexlai
Execute the command "newaliases" after changing the aliases file.
if notify_classes was not explicitly defined in the Postfix documentation, which meant that Postfix would use its built-in defaults.
or defined it as notify_classes = bounce, delay, policy, protocol, resource
/etc/postfix/main.cf:
proxy_interfaces = 1.2.3.4 (the proxy/NAT external network address)
tail -f /var/log/mail.log