General discussion

Locked

Sendmail rejecting MSExchange

By mportune ·
Hello all, thanks for taking the time out to help with this.

I'm setting up an exchange server (internal) to send everything through sendmail (external) on my current LAN. Everything is up and running on exchange, and when the Internet Mail Service is set to use DNS, I can send mail out from exchange with no problem. However, when I set the IMS to the ip address of the sendmail box, all outgoing messages are returned "550... Relaying Denied". The thing is, I already added the ip of the exchange server to a RELAY line in sendmail's access db (and ran makefile as well). No matter where I look I can't seem to find if there's another layer that would stop RELAYing on sendmail. I thought the ACCESS file took care of everything. I have no more hair to pull out.

If it matters, sending mail directly from pine on the sendmail box works fine. So it seems to just be a relay access problem.

Thanks so much for any help. For reference, here's an exact copy of the returned mail:

-----

Your message did not reach some or all of the intended recipients.

To: 'mportune@hotmail.com'
Subject: test
Sent: 10/2/00 10:13:46 PM

The following recipient(s) could not be reached:

'mportune@hotmail.com' on 10/2/00 10:13 PM The recipient name is not recognized
The MTS-ID of the original message is: c=US;a= ;p=Merging Media, I;l=EXCHANGE-001003021346Z-17
MSEXCH:IMS:Merging Media, Inc.:MMI:EXCHANGE 3550 (000B099C) 550 <mportune@hotmail.com>... Relaying denied

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Sendmail rejecting MSExchange

by tastin In reply to Sendmail rejecting MSExch ...

It may be worth your time to stop and start sendmail again. This will force it to re-read the access file. It should also convert the editable access file into the db version with your changes at that time. You might also benefit from looking in the logs sendmail is keeping. It will specify why it thinks this is still a "relay". I just finished setting up sendmail here to handle our internal network's mail, as well as dial up customers. Good luck, sendmail is powerful, but rough to config.

Collapse -

Sendmail rejecting MSExchange

by mportune In reply to Sendmail rejecting MSExch ...

Poster rated this answer

Collapse -

Sendmail rejecting MSExchange

by mportune In reply to Sendmail rejecting MSExch ...

Thanks for the reply - sure enough, I looked in the maillog and saw the problem... the exchange server was hitting sendmail with it's internal ip address (not the external address, which I specified in ACCESS) and was being rejected. I checked the firewall and found a rule saying any communication to the DMZ from internal machines should not masqerade the ip. When I disabled that rule, RELAYing started working fine. Go figure.

I've run into another problem though - how to get incomingmail to go directly back to the exchange server using a wildcard approach. (ie all incoming mail for a specified domain goes directly to the user mailbox on the exchange server - *without* having an equivalent user mailbox on the sendmail box with a .forward in everybody's home dir)

Domains aren't a problem - I've got dns working fine. The problem is, incoming mail just sits in my mailbox on the sendmail box and never gets pushed to the exchange server. I put the following in my mailertable file:

domain.com smtp:[x.x.x.x]

(where x is the external address of the exchange server, and I made sure the firewall isn't blocking any protocols yet while I test - and I can ping it successfully from the sendmail box)

I also put the domain.com in sendmail.cw, made all the db's and restarted sendmail.

Incoming mail arrives succesfully, but just sits on that box. Is there another file I'm missing?

Thanks so much,

Matt

Collapse -

Sendmail rejecting MSExchange

by tobi In reply to Sendmail rejecting MSExch ...

Just set the exchange server as a smart relay host on you sendmail server in /etc/sendmail.cf

--Tobias

Collapse -

Sendmail rejecting MSExchange

by mportune In reply to Sendmail rejecting MSExch ...

Poster rated this answer

Collapse -

Sendmail rejecting MSExchange

by mportune In reply to Sendmail rejecting MSExch ...

This question was closed by the author

Back to Linux Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums