Re: Apply policy service for inbound mail only.

2012-09-22 Thread mouss
Le 20/09/2012 05:05, Brock Henry a écrit : > I still can't quite get my head around it. I am fairly new to Postfix. > > If a user connects via SASL, they get permitted too early, and miss out on > the check_policy_service. > > smtpd_recipient_restrictions = > ... > permit_sasl_authenticat

Re: Apply policy service for inbound mail only.

2012-09-19 Thread Noel Jones
On 9/19/2012 10:05 PM, Brock Henry wrote: > I can't work out the combination of rules that will give me what I want. > > What I want. > 1) non sasl, incoming mail permitted, and seen by checkfull. > 2) non sasl, outgoing mail (from inside) permitted, not seen by > checkfull. > 3) non sasl, outgoin

Re: Apply policy service for inbound mail only.

2012-09-19 Thread Brock Henry
I still can't quite get my head around it. I am fairly new to Postfix. If a user connects via SASL, they get permitted too early, and miss out on the check_policy_service. smtpd_recipient_restrictions = ... permit_sasl_authenticated, reject_unauth_destination, check_policy

Re: Apply policy service for inbound mail only.

2012-09-19 Thread Wietse Venema
Wietse Venema: > On Wed, Sep 19, 2012 at 02:24:13PM +1000, Brock Henry wrote: > > I have created a policy service, which checks quota, returning > > 'reject' if the mailbox is full, and 'dunno' otherwise. > > > > smtpd_(data|recipient)_restrictions = > >check_policy_service unix:private/check

Re: Apply policy service for inbound mail only.

2012-09-19 Thread /dev/rob0
On Wed, Sep 19, 2012 at 09:46:58AM -0400, Wietse Venema wrote: > On Wed, Sep 19, 2012 at 02:24:13PM +1000, Brock Henry wrote: > > I have created a policy service, which checks quota, returning > > 'reject' if the mailbox is full, and 'dunno' otherwise. > > > > smtpd_(data|recipient)_restrictions

Re: Apply policy service for inbound mail only.

2012-09-19 Thread Wietse Venema
On Wed, Sep 19, 2012 at 02:24:13PM +1000, Brock Henry wrote: > I have created a policy service, which checks quota, returning > 'reject' if the mailbox is full, and 'dunno' otherwise. > > smtpd_(data|recipient)_restrictions = >check_policy_service unix:private/checkfull > > And it's all work

Re: Apply policy service for inbound mail only.

2012-09-19 Thread /dev/rob0
On Wed, Sep 19, 2012 at 02:24:13PM +1000, Brock Henry wrote: > I have created a policy service, which checks quota, returning > 'reject' if the mailbox is full, and 'dunno' otherwise. > > smtpd_(data|recipient)_restrictions = >check_policy_service unix:private/checkfull > > And it's all work