Operating System - HP-UX
1826716 Members
2234 Online
109702 Solutions
New Discussion

Internet mail config. for hp-ux

 
SOLVED
Go to solution
Jesus Alonso
Occasional Contributor

Internet mail config. for hp-ux

I need to change the config file on my hp-ux system on wich the ip address of my internet mail computer is.
thanks.
7 REPLIES 7
Chris Vail
Honored Contributor

Re: Internet mail config. for hp-ux

That is usually in /etc/hosts. It is common to have this as an alias:

192.168.201.116 foo foo.com www.foo.com mail

Chris
Jesus Alonso
Occasional Contributor

Re: Internet mail config. for hp-ux

Even if my internet mail computer is a windows 2000 server?
Steven E. Protter
Exalted Contributor

Re: Internet mail config. for hp-ux

The answer depends on how you resolve hostnames.

If /etc/nsswitch.conf has files first, the above answer is correct.

If you use name resolution, as in nsswitch.conf is dns for first try, you need to have an entry for the Internet mail computer entered into the DNS database.

Try this as root on hp-ux

nsslookup name_of_internet_mail_computer

for example

nslookup mail.yourdoman.net

If the answer looks like this:

nslookup mail.yourdoman.net
Name Server: name.yourdomain.net
Address: 10.1.10.99

Trying DNS

Then you are using names resolution.

if it says FILES first, then you are using files first and post one is good for you.

nsswitch.conf is commonly set up to fail over to FILES if DNS doesn't work so putting it in /etc/hosts should be good enough, but you'll have to look at the nsswitch.conf file to be sure.

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
Jesus Alonso
Occasional Contributor

Re: Internet mail config. for hp-ux

it is not a problem of name resolution, i need to update (because my w2k internet mail server changed name and ip address) on my hpux server wich internet mail server must recive the elm mails generated on the hpux server.
W.C. Epperson
Trusted Contributor

Re: Internet mail config. for hp-ux

See if the hp-ux machine has an /etc/mail/sendmail.cf file with a line starting with DS.

E.G.
DSold.server.com

If so, change it to
DSnew.server.com

and re-start sendmail. That should cause all of the mail to be relayed via new.server.com where it used to be relayed via old.server.com.
"I have great faith in fools; self-confidence, my friends call it." --Poe
Paul Sperry
Honored Contributor
Solution

Re: Internet mail config. for hp-ux

in /etc/mail/sendmail.cf there should be a line like


# "Smart" relay host (may be null)
DS

change it to

DS

Kill sendmail:

ps -ef | grep sendmail
(not the pid#)
kill pid#

Start sendmail:
sendmail ???bi
sendmail ???bd




Steven E. Protter
Exalted Contributor

Re: Internet mail config. for hp-ux

Doesn't matter what kind of box relays the mail. Windows 2000 usually relays mail with Exchange, and it does not allow relay out of the box.

The exchange admin will have to explicitly authorize it.

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