On 4/28/2023 8:59 AM, Gerd Hoerst via Postfix-users wrote:
Hi !

question 1st : is it a good idea to reject any email which is not sent from a domain  (means sen...@domain.tld) any other like sen...@sub.domain.tld or sub.sub.domain.tld is rejected ?

That seems like a bad idea, extremely likely to reject legit mail.


at least i tried with header checks in pcre

/^From:\.*@.*\.*\.*/    DISCARD NO SUBDOMAINS

but this seemd not to work..

The regexp is wrong. You can test expressions with postmap.

DISCARD is a poor choice here, since legit senders won't be notified. Start with INFO to log what matches, then if you're happy with the results and feeling particularly reckless, move to REJECT.


i have several anti spam feature enabled but i get still some messages which are coming from subdomains or sub sub domains

I've seen no evidence that the presence of a subdomain is a reliable spam indicator. Zero false positives is a much better goal than zero spam.


  -- Noel Jones
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to