Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail - Exchange 2000 relay config.

SOLVED
Go to solution
nsjayasundar
Advisor

Sendmail - Exchange 2000 relay config.

I have Hp UX box with 11.11 version. We have one exchange server also which is configured as our mail server. Now I want to send mail from Hp boxes. I am getting the following error while sending mail

dagdb002 /etc/mail #>sendmail -v -d8.99 -d38.99 jsundar@dagoc2006.org
;; res_querydomain(dagdb002, dohaasiangames.org.qa, 1, 1)
;; res_query(dagdb002.dohaasiangames.org.qa, 1, 1)
;; Querying server (# 1) address = 172.16.1.108
seq_map_parse(aliases.files, )
;; res_query(11.1.16.172.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 172.16.1.108
;; rcode = 3, ancount=0
;; res_query(2.10.10.10.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 172.16.1.108
;; rcode = 3, ancount=0
;; res_query(151.1.16.172.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 172.16.1.108
;; rcode = 3, ancount=0
;; res_query(101.1.16.172.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 172.16.1.108
;; 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(dagoc2006.org), trying dns
dns_getcanonname(dagoc2006.org, trymx=1)
dns_getcanonname: trying dagoc2006.org. (ANY)
;; res_querydomain(dagoc2006.org, , 1, 255)
;; res_query(dagoc2006.org., 1, 255)
;; Querying server (# 1) address = 172.16.1.108
YES
dns_getcanonname: dagoc2006.org
getcanonname(dagoc2006.org), found

This is test mesg...



getmxrr(dohaasiangames.org.qa, droplocalhost=1)
;; res_querydomain(dohaasiangames.org.qa, , 1, 15)
;; res_query(dohaasiangames.org.qa, 1, 15)
;; Querying server (# 1) address = 172.16.1.108
;; rcode = 0, ancount=0
;; res_querydomain(dohaasiangames.org.qa, dohaasiangames.org.qa, 1, 15)
;; res_query(dohaasiangames.org.qa.dohaasiangames.org.qa, 1, 15)
;; Querying server (# 1) address = 172.16.1.108
;; rcode = 3, ancount=0
getmxrr: res_search(dohaasiangames.org.qa) failed (errno=0, h_errno=4)
getcanonname(dohaasiangames.org.qa), trying dns
dns_getcanonname(dohaasiangames.org.qa, trymx=0)
dns_getcanonname: trying dohaasiangames.org.qa. (ANY)
;; res_querydomain(dohaasiangames.org.qa, , 1, 255)
;; res_query(dohaasiangames.org.qa., 1, 255)
;; Querying server (# 1) address = 172.16.1.108
YES
dns_getcanonname: dohaasiangames.org.qa
getcanonname(dohaasiangames.org.qa), found
jsundar@dagoc2006.org... Connecting to dohaasiangames.org.qa. via relay...
;; res_querydomain(dohaasiangames.org.qa., , 1, 1)
;; res_query(dohaasiangames.org.qa, 1, 1)
;; Querying server (# 1) address = 172.16.1.108
jsundar@dagoc2006.org... Deferred: Connection refused by dohaasiangames.org.qa.
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)

helpme to get solved..

Sundar
8 REPLIES
Ranjith_5
Honored Contributor

Re: Sendmail - Exchange 2000 relay config.

Hi,

See there are lot of threads already there in itrc on your topic.Best thing what you can do before posting a query is to search for that topic in itrc.

See

http://europe-support3.external.hp.com/emse/bin/doc.pl/emse/bin/doc.pl/distrib_redir=2+1104913477|*?rn=25&source=7000&searchcategory=ALL&from=forums&hpl=1&todo=search&origin=0&wpa=forums1.itrc.hp.com%3A80&searchcriteria=allwords&submit.x=10&submit.y=5&esc=europe.support.itrc.hp.com&searchtext=Sendmail+-+Exchange+2000+relay+config&chkServStor=on&presort=rank

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

How to Configure sendmail on hpux to send mail to ms-exchange email addresses
=================================================================================

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


regards,
Syam
Jose Mosquera
Honored Contributor
Solution

Re: Sendmail - Exchange 2000 relay config.

Hi,

Configure the content of the DS macro into /etc/mail/sendmail.cf to:
DSyour_exchange_server_alias

Where your_exchange_server_alias must be a resoluble alias that aim at your Exchange server. Pls note that not spaces have leaved in DS macro's definition.

Is "dagoc2006.org" your internal domain?
If not, pls try this trick, in your HP-UX /etc/hosts file add:
your_exchange_server_ip dagoc2006.org

Where "your_exchange_server_ip" must be the IP address that correspond, of course, with "DSyour_exchange_server_alias"

Then try:
#echo "This is a test"|sendmail -v jsundar@dagoc2006.org

If your HP-UX box cannot automatically determine your internal domain pls force it by Dj macro definition into /etc/sendmail.cf file:
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
Dj your_domain.com

Rgds.
nsjayasundar
Advisor

Re: Sendmail - Exchange 2000 relay config.

After chenging the /etc/hosts and sendmail.cf file i am getting the following mesg.

getcanonname(email.dohaasiangames.org.qa), found
test
getmxrr(dagoc2006.org, droplocalhost=1)
jsundar@dagoc2006.org... Connecting to dagoc2006.org via relay...
220 email.dohaasiangames.org.qa Microsoft ESMTP MAIL Service, Version: 6.0.3790.0 ready at Wed, 5 Jan 2005 15:00:19 +0300
>>> EHLO dagdb002.dohaasiangames.org.qa
250-email.dohaasiangames.org.qa Hello [172.16.1.101]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
>>> MAIL From: SIZE=5
250 2.1.0 root@dagdb002.dohaasiangames.org.qa....Sender OK
>>> RCPT To:
550 5.7.1 Unable to relay for jsundar@email.dohaasiangames.org.qa
jsundar@dagoc2006.org... User unknown
>>> RSET
250 2.0.0 Resetting
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 dagoc2006.org
>>> QUIT
221 2.0.0 email.dohaasiangames.org.qa Service closing transmission channel
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)
---------------------------------

/etc/hosts file:-
72.16.1.100 dagdb001 dagdb001.dohaasiangames.org.qa DAGDB001
172.16.1.101 dagdb002 dagdb002.dohaasiangames.org.qa DAGDB002
10.10.10.2 dagdb002
127.0.0.1 localhost loopback
172.17.4.173 netbackup NETBACKUP
172.16.1.5 email.dohaasiangames.org.qa dagoc2006.org
172.16.1.108 dohaasiangames.org.qa
-----------------------------------------
/etc/mail/sendmail.cf in DS ..

DSdagoc2006.org

no other changes in sendmail.cf.

Sundar




Sundar
Geoff Wild
Honored Contributor

Re: Sendmail - Exchange 2000 relay config.

Try Masquerade as the same domain as your Exchange server:

In sendmail.cf

DMyourdomain.com

stop/start sendmail

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

Re: Sendmail - Exchange 2000 relay config.

Amazing: A meaningful error message.

jsundar@dagoc2006.org... User unknown

Its exactly what it means.

You can change the domain name of the outbound mail in ond of the following ways:

1) Masquerade
2) Change hostname of HP box from server to server.yourdomain.org
3) Use the Dj directive in sendmail.cf Djyourdomain.org The Dj directive is by default commented out in sendmail.cf

A start/stop on sendmail will be required for options 1 and 3

For more on sendmail see http://www.sendmail.org

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
Jose Mosquera
Honored Contributor

Re: Sendmail - Exchange 2000 relay config.

Hi again,

As I commented you, your server seems not to be recognizing your domain automatically, maybe your HP-UX server's domain not corresponding with your internal mail domain, then pls configures the macro Dj in the file /etc/mail/sendmail.cf:
Djyour_internal_email_domail

Rgds.
nsjayasundar
Advisor

Re: Sendmail - Exchange 2000 relay config.

i changed the following thigs..
In /etc/hosts - 172.16.1.101 dagdb002 dagdb002.dagoc2006.org


In sendmail.cf

Djemail.dohaasiangames.org.qa
DMdagdb002.dagoc2006.org
DSdagoc2006.org

After that also I am getting following mesg...

getcanonname(email.dohaasiangames.org.qa), found
seq_map_lookup(aliases, jsundar)
seq_map_lookup(aliases.files, jsundar)
impl_map_lookup(Alias0, jsundar)
db_map_lookup(Alias0, jsundar)
jsundar@dagoc2006.org... User unknown


Sundar
nsjayasundar
Advisor

Re: Sendmail - Exchange 2000 relay config.

Now i could able to send the mail to dagoc2006.org domain..

where i am not able to send mil to other doamins..

tested for hotmail.com.. Getting the following error mesg..Where my DNS resolves hotmail.com, and says hotmail.com is found.


550 5.7.1 Unable to relay for nsjayasundar@hotmail.com
nsjayasundar@hotmail.com... User unknown