Everything else is already in the shipped configuration; two things are set by hand.
The responsible person’s address is postmaster. The pmtawatch watchdog sends the crash report there after an automatic restart, as well as the license expiry warning, and mail to the local postmaster and abuse is forwarded there by default.
Relaying control. By default mail is accepted only from 127.0.0.1; every other submitting machine needs its own <source> block with always-allow-relaying. relay-domain and relay-address are needed only if the node accepts inbound mail: they name the recipients for whom mail is accepted from any source.
What to set:
| What | Line | When |
|---|---|---|
| the responsible person’s address | postmaster | always |
| a submitting machine | <source> with always-allow-relaying | for each one except 127.0.0.1 |
| recipients of inbound mail | relay-domain, relay-address | only if the node accepts mail |
postmaster admin@example.com <source 10.0.0.1> always-allow-relaying yes</source>
4 relations
The watchdog that restarts the engineThe mechanism this step relies on. § 2.3
grep -n '^postmaster\|always-allow-relaying' /etc/pmta/config
3 articles
◇Accept, route, deliverA message’s path inside the node: accept, decide where, deliver — and all the settings live between these three steps.◇How a message gets into the engineSix described submission methods: extended SMTP, four language bindings and a directory the node watches on disk.◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.