Hi, many thanks for your feedback. This is to confirm the following rule seems to work:
header French_Spam10 ALL =~ / e\d{1,2}\.\S+\.fr /i score French_Spam10 3.5 Many thanks for all those that supported me in the troubleshooting process. Best regards Sebastian > Am 02.01.2016 um 15:11 schrieb RW <rwmailli...@googlemail.com>: > > On Fri, 1 Jan 2016 19:37:26 +0100 > Sebastian Wolfgarten wrote: > >> Dear all, >> >> I wish you and your families a happy, prosperous and healthy year >> 2016! >> >> As for me, I am spending the first day of the new year battling with >> some custom SA rule that seems to be ignored: >> >> header FR_Spam2 Received =~ /e\d{1,2}+\.(.*)\.fr/i >> score FR_Spam2 3.5 >> >> Is this rule correct from a syntactical perspective? I would say yes >> as pcregrep is fine with it. > > I tested it and it worked for me. Perhaps you need to to restart spamd. > > However there are some problems: > > 1. \d{1,2}+ doesn't make any sense, you need either {1,2} or + > > 2. .* can extend the match into a different hostname, \S+ would be > better > > 3. consider adding a space at both ends
signature.asc
Description: Message signed with OpenPGP using GPGMail