Operating System - HP-UX
1822276 Members
3847 Online
109642 Solutions
New Discussion юеВ

Re: Relay Mail to Exchange Client

 
Brian butler
Frequent Advisor

Relay Mail to Exchange Client

I have three HPUX 11.11 boxes running service gaurd, with the domain name of domain1.com i have a whole company of microsoft machines with the domain name of domain2.com, with a public domain of domain2.corp.com. The mail server can be resolved to mail.domain2.com, i have no problems relaying mail through SMTP with other apps. My problem is the boss set up the hp boxes with the incorrect domain name when setting them up, we are currently only using host file lookup, i have made some changes to the sendmail.cf to the DS, and the FQDN. and im still unable to send mail through the exchange server.
I am able to ping the mail server from the HP box with both domain names
mailserv.domain1.com
mailserv.domain2.com
i have added both entrys to the hosts file just to see if it would make a diffrence.
Reboot and give me twenty....
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Relay Mail to Exchange Client

There are two paths based on how one interprets your question.

If you want mail accessible to Exchange 2000 clients, you can install qpopper on the HP-UX systems and that will let you do popmail access right off the HP box. Based on your information, I don't think thats what you want.

You can make all the changes you want to your DS settings in sendmail.cf and it won't help if you don't enable relay on the Exchange server.

DS
[IP of exchange server]

save the sendmail.cf
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

If the exchange server isn't going to allow mail relay from your HP server the mail will go nowhere.

How do you check?

You run sendmail interactively.

/usr/sbin/sendmail -v -d8.99 -d38.99 stevenprotter@juf.org

plug in the email address on the exchange server you want to test.

I will attach the outpout. All you need to dois type a message and then a single dot(.) and enter.

You will get diagnostics and the Exchange server will either accept the mail or reply with a nasty message about relay.

The attached message is a successful send. Take a look at the output and you will be able to tell whats going on.

Steve
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
Brian butler
Frequent Advisor

Re: Relay Mail to Exchange Client

no luck, its not resolving the domain name, maybe im not putting the entry correctly in the hosts file.
any suggestions.

seq_map_parse(aliases.files, )
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(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)
getcanonname(hoan.com), trying dns
dns_getcanonname(hoan.com, trymx=1)
dns_getcanonname: trying hoan.com. (ANY)
NO: errno=239, h_errno=2
getcanonname(hoan.com), failed, stat=75
brianb@hoan.com... hoan.com: Name server timeout
brianb@hoan.com... Transient parse error -- message queued for future delivery


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)
cronus:/>
Reboot and give me twenty....
Kevin Wright
Honored Contributor

Re: Relay Mail to Exchange Client

nslookup hoan.com

make sure it is your DNS maps and /etc/resolv.conf points to your DNS nameserver..

Or maybe your not even using DNS?