Re: bypass policy server in recipient_restrictions when subject contains string

2019-01-05 Thread Viktor Dukhovni
> On Jan 5, 2019, at 8:08 AM, Stefan Bauer wrote: > > tls_whitelist_check unix- - n - - smtp >-o header_checks= >-o smtp_header_checks= >-o smtpd_recipient_restrictions=check_policy_service,unix:private/policy >-o sender_dependent_default_t

Re: bypass policy server in recipient_restrictions when subject contains string

2019-01-05 Thread Stefan Bauer
Thank you. That explains it! Am Sa., 5. Jan. 2019 um 15:03 Uhr schrieb Benny Pedersen : > Stefan Bauer skrev den 2019-01-05 14:08: > > > tls_whitelist_check unix- - n - - > > smtp > >-o header_checks= > >-o smtp_header_checks= > >-o > > smtpd_recipient

Re: bypass policy server in recipient_restrictions when subject contains string

2019-01-05 Thread Benny Pedersen
Stefan Bauer skrev den 2019-01-05 14:08: tls_whitelist_check unix- - n - - smtp -o header_checks= -o smtp_header_checks= -o smtpd_recipient_restrictions=check_policy_service,unix:private/policy -o sender_dependent_default_transport_maps= -o smtpd_r

Re: bypass policy server in recipient_restrictions when subject contains string

2019-01-05 Thread Stefan Bauer
Seems to have no effect for unknown reasons. policy service is not called. Tried: master.cf tls_whitelist_check unix- - n - - smtp -o header_checks= -o smtp_header_checks= -o smtpd_recipient_restrictions=check_policy_service,unix:private/policy -o

Re: bypass policy server in recipient_restrictions when subject contains string

2019-01-05 Thread Stefan Bauer
Understood. Would it be possible to have header_checks in main.cf that send mails with special subject with FILTER to smtp process that did not have policy service as option and all other mails (/.*/) also with FILTER to smtp process with policy service? this way i can bypass policy service with

Re: bypass policy server in recipient_restrictions when subject contains string

2019-01-04 Thread Bill Cole
On 4 Jan 2019, at 10:36, Stefan Bauer wrote: Would it be possible to have FILTER as action in policy server Yes, but FILTER behaves as documented in the access(5) man page. The first 5 words there describing what FILTER does are critical, but you should read it all... (in recipient_restri

Re: bypass policy server in recipient_restrictions when subject contains string

2019-01-04 Thread Stefan Bauer
Would it be possible to have FILTER as action in policy server (in recipient_restrictions) and send it to smtp process that uses header_checks do have mailroute based on subject? Am Fr., 4. Jan. 2019 um 16:08 Uhr schrieb Bill Cole < postfixlists-070...@billmail.scconsult.com>: > On 4 Jan 2019,

Re: bypass policy server in recipient_restrictions when subject contains string

2019-01-04 Thread Bill Cole
On 4 Jan 2019, at 9:36, Stefan Bauer wrote: is there a way to bypass policy server in smtp_recipient_restrictions, in case, subject contains special string? No. As documented, smtp_recipient_restrictions is evaluated for each RCPT command, all of which occur before the DATA command, which is

bypass policy server in recipient_restrictions when subject contains string

2019-01-04 Thread Stefan Bauer
Hi, is there a way to bypass policy server in smtp_recipient_restrictions, in case, subject contains special string? smtpd_recipient_restrictions = check_policy_service unix:private/policy header_checks: /^Subject: .*string.*/ FILTER no-policy-service: header_checks could reroute by subject bu