Always use these names in clients and configuration, never a server’s own name:
The servers behind these names can change, or be added for redundancy, without any client being reconfigured. The TLS certificates on the mail servers cover the service names.
The primary mail server is mail1.ziply.hamwan.net: Debian, Postfix and Mailman 3, handling mail for hamwan.org and hamwan.net. A second mail server at the Westin is the backup MX and backup relay, and runs the same filtering. Admin SSH is on port 222.
The MX records name the servers themselves (an MX record may not point at an alias): the primary at priority 10, the Westin server at priority 20.
Set your SMTP client (Postfix relayhost, rsyslog $ActionMailSMTPServer, and so on) to smtp.hamwan.net:
A host that is neither can still send to hamwan.org and hamwan.net addresses; mail to anywhere else is refused at once with 554 Relay access denied. Each sending address may send up to 500 messages and 1,000 recipients an hour; past that, mail is deferred and retried, not lost.
hamwan.org and hamwan.net accept mail only for aliases in /etc/aliases and for Mailman lists; every other address is rejected. An alias works at both domains, and plus-addressing works (name+anything@hamwan.org).
To add or change a forward:
sudo nano /etc/aliases # name: someone@example.com
sudo newaliases # rebuild aliases.db (required)
sudo /usr/sbin/postmap -q name hash:/etc/aliases
Lists run on Mailman 3, at @hamwan.org only. Web interface: mailman.hamwan.org (Postorius for settings and subscriptions, HyperKitty for archives). The public list is psdr (archives).
board@ and netops@ accept and distribute posts from non-members, because they receive mail from the public. The other lists hold non-member posts for a moderator. Posts that SpamAssassin flags reach members with [SPAM?] at the start of the subject; a list with at least two moderators may hold flagged posts instead (Mailman header_matches on X-Spam-Flag: YES).
Mail is filtered in two stages. Only the listed HamWAN servers are exempt.
X-Spam-Status and X-Spam-Flag headers. At 5.0 or above the subject gets [SPAM?]. Content scores never cause a rejection.A weekly report (/usr/local/sbin/mail-filter-report, from /etc/cron.d/mail-filter-report) lists every outside message with its blocklist score, sender-check result and SpamAssassin score. Review it before tightening any rule.
Configuration: postscreen_* settings and /etc/postfix/postscreen_access.cidr (allowlist) in Postfix; /etc/spamassassin/local.cf; /etc/default/spamass-milter. To make the connection stage log without refusing (for troubleshooting), set postscreen_dnsbl_action = ignore and wrap the sender checks in warn_if_reject.
/etc/default/postsrsd): mail forwarded by an alias leaves with the envelope sender SRS0=…@hamwan.org, so it passes SPF at the destination; bounces to that address are decoded back to the original sender. Mail from hamwan.org senders is not rewritten. The secret is in /etc/postsrsd.secret; changing it breaks bounces for mail already sent. Postfix: sender_canonical_maps = tcp:127.0.0.1:10001, recipient_canonical_maps = tcp:127.0.0.1:10002.From address at hamwan.org or hamwan.net sent from the mail server or the listed HamWAN servers (list mail, notices, monitoring) is signed for that domain. Each mail server has its own selector and key (/etc/opendkim/keys/hamwan.org/); the same key is published at <selector>._domainkey.hamwan.org and <selector>._domainkey.hamwan.net.