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 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.

Thanks

share|improve this question
add comment

1 Answer

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

domain.com:relay.mail.com

In order to route all emails to relay.mail.com, use the following:

:relay.mail.com
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
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.