1847479 Members
3114 Online
110265 Solutions
New Discussion

Re: mailx/sendmail

 
SOLVED
Go to solution
10ft
Occasional Advisor

mailx/sendmail

I Have to send e-mail in a script via mailx.
My smtp server is in another computer.
My problem is that a do not know
how to configure mailx ? sendmail ?.
I wish send message via my smtp server (linux) that is on internet.
Thanks
2 REPLIES 2
twang
Honored Contributor
Solution

Re: mailx/sendmail

Steven E. Protter
Exalted Contributor

Re: mailx/sendmail

mailx is a mailing utiliyt requiring no configuration.

sendmail's primary configuration is a file called /etc/sendmail.cf or /etc/mail/sendmail.cf

To set up relay the Linux box needs to allow relays from the IP of the HP-UX box.

/etc/mail/access Here is a sample.

192.168.0.2 RELAY

That was tab delimited on my Linux box.

servcie sendmail restart after setting this up.

I'm attaching my script for rebuilding the hash databases on the Linux box.

Now, on the HP-UX box, much easier.

There is a DS directive in the above mentioned sendmail.cf file

vi the file, find the DS and put the IP address of the linux box in there here is the form.

DS
[192.168.1.2]

That being the IP address of the Linux box.

Save the file

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

Now you are 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