* Gerd Hoerst via Postfix-users <g...@hoerst.net>:
> 
> Hi !
> 
> in my /etc/postfix/main.cf
> 
> parent_domain_matches_subdomains = ..... . smtpd_access_maps
> ..
> smtpd_sender_restrictions =  ......  check_sender_access 
> hash:/etc/postfix/access
> 
> 
> 
> in my main.cfs
> 
> domain.com   DISCARD Spam rule domain block
> 
> 
> but emails from  xxxx.yyyy.domain.com or xxxx.domain.com is still delivered.
> blocking domain.com works

Quoting from ACCESS(5):

...
      domain.tld
              Matches domain.tld as the domain part of an email address.

              The pattern domain.tld also matches subdomains,  but  only  when
              the string smtpd_access_maps is listed in the Postfix parent_do‐
              main_matches_subdomains configuration setting.

       .domain.tld
              Matches subdomains of  domain.tld,  but  only  when  the  string
              smtpd_access_maps  is  not  listed  in  the  Postfix  parent_do‐
              main_matches_subdomains configuration setting.
...

ergo:

domain.com   DISCARD Spam rule domain block
.domain.com   DISCARD Spam rule domain block

p@rick

-- 
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein

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

Reply via email to