found some references to the pickup process of postfix and it has ability to content filter but haven't gotten config working as yet. I've seen some of the setups with multiple smtpd demons but hoping there is something simpler to just pass email from pickup through cbpolicyd. Any mail from webmail, web programs or command line are not included in quota's seems like big miss...
Postfix smptd handles outside originated mail Feb 6 14:37:35 host cbpolicyd[24201]: module=Quotas, mode=create, host=104.168.65.165, helo=straw.clatalts.com, [email protected], [email protected], reason=quota_create, policy=7, quota=6, limit=7, track=Sender:[email protected], counter=MessageCount, quota=1.00/50 (2.0%) Postfix Pickup handles all local originating mail by passes policyd Feb 6 14:42:39 host postfix/pickup[31708]: 906AD229D6: uid=500 from=<user> Feb 6 14:42:39 host postfix/qmgr[31709]: 906AD229D6: from=<[email protected]>, size=305, nrcpt=1 (queue active) Hope someone has found solution for this that the can outline steps... On Friday, February 6, 2015 1:52 PM, Simon Hobson <[email protected]> wrote: Sean Symes via Users <[email protected]> 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 [email protected] http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
_______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
