Operating System - HP-UX
1825768 Members
2327 Online
109687 Solutions
New Discussion

how to use sendmail to mail to internet user

 
SOLVED
Go to solution
j773303
Super Advisor

how to use sendmail to mail to internet user

How to use sendmial to mail to internet user?
Should I modify any configuration file? Thanks.
Hero
4 REPLIES 4
Joseph Loo
Honored Contributor

Re: how to use sendmail to mail to internet user

hi,

yes. /etc/mail/sendmail.cf.

see this thread and remember to restart your sendmail services:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=40363

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

regards.
what you do not see does not mean you should not believe
Hoefnix
Honored Contributor

Re: how to use sendmail to mail to internet user

Hi,

Be aware of that sendmail on HP-UX likes to resolve the domain that you are sending to.

If you behind a firewall with the sendmail server, the internal DNS not always resolves the internet domains.
Try to resolve (with nslookup) a domain that you like to send an email to from the server that runs sendmail. If this returns a IP address the sendmail sends the mail out to the configured relay-host.(see sendmail.cf in /etc/mail)

If you can not resolve the domain using a DNS server, try putting the internet domain in your local /etc/hosts file (fake IP-address while do the trick)

HTH,
Peter
Steven E. Protter
Exalted Contributor
Solution

Re: how to use sendmail to mail to internet user

Most of the time, you can relay through a smtp server

DS
[ip of relay server]

or hosthame

save sendmail.cf

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

Note that sendmail does NOT need to run as a daemon for mail to get off the box. Running it as a daemon for no reason is a bad idea.

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
Juan Manuel Naranjo A.
Frequent Advisor

Re: how to use sendmail to mail to internet user

You must configure:
- BIND ( Your Domain and Resolve method)
- SENDMAIL ( Your Domain, Relay server, etc )

You know how to ?