Operating System - HP-UX
1834326 Members
2666 Online
110066 Solutions
New Discussion

Re: Configuring sendmail with no DNS available

 
Mohamed shamy
Occasional Advisor

Configuring sendmail with no DNS available

Hello
I'm trying to configure the send mail process to use my exchange server but my system doesnt involve any DNS configured , i have tried to add a line in the macro DS and i have added the ip of the exchange server in the /etc/hosts , restated the process , but every time i try to send the mail i get the following error .

momsrv01:/ # sendmail -v mshamy.c@stc.com.sa < /etc/hosts
stc.com.sa: Name server timeout
mshamy.c@stc.com.sa... Transient parse error -- message queued for future delivery
mshamy.c@stc.com.sa... queued


can any one help .

best regards
5 REPLIES 5
Court Campbell
Honored Contributor

Re: Configuring sendmail with no DNS available

Two choices.

1. use DNS.
2. Try this:

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065255439

Good Luck.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Steven E. Protter
Exalted Contributor

Re: Configuring sendmail with no DNS available

Shalom,

The sendmail DS feature will take IP addresses as well.

DS
[192.168.0.10]

in sendmail.cf where 192.168.0.10 is the ip address of the exchange server (or smtp relay system) is sufficient to get mail off the HP-Ux box without any DNS resolution at all.

I generally like to use the ip address format instead of the DShostname format so mail gets delivered during short term network/dns failures.

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
Emil Velez
Honored Contributor

Re: Configuring sendmail with no DNS available


I find sendmail works just fine if you put a fully qualified hostname in the /etc/hosts file as a alias for the local host system. That seems to work.
Patrick Wallek
Honored Contributor

Re: Configuring sendmail with no DNS available

A couple of other things to check:

1) Do you have a /etc/resolv.conf file? If so, and you are NOT using DNS, then rename it to /etc/resolv.conf.old or something.

2) Check to see if you have a /etc/nsswitch.conf file. If so, look in it for the hosts: line and see how it is configured. If you are not using DNS then it should look like:

hosts: files

Try these and see how your sendmail works.
Patrick Wallek
Honored Contributor

Re: Configuring sendmail with no DNS available

Take a look at Bill Hassel's response in this thread for some good info as well:

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