regex help - postfix spam
by compused from LinuxQuestions.org on (#5MBV9)
hi
why won't this regex work, as inserted into /etc/postfix/header_checks :
Code:/^From.*\.(?!(net|com|edu|gov|org)).*$/ DISCARDie block all emails *not* from .net, from .com, from .edu?
running a postmap -q test shows that .com is DISCARDed, though I can't work out why:
Code:postmap -q 'From: john.smith@icloud.com' pcre:/etc/postfix/header_test
DISCARDthanks
Compfused
why won't this regex work, as inserted into /etc/postfix/header_checks :
Code:/^From.*\.(?!(net|com|edu|gov|org)).*$/ DISCARDie block all emails *not* from .net, from .com, from .edu?
running a postmap -q test shows that .com is DISCARDed, though I can't work out why:
Code:postmap -q 'From: john.smith@icloud.com' pcre:/etc/postfix/header_test
DISCARDthanks
Compfused