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.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem between sendmail and Exchange 2000

Mariani Alberto
Frequent Advisor

Problem between sendmail and Exchange 2000

Hi all!
I have a small problem with our UX-box: I need to be able to send mail from the UX machine to the mailboxes on our exchange 2000 server. So far i put the name of the exchange server (which is also a dns) in the macro DS of sendmail.cf (i do not need to receive mail on the ux box).
If i try to send a mail to one of the users, i get this:

Reporting-MTA: dns; l2000.
Arrival-Date: Mon, 15 Dec 2003 15:59:50 +0100 (MET)

Final-Recipient: RFC822; alberto.mariani@para.it
Action: failed
Status: 5.5.0
Remote-MTA: DNS; paraserver.para.it
Diagnostic-Code: SMTP; 501 5.5.4 Invalid Address

As you can see, sendmail used "HELO l2000." and this causes Exchange to say it supplied an invalid address. If i try with l2000 without the trailing dot, it works.

Any idea about how can i force sendmail to use the fqdn or the short name w/o the dot ?

Thank you,
Alberto M.

6 REPLIES
Steven E. Protter
Exalted Contributor

Re: Problem between sendmail and Exchange 2000

Diagnostic step:

sendmail -v -d8.99 -d38.99 alberto.mariani@para.it

type some text

.


this will get you a very verbose output.


That will probably lead one of two ways:

1) DNS problems on the HP box or W2K box. If it can't result the domain address its going to give that result.

2) The W2K Exhange server doesn't have relay authorized for the HP-UX server.

If you resolve your issues you won't have to worry about your last question Alberto.

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
Mariani Alberto
Frequent Advisor

Re: Problem between sendmail and Exchange 2000

This is the output i get when i run the command you specified:

