Operating System - HP-UX
1825801 Members
2260 Online
109687 Solutions
New Discussion

Re: Setting up my server for Sending External Mail

 
Leo Cifers
New Member

Setting up my server for Sending External Mail

Hello Everyone,
I am very novice about HP UNIX 11.0. And I need help with setting up my server so I can send mail from my Unix machine to external e-mail address. ex. yourname@yahoo.com.
Could someone walk me though on what I need to do?
Thanks in advance.
Still Confused
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Setting up my server for Sending External Mail

Hi:

Edit '/etc/mail/sendmail.cf' and change the 'DS' line to something like 'DSyour.place.com'.

Then, restart 'sendmail':

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

Regards!

...JRF...

Michael Elleby III_1
Trusted Contributor

Re: Setting up my server for Sending External Mail

Hello-

Just to add to what James stated:

"your.place.com" on the line starting with DS in most cases is the name of your SMTP host/relay address that mail will be forwarded to..

i.e. exchangeserver.yourcompany.com

Make sure that your UNIX server can resolve the name either by DNS or /etc/hosts.

Mike-
Knowledge Is Power
Jeff Schussele
Honored Contributor

Re: Setting up my server for Sending External Mail

Hi,

If your system doesn't use DNS or you can't qualify your domain name then you would set the following:

Dj$w.mysubnet.company.com

This assumes the $w (hostname macro) has been set & it usually is.

Also you should edit the /etc/mail/sendmail.cw and enter all the hostnames - both short & long - and aliases for this system so tha sendmail knows for what hostnames to receive mail.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Madhu Kangara
Frequent Advisor

Re: Setting up my server for Sending External Mail

sending mail outside is easy if you have sendmail configured and you have a DNS lookup working.
Receiving mail is a different situation as you need more configuration in sendmail.cf either through command line (which I don't recommend) or my editing sendmail.mc and doing a m4
and ofcource you should have a static IP address to reach you or need to use Dynamic DNS

Try reading FAQ at www.sendmail.org or at www.linuxdoc.org and select Sendmail