Am 12.09.2014 um 14:53 schrieb Den: >> "li...@rhsoft.net" >> no but the regexp is entirely wrong >> >> the subject starts with [SPAM] so no need for .* >> {5} - what is that supposed to do? >> avoid a * in the action for safety >> >> /^Subject: \[SPAM.*/ DISCARD SPAM > > Strongly disagree. Regexp is 100% correct because: > > 1. postmap -q "/^Subject:.*\*{5}SPAM\*{5}/" regexp:/etc/postfix/spamdiscard > > returns no issues > 2. {5} substitutes the \*\*\*\*\* because I have 5 ***** in front and after > the word SPAM, not 5 [[[[[ > > 3. The dot with the wildcard or asterisk .* match any number or any > character that goes in front, like your mentioned [, my *, or + and so on. > Thus I do not have to explicitly mention each character separately including > [ * + and so on
SA default is rewrite_header Subject [SPAM] why don't you just stick with defaults and after all is working change each time only one setting so that you in case of breakage know which change is responsible that's best practice for many years in server context header_checks works - period