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

Re: How to send mail using another SMTP server?

 
SOLVED
Go to solution
Jesse Delk
Frequent Advisor

How to send mail using another SMTP server?

I'm very new to HP-Unix, we have another server which we use to send mail (171.ab.cd.e).

On my present Digital Unix box I type...

mailx -s "Invalid Objects in AT, GTSD, GTSD8, CASE, and FL" jx@x.com
and the message is sent. I do not know how this was configured to configure the HP-Unix box.

Where do I tell it to use this other server as the mail server?

The HP-Unix box is using 11iV1.
3 REPLIES 3
Dwyane Everts_1
Honored Contributor
Solution

Re: How to send mail using another SMTP server?

Jesse,

You need to configure the HPUX box to "relay" all mail messages to the other server. In /etc/mail, you need to edit the sendmail.cf file, and make the "DS" variable point to the "mail" server.

For more information, search the HP site and Google for "relaying" mail to an Exchange server (same concept).

Also, don't forget to create a /etc/mail/mailertable file with your mail domains.

Hope this helps,
D
SS_6
Valued Contributor

Re: How to send mail using another SMTP server?

edit the /etc/mail/sendmail.cf file and search for DSxxxxxx.com. You need to stop and start sendmail demon if you change this entry.
#/sbin/init.d/sendmail stop
Change the relay server name in sendmail.cf
#/sbin/init.d/sendmail start
By providing solutions I am helping myself
Steven E. Protter
Exalted Contributor

Re: How to send mail using another SMTP server?

If you want to generate this option out of a sendmail.mc file with the m4 macro this is also possible.

Due to the proliferation of spam, most mail servers will not automatically relay your mail. You will need to check with your relay server admin and make sure it will accept mail from your HP-UX system via relay.

If its a Unix mail server that is done with the /etc/mail/access file.

See this script for m4 macros:

http://www.hpux.ws/buildmail.hpux.text

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