On Thu, 6 Apr 2006, Matt Van Mater wrote:
I want to set up a host to relay all outgoing mail through a central
mail hub. I believe the proper high level steps for me to follow are:
edit the /usr/share/sendmail/cf/clientproto.mc file, compile it, copy
the resultant clientproto.cf file to /etc/mail/sendmail.cf and hup the
sendmail process. However when I try to send a test message via pine,
mail is still being sent directly to the internet rather than through
the relay, and I am stumped. What am I missing?
You may want to verify that you are indeed using sendmail.cf. Check
rc.conf/rc.conf.local . I think the default is localhost.cf .
What does the sendmail in test mode show?
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 3,0 [EMAIL PROTECTED]
-rick
Here are some more details on the steps I describe above.
edit /usr/share/sendmail/cf/clientproto.mc
Specifically i need to change the following line to be the mail server
i want to relay through
FEATURE(nullclient, my.mail.host.net.$m)
[EMAIL PROTECTED] /usr/share/sendmail/cf>vi clientproto.mc
[EMAIL PROTECTED] /usr/share/sendmail/cf>make
rm -f clientproto.cf
( cd /usr/share/sendmail/cf && /usr/bin/m4
/usr/share/sendmail/cf/../m4/cf.m4 clientproto.mc >
/usr/share/sendmail/cf/clientproto.cf )
echo "### clientproto.mc ###" >>clientproto.cf
sed -e 's/^/# /' /usr/share/sendmail/cf/clientproto.mc >>clientproto.cf
chmod 444 clientproto.cf
[EMAIL PROTECTED] /usr/share/sendmail/cf>ps aux |grep sendmail
root 2870 0.0 0.4 964 1324 ?? Ss 4:45PM 0:00.15
sendmail: accepting connections (sendmail)
root 18732 0.0 0.1 288 460 p0 R+ 5:08PM 0:00.02 grep sendmail
[EMAIL PROTECTED] /usr/share/sendmail/cf>kill -HUP 2870
[EMAIL PROTECTED] /usr/share/sendmail/cf>pine -conf |grep smtp
smtp-server=
The step above verifies that pine will use sendmail when sending
outbound messages. However, at the end of all of this, messages are
sent directly to the internet rather than through the hub. I don't
see any reference to my central hub in /var/log/maillog