Folks, I need help with a sendmail config.

I am trying to get my machine to forward ALL mail through a central mail
server.   I do not want anything delivered locally (we have a central
mail server for all mail).

I have configured the sendmail.mc (cf) file to be a nullclient however
it still wants to deliver mail locally (eg if I do a "mail matth").

Here is my nullclient.mc file (which I build into sendmail.cf)

divert(-1)
dnl This is the sendmail macro config file. If you make changes to this
file,
dnl you need the sendmail-cf rpm installed and then have to generate a
dnl new /etc/sendmail.cf by running the following command:
dnl
dnl        m4 /etc/mail/nullclient.mc > /etc/sendmail.cf
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
OSTYPE(`linux')
DOMAIN(`generic')dnl                        
FEATURE(`nullclient',`panda.xxxxxx.com.au')dnl  
undefine(`ALIAS_FILE')dnl  

Here is the log of sending an email to 'matth':

Jan 16 14:32:36 wormhole sendmail[9464]: i0G3Wa809461: to=matth,
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local,
pri=30030, dsn=2.0.0, stat=Sent

As you can see, sendmail still delivers this mail locally rather than
forwarding onto my mail hub.   

I've tried removing the include() above, but then sendmail complains
when I restart it:

Starting sendmail: 
No local mailer defined
QueueDirectory (Q) option must be set          [FAILED]   

Has anyone got a Redhat machine (this is 7.3) to actually work as a
nullclient ?? 

Matt

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to