Operating System - HP-UX
1835438 Members
2669 Online
110078 Solutions
New Discussion

Smart relay to a Microsoft based host

 
Rick Cottingham
Advisor

Smart relay to a Microsoft based host

I am running HPUX 11.23 and want to use sendmail to route mail destined for the outside world to a M/S host using smart relay
and have it sent out by that host. The M/S box is running something called SLMAIL which is sort of like a poor mans Exchange. My HPUX platform is not running DNS. Currently I can send mail to "local" users; users on the SLMAIL platform directly from the HPUX system. I can also send mail to a group list on the SLMAIL box and it will of course send that mail to the outside world if those users are outside. However, if I send mail from the HPUX system destined for the outside world that mail simply hangs in /var/spool/mqueue with a status of
(host map: lookup (aol.com): deferred).
This was a test send to an AOL account.

I have my email host system coded in the DS macro in sendmail.cf and the host name coded all 3 times in the sendmail.cw file.
In my SLMAIL system I am telling it to accept mail from the two possible IP addresses.
What am I missing ?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Smart relay to a Microsoft based host

Shalom,

By default the Microsoft host refused relay on all hosts but itself.

You must have it configured to permit relay for the IP address of your 11.23 server.

Then mail will flow.

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
Steven E. Protter
Exalted Contributor

Re: Smart relay to a Microsoft based host

Shalom,

By default the Microsoft host refused relay on all hosts but itself.

You must have it configured to permit relay for the IP address of your 11.23 server.

Then mail will flow.

But you seem to have done that so trace.

senmdmail -v -d8.99 -d38.99 some@aol.com

.


It may be DNS resolution but you will find the problem with this diagnosis.

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
Rick Cottingham
Advisor

Re: Smart relay to a Microsoft based host

Hi Steven,
The trace output indicates to me that sendmail is attempting DNS lookup and not even attempting to do the relay.
Results:

;; res_querydomain(mullins, , 1, 1)
;; res_query(mullins., 1, 1)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
seq_map_parse(aliases.files, )
;; res_query(6.20.16.172.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
;; res_query(2.20.16.172.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
openmap() dequote:dequote NULL: valid
openmap() host:host NULL: valid
getcanonname(aol.com), trying files
text_getcanonname(aol.com)
Standard input
text_getcanonname(aol.com)
getcanonname(aol.com), trying dns
dns_getcanonname(aol.com, trymx=1)
dns_getcanonname: trying aol.com. (ANY)
;; res_querydomain(aol.com, , 1, 255)
;; res_query(aol.com., 1, 255)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
NO: errno=239, h_errno=2
dns_getcanonname: trying aol.com. (AAAA)
;; res_querydomain(aol.com, , 1, 28)
;; res_query(aol.com., 1, 28)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
NO: errno=239, h_errno=2
getcanonname(aol.com), failed, status=75
aol.com: Name server timeout
elc013@aol.com... Transient parse error -- message queued for future delivery

Is this helpful ?
Rick
perumal_2
Frequent Advisor

Re: Smart relay to a Microsoft based host

Hi

Though you dont have DNS server running, you need to have the DNS client configured using /etc/resolv.conf
By looking at the trace output, it couldnt find your name server and throws an error
;; res_querydomain(mullins,"your domain name" , 1, 1)
;; res_query(mullins.your domain name, 1, 1)
;; Querying server (# 1) address = "your nameserver IP"

Since it couldnt find the name server it tries 0.0.0.0

try to configure your /etc/resolv.conf with your name server and domain name details, you should be able to send the mails outside using your MS relay server.

TQ
Perumal