;; res_querydomain(l2000, para.it, 1, 1)
;; res_query(l2000.para.it, 1, 1)
;; Querying server (# 1) address = 10.0.1.1
seq_map_parse(aliases.files, )
;; res_query(4.1.0.10.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 10.0.1.1
;; rcode = 3, ancount=0
map_init(sequence:aliases.files, NULL, 0)
sequence:aliases.files NULL: valid
map_init(implicit:Alias0, /etc/mail/aliases, 0)
wrong pass (pass = 0, rebuildable = 1)
map_init(host:host, NULL, 0)
host:host NULL: valid
map_init(switch:aliases, aliases, 0)
switch_map_open(aliases, aliases, 0)
switch_map_find => 1
files
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote NULL: valid
map_init(host:resolve, NULL, 0)
host:resolve NULL: valid
map_init(sequence:aliases.files, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(implicit:Alias0, /etc/mail/aliases, 1)
impl_map_open(Alias0, /etc/mail/aliases, 0)
hash_map_open(Alias0, /etc/mail/aliases, 0)
impl_map_lookup(Alias0, @)
db_map_lookup(Alias0, @)
implicit:Alias0 /etc/mail/aliases: valid
map_init(host:host, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(switch:aliases, aliases, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(dequote:dequote, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(host:resolve, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
getcanonname(para.it), trying dns
dns_getcanonname(para.it, trymx=1)
dns_getcanonname: trying para.it. (ANY)
;; res_querydomain(para.it, , 1, 255)
;; res_query(para.it., 1, 255)
;; Querying server (# 1) address = 10.0.1.1
YES
dns_getcanonname: para.it
getcanonname(para.it), found

.
getmxrr(paraserver, droplocalhost=1)
;; res_querydomain(paraserver, para.it, 1, 15)
;; res_query(paraserver.para.it, 1, 15)
;; Querying server (# 1) address = 10.0.1.1
;; rcode = 0, ancount=0
;; res_querydomain(paraserver, , 1, 15)
;; res_query(paraserver, 1, 15)
;; Querying server (# 1) address = 10.0.1.1
;; Querying server (# 2) address = 151.99.125.2
;; rcode = 3, ancount=0
getmxrr: res_search(paraserver) failed (errno=0, h_errno=1)
getcanonname(paraserver), trying dns
dns_getcanonname(paraserver, trymx=0)
dns_getcanonname: trying paraserver.para.it (ANY)
;; res_querydomain(paraserver, para.it, 1, 255)
;; res_query(paraserver.para.it, 1, 255)
;; Querying server (# 1) address = 10.0.1.1
YES
dns_getcanonname: paraserver.para.it
getcanonname(paraserver.para.it), found
alberto.mariani@para.it... Connecting to paraserver.para.it. via relay...
;; res_querydomain(paraserver.para.it., , 1, 1)
;; res_query(paraserver.para.it, 1, 1)
;; Querying server (# 1) address = 10.0.1.1
220 paraserver.para.it Microsoft ESMTP MAIL Service, Version: 5.0.2195.2966 read
y at Mon, 15 Dec 2003 16:34:57 +0100
>>> EHLO l2000.
501 5.5.4 Invalid Address
>>> HELO l2000.
501 5.5.4 Invalid Address
>>> QUIT
221 2.0.0 paraserver.para.it Service closing transmission channel
Service unavailable
seq_map_lookup(aliases, root)
seq_map_lookup(aliases.files, root)
impl_map_lookup(Alias0, root)
db_map_lookup(Alias0, root)
/dead.letter... Saved message in /dead.letter
Closing connection to paraserver.para.it.
closemaps: closing aliases.files (NULL)
closemaps: closing Alias0 (/etc/mail/aliases)
impl_map_close(Alias0, /etc/mail/aliases, 12a3)
db_map_close(Alias0, /etc/mail/aliases, 12a3)
closemaps: closing host (NULL)
closemaps: closing aliases (aliases)
closemaps: closing dequote (NULL)
closemaps: closing resolve (NULL)

I'm not an expert in sendmail, but i think everything is reasonably correct, except for the fact that sendmail puts that trailing dot in the HELO (and EHLO) command.

Does this show any more light on my problem ?

Bye,

Alberto

Geoff Wild
Honored Contributor

Re: Problem between sendmail and Exchange 2000

If a user attempts to send mail to Exchange 2000 Server
by using another exchange server, the Exchange computer
receives a "501 5.5.4 Invalid Address".
(this problem ocurs by using UNIX Send Mail), but how can
I fix this problem between the two exchange???

how can I To work around this problem?? the note from
technet says only when you send from unix an not from
exchange...




Cause
This problem can occur if the UNIX sending server is not
in compliance with the Request for Comments (RFC) 821 and
RFC 1869 documents. The receiving Exchange computer
expects either a host name only or a fully qualified
domain name (FQDN) following the EHLO/HELO command. A
trailing dot after the FQDN is interpreted as incorrect
syntax, and a 501 error message is generated.

NOTE: A trailing space also generates this error message.

Exchange 2000 do not allow trailing spaces and trailing
dots, which is in accordance with the RFC 821 and RFC 1869
documents (which do not allow trailing spaces or trailing
dots). However, some Simple Mail Transfer Protocol (SMTP)
hosts, such as Send Mail servers, do allow trailing spaces
and trailing dots.


--------------------------------------------------------------------------------


Sounds like maybe sendmail isn't configured correctly for your site.


Check/Set the following in /etc/mail/sendmail.cf

# who I masquerade as (null for no masquerading) (see also $=M)
DMpara.it

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

Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Mariani Alberto
Frequent Advisor

Re: Problem between sendmail and Exchange 2000

DS was already set, and i set DM... but nothing changed; so, back to my original question: how do i change whant sendmail puts after HELO (or, in other works, how do i force sendmail to be rfc821 and rfc18something compliant) ?

Best regards,
Alberto M.
Geoff Wild
Honored Contributor

Re: Problem between sendmail and Exchange 2000

I assume you restarted sendmail....

How about checking /etc/hosts

your.ip yourhost yourhost.para.it


Also /etc/resolv.conf

domain para.it
nameserver yourdsserver1ip
nameserver yourdsserver2ip

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Mariani Alberto
Frequent Advisor

Re: Problem between sendmail and Exchange 2000

Ok, i solved the problem:
It was the Dj macro set incorrectly:
Dj$w. instead of Dj$w.$m
Changed it to the correct value, restarted sendmail and now it works!

Thank you all for your time.

Best regards,
Alberto M.