Article View: alt.privacy.anon-server
Article #287515Re: sender_access Question
From: Werner Flamme
Date: Fri, 09 Dec 2016 15:35
Date: Fri, 09 Dec 2016 15:35
33 lines
1861 bytes
1861 bytes
Nomen Nescio [08.12.2016 20:11]: > I have added several rules to my sender_access file and then > updated the file with: > postmap sender_access > > I then restart postfix with: > service postfix restart > > I am having a problem with this rule: > *@*.br REJECT > I think you have an entry like smtpd_sender_restrictions = hash:/etc/postfix/sender_access so you have do a rehash after you changed the file. That far you worked good :) But: in a hash db, regexes are not used, all strings are taken literally. If you want to use regex, you should change your config to something like smtpd_sender_restrictions = pcre:/etc/postfix/sender_access "postconf -m" should tell you if your postfix has pcre support compiled in. You can also use regexp, if compiled in. And there's no need to "postmap" a pcre/regex file, it is read in as is. A "service postfix reload" should suffice. --
Technical Details
Message-ID:
<eb019bFarroU1@mid.dfncis.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mailReferences:
<c1393dc7fbec225b0bb7c764cc4d53db@dizum.com>Show Full Headers
Complete Article Headers
Message-ID: <eb019bFarroU1@mid.dfncis.de> Subject: Re: sender_access Question Date: Fri, 9 Dec 2016 16:35:07 +0100 From: Werner Flamme <werner.flamme@ufz.de> References: <c1393dc7fbec225b0bb7c764cc4d53db@dizum.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail Newsgroups: alt.privacy.anon-server Lines: 34 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Trace: news.dfncis.de WCxEHLZRdvyi/Cv/Tb1ZvAiFObvj4kSpkKX6NaWitUcOcHlm8wmxgemhpzVlQd3Q0W Cancel-Lock: sha1:lsYGLsQABQD0qMsZLeJ4ZNOuO6c= X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 In-Reply-To: <c1393dc7fbec225b0bb7c764cc4d53db@dizum.com>