Operating System - HP-UX
1837920 Members
4585 Online
110124 Solutions
New Discussion

Cannot send mails with sendmail

 
SOLVED
Go to solution
R.O.
Esteemed Contributor

Cannot send mails with sendmail

Hi,

I have an 11i HPUX and when I send a mail, it remains in mqueue, and tell this:
Mhost map: lookup (DOMAIN): deferred

This systems resolvs by /etc/hosts, not by DNS.

Could somebody help me ?

Thanks and regards,
"When you look into an abyss, the abyss also looks into you"
3 REPLIES 3
Naveej.K.A
Honored Contributor
Solution

Re: Cannot send mails with sendmail

hi,

look in the file /etc/mail/sendmail.cf and say what are the entries for

1. your smart relay host (entries with Ds Macro)
2. ping the domain (defined in /etc/hosts) and see whether it is pinging.
3. is the Service Switch file enabled. (search for the string "/etc/mail/service.switch" in sendmail.cf and see whether line beginning with is hashed)

with best wishes
Naveej
practice makes a man perfect!!!

Re: Cannot send mails with sendmail

R.O.

If the /etc/nsswitch.conf file has a DNS entry, then the sendmail server MUST be set up so that it can access a working nameserver. This is also true if there is no nsswitch.conf file as the default operation includes DNS.

Look at your /etc/resolv.conf file if you have one. If you are using DNS, there should be a valid nameserver entry. If it does not contain a functioning nameserver, then you will need to edit the /etc/nsswitch.conf file and remove the reference to DNS from the hosts line, or make sure the file contains a line similar to this:

hosts: files


Good luck,
Chris
KapilRaj
Honored Contributor

Re: Cannot send mails with sendmail

telnet relayserver 25
helo

this command would return a host name for your host , add it in your /etc/mail/relay-domains


Kaps
Nothing is impossible