On Tue, Aug 23, 2022 at 07:26:25AM +0200, Ansgar Wiechers wrote:
> On 2022-08-22 Ruben Safir wrote:
> > On Mon, Aug 22, 2022 at 08:50:51AM +0200, Ansgar Wiechers wrote:
> >> You could use a check_sender_access restriction with a regular
> >> expression like this:
> >>
> >> /bagel/ REJECT
> >
> > Do I use the map created by the postfix/access file for this?
> 
> Depends on your configuration. If the file is a "normal" hash map, which
> would be referenced in your main.cf somewhat like this:
> 
> smtpd_recipient_restrictions =
>   ...
>   check_sender_access hash:/etc/postfix/access
> 
> then you can't add a regular expression rule there. Instead create a new
> file with that rule (e.g. /etc/postfix/access.pcre) and add that file to
> your main.cf like this:
> 
> smtpd_recipient_restrictions =
>   ...
>   check_sender_access hash:/etc/postfix/access
>   check_sender_access pcre:/etc/postfix/access.pcre
> 
> Running postmap is not needed for regexp and pcre access maps.
> 
> Regards
> Ansgar Wiechers


Thank You for explain that so clearly.  Much obliged!

> -- 
> "Abstractions save us time working, but they don't save us time learning."
> --Joel Spolsky

-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com 

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive 
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com 

Being so tracked is for FARM ANIMALS and extermination camps, 
but incompatible with living as a free human being. -RI Safir 2013

Reply via email to