Link to home
Start Free TrialLog in
Avatar of ifred
ifredFlag for Canada

asked on

Sendmail in dmz to exchange inside

Gents,

I have a xampp server serving a website on my dmz interface of my cisco asa.
on the inside interface i have exchange running.
The sendmail has default configuration for now. I have statically mapped exchange on the DMZ and created all the proper access lists. In fact on the ubuntu server running the sendmail i can telnet test using the dmz ip address of exchange.

Basically this is for a webpage that sends emails, the emails are for users in my exchange server so i only need sendmail to deliver emails to my exchange.

What is needed to make sendmail send emails to my exchange ?



ASKER CERTIFIED SOLUTION
Avatar of wyliecoyoteuk
wyliecoyoteuk
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ifred

ASKER

See ... when i check my mail.log on the machine i see it giving me a connection timeout to my mail.domain.com
I believe my issue is related to dns. Though i have never told sendmail to relay mail, it knows somehow that needs to send email to mail.mydomain.xxx (my exchage mx record). The problem might be happening because if it resolves the dns of the mail.mydomain.xxx it will resolve to an ip it will not have access to, as it is on the inside network and this box is on the dmz. For that purpose i created a static map of the exchange to the dmz and i added this ip on the hosts file.
Since the box is set to resolve first by hosts then by dns i thought it would use the ip on the hosts file. If it did though i would be connecting for sure as i have tested connecting to exchange via telnet from this box.
But unfort. it is not connecting and it makes me think it really does not care about my entry on hosts and is still using the dns entry.

Sooo .... how the heck to i make (at least) sendmail send email direct to the internet ???
Avatar of ifred

ASKER

And just to add, i had a similar box inside my network (same as exchange) and it was connecting and using exchange no problems without me adding anything to exchange.
That is because Exchange 2003 by default allows relays from the local subnet.
Avatar of ifred

ASKER

Humn interesting. O Will try and let you know, thanks amigo!
We tend to get this all the time when setting up MFDs to scan to email.
This might help

http://www.petri.co.il/preventing_exchange_2000_2003_from_relaying.htm
Avatar of ifred

ASKER

did not seem to help adding the ip of the sendmail box to the allowed list of smtp relay of exchange. Guess i should figure a way to have sendmail send emails directly to the internet instead of trying my domain, just not sure how as i see it probably getting the mx record from my dns.

:(
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ifred

ASKER

I was able to through trial and error figure the solution.
Avatar of ifred

ASKER

As i said i was able to figure this myself but wylies comments helped on the relay part.