Relaying a local domain

itsensellc

Verified User
Joined
Jul 15, 2005
Messages
53
Hello,

I have a bit of a weird situation born from a DNS migration that I'm trying to put a patch in for. A client hosts a website with me, but not their DNS or mail. Some DNS caching is incorrectly routing mail for their domain to my server. While they try to get that corrected, I'd like to try and catch that mail (based on their domain) and relay it back to their SMTP servers. However I'm not sure where to place this because I know I can't modify exim.conf directly and I don't seem to be able to get it high enough in the conf file for it to be processed before other rules fail it.

Can someone point me in the right direction? Thanks much.
 
Could this be of any help to you?

It's a bit old, but I think still acurate.
 
Could this be of any help to you?

It's a bit old, but I think still acurate.

Ya so this is similar to what I did. My problem is I don't think it's getting processed before the local delivery is attempted and fails. So I need to get it higher up in exim.conf, and know I can't edit exim.conf directly. So I'm trying to figure out where I can put it (one of the includes for example) so that's processed before the local delivery is attempted. Make sense? I think when you're down to edit 48 it's already too late.
 
You can edit the exim.conf directly, but it will get overwritten on the next Exim update, unless you set exim_conf to no in options.conf. This would be good for a temporary solution.
However, I'm not really into these relay things.

Let's call in a mail expert. @mxroute if you have time, any clue on how to fix this?
 
You can edit the exim.conf directly, but it will get overwritten on the next Exim update, unless you set exim_conf to no in options.conf. This would be good for a temporary solution.
However, I'm not really into these relay things.

Let's call in a mail expert. @mxroute if you have time, any clue on how to fix this?
That's not a bad option! It is a temporary fix anyhow.
 
Figured this one out. To avoid having to set eximconf to no, you can add the router to /etc/exim.routers.pre.conf. Pretty simple stuff!
 
Back
Top