Exim allow emails to domain same as mail server.

Hi,

I have a debian etch server, its a web server and im using exim for sending emails. The problem is the domain name e.g. domain.com is on the same IP as our Exchange server.

I have an MX record that points mail.domain.com to the same IP

Sending mails to any external address is working great but sending to domain.com I get

2010-03-24 16:33:19 1NuTWB-0006RA-Nn mail.domain.com [80.80.80.80] Connection refused
2010-03-24 16:33:19 1NuTWB-0006RA-Nn == joe@domain.com R=dnslookup_relay_to_domains T=remote_smtp defer (111): Connection refused

Can I allow this relay with Exim?

Thanks, Joe
LVL 1
joe90kaneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

joe90kaneAuthor Commented:
I have setup the A & MX record to point to the internal mail server but I am getting error

all relevant MX records point to non-existent hosts?
0
nociSoftware EngineerCommented:
Toy need to edit the exim.conf

Find the line with:
domainlist local_domains                - for local deliveries
domainlist relay_to_domains          - for sending through

and add the intended domain. The lists are : (colon) separated.

Alternative it can be a lookup from a database:
domainlist relay_to_domains = lsearch;/etc/exim/mydomains

(or use LDAP , mysql etc.)
0
joe90kaneAuthor Commented:
Thanks I have added the domain to those options but getting

Unrouteable address for the domain?
0
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

nociSoftware EngineerCommented:
If you add it to local_domains the part after the @ is broken off and it is tried to use the native local delivery options (to a users .maildir or mail file)
but a user of the right name must exist in a lookup. (getuserbyname()) or if a special delivery has been configured then according to its rules.

if you added it to relay_to_domains then it needs to be able to pass it on to the next mailer.

If you added it to both it's a configuration error (how can an address be both local & remote at the same time)...
0
joe90kaneAuthor Commented:
Ok I think I understand,

I added it to local_domains but How can I get the email sent through our exchange server on the same network?
0
nociSoftware EngineerCommented:
Ok, that a different issue.
I do known exim/qmail/courier but not exactly exchange....

That needs to be configured in exchange, as well as an allowed domain (allow relaying) and it needs to be routed to your mailer. (An MX on your internal DNS might be sufficient but I'm not sure.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Protocols

From novice to tech pro — start learning today.