David,
Thanks for the tip about the locals file. That seems to have done the trick
for stopping the local deliveries.
I have another problem now during testing.
I have configured the new qmail server (qmail.our_lan.com) to respond as
though it is our existing mail server (externalmail.com) by making
defaultdomain, me, and rcpthosts contain "externalmail.com". The rcpthosts
also contains "our_lan.com" so that it will accept mail from the internal
servers for relaying.
In order to test that the fastforward aliases I have set-up actually work,
I am telnetting into the qmail server on port 25 and manually creating a
message as described in the TEST.receive file. I can not just send mail
from an external account as the real mail server would grab the message.
For testing purposes only, I want to tell qmail *not* to query the DNS. I
want it to accept that the local machine is externalmail.com, instead of
resolving to the real externalmail.com.
I have read in the tcpserver man page that it is apparently possible to
tell qmail to ignore the DNS and use the parameters provided, but this does
not seem to be working for me. My /var/qmail/supervise/qmail-smtpd/run file
looks like this:
#!/bin/sh
QMAILDUID=`/usr/xpg4/bin/id -u qmaild`
NOFILESGID=`/usr/xpg4/bin/id -g qmaild`
exec /usr/local/bin/softlimit -m 2000000 \
/usr/local/bin/tcpserver -v -R -H -l externalmail.com \
-x /etc/tcp.smtp.cdb \
-u "$QMAILDUID" -g "$NOFILESGID" \
0 smtp /var/qmail/bin/qmail-smtpd 2>&1
Mail is still getting sent to the existing mail server at externalmail.com.
I have tried adding "externalmail.com:[192.168.2.52]" (which is the IP of
the qmail server) to smtproutes, but this just causes a loop.
I have created ~alias/.qmail-default containing "|
/var/qmail/bin/fastforward -d /etc/aliases.cdb" but qmail never seems to
get to that point.
I have even changed ~control/defaultdelivery to "|
/var/qmail/bin/fastforward -d /etc/aliases.cdb" in the hopes that it would
help, but it hasn't.
I'm sure that I am missing something, but I can not figure out what. I'm
sure it will be a "DOH!" when someone points it out to me.
Assistance would be appreciated as I am *this* close to finishing, but am
stuck on this one detail.
TIA
Dion Vansevenant
Internetwork Administrator
MRO.com
Dave Sill
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
.ornl.gov> cc:
Subject: Re: Mail hub for relay and
outgoing only - no local
2001/02/20
15:45
<[EMAIL PROTECTED]> wrote:
>1) How do I prevent qmail from trying to deliver locally on the qmail
>server?
Leave control/locals empty.
>2) How can I correctly set-up the group redirects in a way that will
>eliminate (if not reduce) duplication due to an error sending to one
>address in the group?
List the members in the appropriate ~alias/.qmail-* file.
>3) What would be a good way of redirecting local names to the appropriate
>email address for the local messages from our Sun servers (ie: bobs ->
>[EMAIL PROTECTED]): individual /var/qmail/alias files, or some other
>method?
.qmail files in ~alias.
-Dave