Operating System - HP-UX
1834140 Members
3113 Online
110064 Solutions
New Discussion

Re: Sendmail Relay Question

 
SOLVED
Go to solution
rmueller58
Valued Contributor

Sendmail Relay Question

I have a question about how to define sendmail as a client on my HP/UX box and relay off of a Linux box?

We have our UX box on the inside zone of our network, We do not have DNS resolver defined on it as it had caused problems.. What we want to do is send any sendmail items via an IP address relay to a Linux Box (that sits in a less secure zone) and has the ability to send out mail from that point.

It would seem we should be able to use Sendmail on UX as a client of the SMTP server on the linux box..

Any ideas appreciated..
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: Sendmail Relay Question

Shalom,

in sendmail.cf

Change

DS

to:

DShostnamelinuxbox

or

DS
[192.168.0.10]
# where the ip address is the ip addres of the linux box.

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

Linux will have to explicitly define the HP-UX box in its access file:

/etc/mail/access

hostnamehpux RELAY

or

ipaddresshpux RELAY

Then sendmail macro will need to compile the macro database on the linux box.

# script to build the sendmail from the macro database
/usr/bin/newaliases
cd /etc/mail
makemap -r -v hash access.db < access
makemap -r -v hash access_db < access
makemap -r -v hash domaintable.db < domaintable
makemap -r -v hash domaintable_db < domaintable
makemap -r -v hash genericstable.db < genericstable
makemap -r -v hash genericstable_db < genericstable
makemap -r -v hash mailertable_db < mailertable
makemap -r -v hash mailertable.db < mailertable
makemap -r -v hash virtusertable.db < virtusertable
makemap -r -v hash virtusertable_db < virtusertable
cp -p /etc/mail/sendmail.cf /root
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

service sendmail restart

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
rmueller58
Valued Contributor

Re: Sendmail Relay Question

Thank you Steven, for the quick reply.. I will give it a try.

Arunvijai_4
Honored Contributor

Re: Sendmail Relay Question

Hi Rex,

Try this : http://www.sendmail.org/tips/relaying.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
rmueller58
Valued Contributor

Re: Sendmail Relay Question

Steven, Thanks a bunch that did the trick.

As usual you have it down to a science.