Take a look at http://www.postfix.org/header_checks.5.html
and in particualar, the "action" associated with the FILTER option.
You could check the header for a set of recipients and if found,
only then call policyd. I've not tried this myself, but it certainly seems possible to do it this way. More on content filters is at
http://www.postfix.org/FILTER_README.html and its internal Web links.

See also http://www.postfix.org/SMTPD_POLICY_README.html for examples of how to specify when a policy service is called. That may be another possibility.

A content filter may be another option, but it's not very efficient for high-traffic sites, supposedly.

"The Postfix Book" is almost a must-have to be able to use some of themore advanced postfix options -- if you don't have it, I strongly advise you get a copy!

--Tobias

On Thu, 22 Nov 2007, Jordi Espasa Clofent wrote:

The only way I could see to make this work is to either have postfix
skip policyd altogether with a filter on the unaffected user accounts
ahead of time, or if users have fixed IP addresses, to do it by those
addresses.  That, of course, is useless if the user use DHCP, travel,
etc. Postfix should allow you to filter on a list of accounts.
It's got a very flexible way to process various steps according to
various rule sets.

OK Tobias, but I don't know howto make "a filter on the unaffected user
accounts ahead of time".

¿?

Maybe the fact that I'm using a virtual users (in MySQL dddbb back-end)
means a facility.

--
Thanks
Jordi Espasa Clofent
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users

Reply via email to