Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 new to qmail it's setup and working like it should. I need to set it to do something a bit different.

I need it to take all mail that would be incoming to it and relay all of that to one address as opposed to whatever address they could have possibly set it to. The idea is we have setup a test enviroment and we want no e-mails from a test server to actually go out to real people so this relay server will catch all of that outgoing mail and throw it into a test e-mail account inbox to check for errors and so forth.

I'm honestly not sure if this is even possible so if it's not let me know now so I can come up with a different method to manage all these test e-mails.


share|improve this question

You should be able to do that with /var/qmail/control/smtproutes. The following would route all outbound emails for to

In order to route all emails to, use the following:
share|improve this answer
I think my question might be a bit confusing. We are trying to get all the e-mail messages that would go to this test server to be fowarded to one e-mail address. Basically some sort of rule that ignores the TO line in the e-mail and sends it all to a specific e-mail address. – MoSiAc Jun 25 '12 at 13:00

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.