Use serialmail
, (
http://pobox.com/~djb/serialmail.html
.)
All the mail for af.mil
should be delivered to our disk server,
pokey.af.mil
. I've set up
af.mil IN MX 10 pokey.af.mil
in DNS, 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
from /var/qmail/control/locals
and tell qmail to read locals
---as in question
How do I tell qmail to read locals and virtualdomains?. Make sure the
MX
is set up properly before you do this. Also make sure that pokey
can receive mail for af.mil
---as in
How do I receive mail for another host name?.
I'd like zippy.af.mil
to send all mail to bigbang.af.mil
.
Answer:
echo :bigbang.af.mil > /var/qmail/control/smtproutes
chmod 644 /var/qmail/control/smtproutes
Disable local delivery as in question
How do I send local messages to another host?. Turn off qmail-smtpd
in
/etc/inetd.conf
, and give inetd
a HUP if you are running it
from inetd
; otherwise, disable the tcpserver
boot script that handles
qmail-smtpd
.
I need qmail to send all outgoing mail via UUCP to my upstream
UUCP site, gonzo
.
Answer:
Put
:alias-uucp
into /var/qmail/control/virtualdomains
and tell qmail to read
virtualdomains ---see question
How do I tell qmail to read locals and virtualdomains?. Put
|preline -df /usr/bin/uux - -r -gC -a"${SENDER:-MAILER-DAEMON}" gonzo!rmail "($DEFAULT@$HOST)"
(all on one line) into ~alias/.qmail-uucp-default
. (For some
UUCP software you will need to use -d
instead of -df
.
CNAME lookup failed temporarily
?
The log showed that a message was deferred for this reason. Why is qmail doing CNAME lookups, anyway?
Answer:
The SMTP standard does not permit aliased hostnames (see
http://pobox.com/~djb/im/cname.html
), so qmail has to do a
CNAME lookup in DNS for every sender and recipient host.
CNAME lookup failed temporarily
means that the relevant DNS server is down.
It will try again soon.