Operating System - HP-UX
1834532 Members
2894 Online
110069 Solutions
New Discussion

Re: cant receive email from exchange

 
SOLVED
Go to solution
Dave Chamberlin
Trusted Contributor

cant receive email from exchange

Greetings. I have a couple of servers running hpux 11.0 and 11.11, using sendmail. The sendmail has only been used for outgoing mail and works fine. All mail is sent to an MS exchange mail server (using DS smart relay in sendmail.cf). I can send mail from one host to the other (using Ruleset 0 to deliver directly to hosts in the local domain). I am UNABLE to send mail via our MS exchange server to users on either of the unix hosts. The exchange server error says it is undeliverable, that the email address myuser@myhost.bla.com does not exist. I realize this may be an exchange issue and not an hp one, but can anyone shed any light here? Thanks!
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: cant receive email from exchange

Shalom,

You probably don't want sendmail accepting mail on unix hosts. It creates a lot of administrative overhead and security issues.

But if you do:

vi /etc/rc.config.d/mailservs
Change the first variable to 1.

See this script for compiling sendmail configuration changes on hpux
http://www.hpux.ws/?p=5

To accept mail from other servers the sendmail access file(see script for location) must be modified to permit mail acceptance form the exchange server, which by default is rejected.

If 192.168.0.10 is the ip of the exchange server then access file needs to have

192.168.0.10 OK

Then use my script to compile the sendmail macros and restart the sendmail daemon.

You MX resolution on your DNS for myhost.bla.com and an A record pointing to the host.

Then:
myuser@myhost.bla.com

Will go through.

Diagnostics:
sendmail -v -d8.99 -d38.99 myuser@myhost.bla.com


.


Note that there is a lot of other details that could come up and thats very well documented at 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
Dave Chamberlin
Trusted Contributor

Re: cant receive email from exchange

Hi Steven,
You're right - I dont want to use sendmail for incoming mail. I have installed the UW-IMAP program and have been trying to get IT to accept incoming emails, without success, so I was trying to determine if the problem was on the unix or exchange side. Do you know if the IMAP program has a setting that needs to be set before it can accept incoming emails?
thanks
Andrew Merritt_2
Honored Contributor

Re: cant receive email from exchange

Hi Dave,
As far as I can remember, IMAP is a server for reading messages that have already been delivered (e.g. by sendmail); it doesn't receive messages from another system. Certainly the IMAP4 protocol only deals with retrieving messages; I suppose a particular implementation of an IMAP server may have other functionality, but if so it should have documentation on how to set it up.

Andrew
Dave Chamberlin
Trusted Contributor

Re: cant receive email from exchange

I have configured sendmail to accept mail, and it will - if it comes directly from another unix host and is not relayed via the exchange server. If I try to go through the exchange server, I still get "unable to relay for myuser@myhost" message from the exchange server.
TTr
Honored Contributor
Solution

Re: cant receive email from exchange

You have to talk to your exchange administrator. All this involves the exchange email system. The exchange system has an SMTP component (built in or separate sendmail box) and it is in there where they have to configure routing back to your UNIX servers. By default any email that is send by exchange someone@somecompany.com goes out from your network. Your unix servers will have to be added to this setup as well and exchange needs to know that an email of the form someone@unixserver.yourcompany.com has to be routed back to the UNIX servers. The exchange system probably tries to deliver such an email either to an exchange mailbox or to an external company.
Dave Chamberlin
Trusted Contributor

Re: cant receive email from exchange

The exchange admin fixed the problem. He had to make a CONNECTOR for the unix server, and assign an address domain. Another admin had created a CONNECTOR, but had not assigned an address domain to it. Works fine now - thanks.