Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


share|improve this question

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

share|improve this answer
+!. 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

Your Answer


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.