ยง2024-04-24

Here is my main.cf at this above date

  1. myorigin, domains to receive mail for
alexlai@h2Jammy:/etc/postfix$ grep myorigin main.cf
#myorigin = /etc/mailname
myorigin = /etc/mailname
alexlai@h2Jammy:/etc/postfix$ cat /etc/mailname
h2Jammy.yushei.net
  1. What clients to relay mail from
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
  1. relayhost, What destinations to relay mail to
alexlai@h2Jammy:/etc/postfix$ grep relayhost main.cf
relayhost = 
  1. /etc/aliases, and notify_classes defined in main.cf, What trouble to report to the postmaster

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

  1. proxy_interfaces, Proxy/NAT external network addresses
/etc/postfix/main.cf:
    proxy_interfaces = 1.2.3.4 (the proxy/NAT external network address)
  1. What you need to know about Postfix logging ???

tail -f /var/log/mail.log