Operating System - HP-UX
1834590 Members
3546 Online
110069 Solutions
New Discussion

Re: Sendmail not function with an remote user of exchange server

 
alymarcor
Advisor

Sendmail not function with an remote user of exchange server

I have a fresh installation of HP-UX 11.23. And I want to send an email to a user in a exchange server. Locally sendmail function properly, I send an email for root and function without problems. I don't use DNS only /etc/hosts, when I send an email to the user I have the following problem in /var/adm/syslog/mail.log

Sep 20 16:00:03 itanium sendmail[4396]: i8KL03e04396: to=user@domain.com, delay=00:00:00, mailer=relay, pri=0,
relay=domain.com, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
Sep 20 16:00:03 itanium sendmail[4396]: i8KL03e04396: from=root, size=6, class=0, nrcpts=0, msgid=<
200409202100.i8KL03e04396@itaniumname.com>, relay=root@localhost
Sep 20 16:00:03 itanium sendmail[4396]: i8KL03e04396: to=user@domain.com, delay=00:00:00, mailer=relay, pri=6,
dsn=4.4.3, stat=queued

I have this in the /etc/hosts

128.1.4.155 itaniumname.com itanium
127.0.0.1 localhost loopback
128.1.40.3 domain.com

I write this in /etc/mail/sendmail.cf

# "Smart" relay host (may be null)
DSdomain.com

Help me please!
4 REPLIES 4
Sundar_7
Honored Contributor

Re: Sendmail not function with an remote user of exchange server

Try this

# vi /etc/hosts
128.1.4.155 itaniumname.com itanium
127.0.0.1 localhost loopback
128.1.40.3 exchsvr.domain.com
#

Try pinging exchsvr.domain.com

# ping exchsvr.domain.com

You should be able to ping the servername

# vi /etc/mail/sendmail.cf

DSexchsvr.domain.com
#

# sendmail -v user@domain.com
..
^D
#




Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: Sendmail not function with an remote user of exchange server

You might try putting the exhange server in /etc/hosts

ip_addy exchange.domain.com

its not a sure bet that the domain server is the exchange server.

Better of though with this in sendmail.cf

DS
[128.1.40.3]

the exchange server must be explicitly set up to allow relays from 128.1.4.155

then:

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Other tools:

mailq
# any mail backed up in the itanium boxes mail queue

sendmail -v -q
# attempts to process any mail queue interactively with diagnosis.

sendmail -v -d8.99 -d38.99 user@domain.com
type some text

.


These diagnostics will give you a full picture of the situation.

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
alymarcor
Advisor

Re: Sendmail not function with an remote user of exchange server

I try the suggest of Sundar and obtain the follow error:

# sendmail -v user@domain.com
domain.com: Name server timeout
user@domain.com... Transient parse error -- message queued for future delivery
user@domain.comt... queued
Steven E. Protter
Exalted Contributor

Re: Sendmail not function with an remote user of exchange server

Your last post proves the problem is name resolution.

You can change the DS directive to the ip address of the exchange server and restart sendmail(see my previous post)

or you can change your networking so that you resolve the exchange server, also shown in my post.

Additionally, make sure /etc/nsswitch.conf points to files for host name resolution so that your /etc/hosts file actually works.

An alternative that sendmail works well with is go to dns name resolution in /etc/nsswitch.conf and set up /etc/resolv.con f to contain a valid dns server in your organization.

resolv.conf looks like this.

ip_address_of_dns_server1
ip_address_of_dns_server2
ip_address_of_dns_server3
search domain.com

example

192.168.0.20
192.168.0.21
192.168.0.29
search domain.com

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