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

we have an internal test-server that uses real, live mail addresses to send out status mails sometimes. We don't want these mails to end up with our users but for different reasons we can't use a catch_all solution and we only have the one available mail server. What we need is a way to forward incoming mail from any domain not specified in relay_domains to a specified mailbox.

share|improve this question
what MTA are we talking about? – Greeblesnort Oct 22 '09 at 13:34

If the incoming mails to a specific user then you can add those guys to the relayed domains and set up a forwarding to each of them.

share|improve this answer
Thing is that the number of possible email domains is too large and all are unknown to us. So instead, we need to forward all mails, except for all mails to specific domains. – Frode Svendsen Oct 22 '09 at 10:52

probably you can use recipient_canonical_maps.

Have a look here:

If there is no simply way adding relay domains negated into that map, you can build a large regular expression which contains all your relay domains negated to put into a special mailbox.

share|improve this answer

Your Answer


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