Arnt Gulbrandsen
About meAbout this blog

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 =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes

When postfix needs to send mail, it will connect to port 587, see that it needs to authenticate, consult /etc/postfix/sasl_passed, where it finds the single line   login:password

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.



I think autoconf (and similar tools) lead to bad programming, for a number of reasons. They don't force bad programming — they just make it simple to do bad things.

Moreover, the value they offer doesn't generally justify their problems. Autoconf's most-used single feature is prehaps the --prefix option to install the software in a user-determined location. Implementing that functionality is hardly rocket science.

There are three main reasons for my dislike.

Autoconf encourages use of #ifdef, which leads to a vast increase in testing load. (more…)