Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail relay and dns lookups

Gregory Marchese_1
Occasional Contributor

Sendmail relay and dns lookups

Here is the problem. We have a server running HPUX 11.00 and sendmail 8.9.3 we have our DS record set in sendmail.cf to send mail to the exchange relay server. This works for all addresses except ones that can not be found in DNS or /etc/hosts. The result is the message gets deferred and stays in mailq. Is there reason this mail never leaves teh unix server? shouldn't it be treated as any other mail and go off to the relay? Is there something I'm missing in on of teh config files?

Thanks in advance. points will be awarded.

-Greg
3 REPLIES
RAC_1
Honored Contributor

Re: Sendmail relay and dns lookups

This is expected behavior of sendmail. If a addresses can not be resolved, that email will just sit in mailq only.
There is no substitute to HARDWORK
kcpant
Trusted Contributor

Re: Sendmail relay and dns lookups

Hi Gregory,

You can use a feature (relay_hosts_only) and define your network range in access file for allowed networks. In this way mails will be relayed even if dns/hosts could not be resolved.
PreSales Specialist
Gregory Marchese_1
Occasional Contributor

Re: Sendmail relay and dns lookups

Thanks guys.

I solved this by commenting out
# pass to name server to make hostname canonical
#R$* < @ $* $~P > $* $: $1 < @ $[ $2 $3 $] > $4

then changing

F=mDFMuX
to
F=0mDFMuX

in section
#####################################
### SMTP Mailer specification ###
#####################################
Msmtp, P=[IPC], F=0mDFMuX, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h
Mesmtp, P=[IPC], F=0mDFMuXa, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h
Msmtp8, P=[IPC], F=0mDFMuX8, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h
Mrelay, P=[IPC], F=0mDFMuXa8, S=11/31, R=61, E=\r\n, L=2040,
T=DNS/RFC822/SMTP,
A=IPC $h