Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using Exim4 version 4.76 and can't really find what I'm looking for - except if I don't understand how exim4 works exactly.

I have configured exim4 as such that when we send an email from our web applications (which is on the same server as exim4), that it relays the email to a smarthost elsewhere - actually an email server that is owned and managed by one of our clients. Now, the problem comes in that when we send system emails (e.g. cron jobs that fail etc.) that it goes through our clients' mail server too, and we (and our client) do not want that. We want the system emails to be sent to our mail server (smarthost) and not our clients'. In other words, we would like to have emails sent to support@whatever from the server (local), be sent to our smarthost and not our clients'.

I hope this make sense.

Thanks!

share|improve this question
add comment

1 Answer

It looks like you need manual routing: "The manualroute router" Look at section 3: routing rules in route_data...

share|improve this answer
1  
+!. On Debian/Ubuntu systems a manualroute is already setup in the default config. Just create mail routes in /etc/exim4/hubbed_hosts. –  Zoredache Mar 20 '12 at 7:41
    
Hi Vincent, sorry for only replying now but thanks a mil for the answer! I haven't had time to go through section 3 yet but will do so today. Thanks again! –  user114637 Mar 23 '12 at 5:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.