Am 17.02.2015 um 19:29 schrieb Viktor Dukhovni:
On Tue, Feb 17, 2015 at 07:14:51PM +0100, li...@rhsoft.net wrote:
Am 17.02.2015 um 19:05 schrieb Viktor Dukhovni:
On Tue, Feb 17, 2015 at 07:02:27PM +0100, li...@rhsoft.net wrote:
(*) The exceptions are REJECT and DISCARD which terminate further
table lookups because the decision is obviously final.
and DUNNO
NO! That's not a final decision, processing of more headers
continues
accepted but surprising, i would have thougth it's even in header_checks
like in access tables a way to place rules on top to skip anything after -
not needed anything like reject until now in context of header_checks, hence
unclear
Only surprising if your mental model is incorrect, with header
checks applying to all headers at once. Postfix header checks are
not like Sieve, the rules apply one header line at a time
maybe, depends on the model the human versus the implementation :-)
however, to do people reading that thread something good below the
solution to avoid duplicates by modify the headers spmassassin generates
and adopt the Regex rules
finally for legal reasons you need only a sieve-script with "keep" for
optin-users and "discard" for anything else and to cover also BCC and
have relieable headers for the sieve-script:
http://comments.gmane.org/gmane.mail.postfix.user/193456
________________________________________________
main.cf:
header_checks = pcre:/etc/postfix/header_checks_smtpd.cf
nested_header_checks =
mime_header_checks =
/etc/postfix/header_checks_smtpd.cf:
/^X\-Spam\-Flag: Yes/ BCC spamfil...@rhsoft.net
/^X\-Spam\-Report: Flag: No.*(BAYES_80|BAYES_95|BAYES_99)/ BCC
spamfil...@rhsoft.net
/^X\-Spam\-Report: Flag: No.*(BAYES_50)/ BCC spamfilter+inbox...@rhsoft.net
Spamassassin local.cf:
clear_headers
fold_headers 1
add_header spam Flag _YESNO_
add_header all Status _YESNO_, score=_SCORE_, tag-level=_REQD_,
block-level=8.0
report_safe 0
add_header all Report Flag: _YESNO_, _REPORT_
rewrite_header Subject [SPAM]
___________________________________________________________
(block-level=8.0) is hardcoded or template based in case of a
spamass-milter setup with a reject score