Operating System - HP-UX
1833797 Members
4130 Online
110063 Solutions
New Discussion

How to set up mail to send to a local mail server to route outside

 
SOLVED
Go to solution
Brian Ham
Advisor

How to set up mail to send to a local mail server to route outside

How can I set up mail to send all mail to a Internal Mail Relay server to Route mail external.

What should happen: A Unix server-- Sends mail to Local Mail Server-- Sends mail through Firewall-- to an outside email account.

Currently what happens...... mail sends to an outside accout and never gets delivered because this Unix server is not a routable server (no MX records or routing entries)

Thanks
2 REPLIES 2
Uday_S_Ankolekar
Honored Contributor
Solution

Re: How to set up mail to send to a local mail server to route outside

Hi,

Edit /etc/mail/sednamil.cf file.

Look for DS flag by /^DS
add your mail relay host infront of this,

DSmailrelay.damin.com

Restart the sendmail by
/sbin/init.d/sednamil stop
/sbin/init.d/sendmail start.

You can check this by
sendmail -v yourid@yahoo.com
Logs can be checked at /var/adm/syslog/mail.log

Goodluck,
-USA..
Good Luck..
Sanjay_6
Honored Contributor

Re: How to set up mail to send to a local mail server to route outside

hi,

Like Uday has suggested, to send mail to internet, use a smart mail relay. in /etc/mail/sendmail.cf it is defined as

DSyour_smart_relay.domain.com

If you make any changes to /etc/mail/sendmail.cf you should restart sendmail,

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

Hope this helps.

Regds