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

Can I route all local Email (local domain to local domain) to another host ex: a spam filtering system on EXIM?

share|improve this question

You can't easily do this, and normally wouldn't need to do that. If you find a local user is spamming you it is usually easy to deal with. Spam filtering is usually done for mail coming from servers you don't have control of.

You could try with a base configuration using the remote server as a smart host for all deliveries. It would need to know to route the message back after scanning. You would then need to configure your smarthost routing to skip messages arriving from the system doing spam filtering.

share|improve this answer

It's difficult to extrapolate exactly what you're trying to achieve by your description. If your goal is to distribute the load of spam scanning to a seperate machine, then you can configure Exim to speak to SpamAssassin on a different machine. Spamassassin listens on a TCP port, normally port 783. You can, on the other server, configure Spamassassin to listen to the IP of eth0 (or whatever is your internal network interface), and then just configure Exim as per Section 2 and Section 3 of this chapter of the Exim docs:

share|improve this answer

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.