LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Server-wide outgoing mail filter (https://www.linuxquestions.org/questions/linux-networking-3/server-wide-outgoing-mail-filter-377291/)

mccomber 10-26-2005 11:31 PM

Server-wide outgoing mail filter
 
**caveat** Okay, before the argument of whether this is good or bad morally, I am only interested on doing this to my personal server.

I'm running SuSE 9.1 with Qmail. I want to filter all outgoing email, only allowing those emails that contain a specific header through to the "outside" world, and sending the rest to the bit bucket. Can I send mail to procmail for filtering some how? I'm familiar with Postfix but I don't think that'll help me much here, this is a rented "Plesk" server, so I'm pretty much stuck with whats installed.

Regards,
Doug

peter_robb 11-02-2005 08:04 PM

You can do it with amavisd-new..

Put it before the qmail server, listening on 25, filter the headers then pass the ok ones to qmail.
Procmail is better suited to mangling before a local file system gets the message.


All times are GMT -5. The time now is 04:47 PM.