Dovecot Sieve and Postfix header_checks Issue

Reindl Harald h.reindl at thelounge.net
Sat Sep 27 13:18:09 UTC 2014


Am 27.09.2014 um 12:49 schrieb Klaipedaville on Google:
>> Joseph Tam writes:
>>
>> However, my header_checks file has just 5 lines of regexp as follows:
>> ...
>> /^From:.*\@.*\.tw/                       REJECT Sorry, Taiwanese mail is not allowed.
>>
>> Can't speak about the other issues you are having, but is this regexp pattern what you want?  Unless Postfix PCRE automatically right-anchors these regexps, aren't you rejecting mail from someone at mail.twinpeaks.org,
>> or even twitter notifications (from *@bounce.twitter.com)
>
> I am not sure I even understand what you were trying to say. 
> It's either because you have no idea how to write any regexp

the only one having no clue are you (bseides wrong mailing-list)

/^From:.*\@.*\.tw/ is bullshit and matches twitter.com and so on
/^From:.*\@.*\.tw$/ at least would make sure it *ends with* tw

frankly your rule matchs *anything* having a @ and .tw



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140927/5284ee07/attachment.sig>


More information about the dovecot mailing list