From: Charlie Root <root@…> — but which Charlie?
I hate it when different, independent computers all send me mail from my close friend Charlie Root. Here's an aox hack to ease the pain.
Enable check-sender-addresses in the configuration file. Make a separate aox account for each affected computer. If a computer is a personal laptop, use the computer's owner's account, and enable submit-copy-to-sender. Then configure its mail server to use that account for all outgoing mail. In the case of postfix:
relayhost = aox.serv.er:587
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
When postfix needs to send mail, it will connect to aox.serv.er port 587, see that it needs to authenticate, consult /etc/postfix/sasl_passed, where it finds the single line
When Archiveopteryx receives the message, it makes sure that From etc. contain only addresses login may use, if necessary changing the message's addresses. Archiveopteryx then sends the message onwards, with a copy to the computer's owner if appropriate.