Sean Symes via Users <users@lists.policyd.org> wrote:

> Hi I've set up some policies and found that it only seems to be seeing email 
> that are sent to the postifx from externally and emails sent via saslauthd 
> users.  I don't see emails that are sent via local on box mail daemons or 
> through php mail() functions.   I saw somewhere that there was mention of -o 
> options in master.cf causing internally sent mail to by pass policyd but I 
> can't find how to rectify this.

It's a known issue - it doesn't get applied to mail that doesn't come in via a 
network connection. That's because it's something that's handled by the smtpd 
daemon.
So many local sending methods simply don't get to go anywhere near the policy 
daemon.

The "solution" is to ensure that all mail is injected by a network connection 
to Postfix (so it uses the smtpd daemon) - though that may be easier said than 
done with some software.

An alternative would (I think) be to run two Postfix instances. Disable the 
local methods in the main instance, and set the second instance to run the 
local methods, but relay via the main instance. The downside is that 
restrictions such as rate limiting would apply to a Postfix instance rather 
than the sending process - meaning that instead of blocking the messages, 
they'd get queued up and sent as the rate limiting allows.




_______________________________________________
Users mailing list
Users@lists.policyd.org
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to