How do I switch slowly from sendmail to qmail?
1. Controlling the appearance of outgoing messages 1.1. How do I set up host masquerading? All the users on this host, zippy.af.mil, are users on af.mil. When joe sends a message to fred, the message should say “From: joe@af.mil” and “To: fred@af.mil”, without “zippy” anywhere. Answer: echo af.mil > /var/qmail/control/defaulthost; chmod 644 /var/qmail/control/defaulthost. 1.2. How do I set up user masquerading? I’d like my own From lines to show boss@af.mil rather than god@heaven.af.mil. Answer: Add MAILHOST=af.mil and MAILUSER=boss to your environment. To override From lines supplied by your MUA, add QMAILINJECT=f to your environment. 2. Routing outgoing messages 2.1. How do I send local messages to another host? All the mail for af.mil should be delivered to our disk server, pokey.af.mil. I’ve set up an MX from af.mil to pokey.af.mil, but when a user on the af.mil host sends a message to boss@af.mil, af.mil tries to deliver it locally. How do I stop that? Answer: Remove af.mil