HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Filter outgoing e-mails (http://www.howtoforge.com/forums/showthread.php?t=59636)

ivowolfen 19th November 2012 15:02

Filter outgoing e-mails
 
Is it possible to filter outgoing e-mails of user and redirect them to specified addresses depends on recipient address. More specific, there are 4-5 "white list" email addresses, where the user can send and the others must be redirected to 1 "catch all" address. I try to do something with content filter, but only partially - redirected every mail from this to user from "whitelist":
Header checks:
/(From:.*user@mydomain.com)(.*To:user1@whitelist.co m)/m REDIRECT user1@whitelist.com
/(From:.*user@mydomain.com)(.*To:user2@whitelist.co m)/m REDIRECT user2@whitelist.com
...
But how to catch others, not in the whitelist, and redirect them to user@catchall.com :confused: .
If i add /^From: .*user@mydomain.com/ REDIRECT user@catchall.com,AFTER the other rules, nothing happens, if i add it BEFORE, every mail goes to catchall.
Sorry for my bad english and thank you in advance!

ivowolfen 27th November 2012 16:44

Any help, please.
 
Any help, please :(


All times are GMT +2. The time now is 13:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.