Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail with explicit routing

Rob W. Thompson
Occasional Visitor

Sendmail with explicit routing

I have an HP9000 rp5470 running HP-UX 11i v1. Due to application issues I cannot upgrade sendmail versions (8.9 in use). My 'box' is not the primary mailserver and our primary DNS server is a bit flakey and out of my control. Due to the third party applications nature emails are essential to our business office. With out having to reconfigure 500+ GroupWise clients, is there a way to force sendmail to skip the dns server and deliver/route directly to the primary mailserver?
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: Sendmail with explicit routing

Shalom Rob,

Yes.

edit your sendmail.cf file.

Change
DS

to

DShostname_primary_mail_server
or
DS
[ip address of primary mail server]

Examples:

DSexhange1
DS
[192.168.0.10]

Save the file.

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

tail -f /var/adm/syslog/mail.log (check the name it will be obvious).

Send some mail from the server.

At this point it should be directly forwarded to the primary mail server.

Gotchas: the primary mail server must be explicitly configured to permit your rp5470 server to relay mail, otherwise your mail log will be full of relay denied messages.

Done

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rob W. Thompson
Occasional Visitor

Re: Sendmail with explicit routing

While not getting any relay denied messages, mail still takes the same route to the mailserver as before. Any other suggestions?
Rob W. Thompson
Occasional Visitor

Re: Sendmail with explicit routing

... -- ...