On 2023-04-28 at 09:59:53 UTC-0400 (Fri, 28 Apr 2023 15:59:53 +0200)
Gerd Hoerst via Postfix-users <g...@hoerst.net>
is rumored to have said:

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 ?


No. It would be a deeply unwise idea for most mail systems, and a fundamental misunderstanding of how Internet email is designed to work.

OF COURSE, there's no law in most places that would forbid you from doing something deeply unwise, and your own mail stream may never see non-spam "From" anyone with a 3-level domain part to their address.

This is possible for subscribers to this list only because it has recently switched to replacing the "From" header on posts.


at least i tried with header checks in pcre

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

but this seemd not to work..

Yes, it wouldn't. It seems to want a local-part consisting of a single literal '.' and a redundantly-specified repeating series of literal '.' characters at the end of the domain name. That would be a whole different class of bogosity...


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

Yes, indeed you do... Or you would, if I CC'd a copy of this to you directly.

--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to