Article View: alt.privacy.anon-server
Article #282203Re: Postfix Blacklisting/blocking top level domains
From: Zax
Date: Mon, 25 Apr 2016 22:53
Date: Mon, 25 Apr 2016 22:53
57 lines
2535 bytes
2535 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Mon, 25 Apr 2016 21:18:33 +0100 (BST), Nathan Hale wrote in
Message-Id: <e7833524399e5f757c82ea3e6b2d4a89@remailer.org.uk>:
>
> I have created the sender_access file and populated a list
> of email addresses and domanins I want to REJECT. And I ran
>
> postmap /etc/postfix/sender_access
>
> Everything appears to be working OK.. I tested via telnet.
>
> However I cannot reject top level domains I tried the following:
>
> examples
> ========
>
> .cn REJECT
> *.cn REJECT
> cn REJECT
>
> none of which worked. :(
>
> Any suggestions would be welcome.
You'll have to use PCRE.
smtpd_recipient_restrictions =
check_sender_access pcre:/etc/postfix/sender_access_pcre
sender_access_pcre:
/\.cn$/ REJECT a lot of people
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJXHp/gAAoJEC3jHKG+Pvqn+0oP/RsBiTNzXXXONexOxIsfKIiz
V+b0t+6Qs//5kq4hM+dIFNQmv0QtSiNQiDHcLkxBaWf7nC5fD7fnG1Z9MZv4o97p
5eZTEKbMeFNHT9Vj9qtzJxo6L7GfZbW5x9SQmdGWkOqDdoeBkjlJee4Xw3BaMnxn
/u7t2m+vXUikLyGXCBRsozdJYyz36b3LbHHVZsrK1aWe2V4L8JAkHeD2UokR6kzX
BW7j62IejShACnbq5FA/0ncsdoZ6WewIUGQPczabea2V8/2kC81vjW+bVHvJUVfg
uiBrIMyBoCrGEAdJfpIcaQahqt6rjSCgb11DVykeDbcf/lwrIpS+dl85pCCZWIzw
sEfeQ6vS5agujRKZpGOt5IK2LkrnGN+WwKK4ywK4QGzSZ865r0do+cW3bSgvOjmS
0hVF4ryJ+E5Kjf+OzoMwY2Fpx1HjrLrVxiHmOcOHkmSKVB1Y80rKgiEDNZVd+Wdw
HKaLae7FzA4HOKWVy8kzBosXM+u+gbrCIUYdC8qSV+PiM6Nwj9sjeyWbMN3TQ2MT
vcWRdHKwDKgMUgnql8XtGvBJwAMK1A0eaxWLrURQ/mv8HlNMIryH/mvyyOMY5wcZ
F069T7n3x/d+FJXxy/HfxuTbHxJKfvWIMLgowae3QtEWc+z3CWuSYucdpGjCfDiE
McqwL6gc1xPXg9FoJhqv
=HNKp
-----END PGP SIGNATURE-----
--
pub 1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
sub 4096R/BE3EFAA7 created: 2014-11-14 expires: 2016-11-13 usage: S
Technical Details
Message-ID:
<slrnnht7v0.995.admin@fleegle.mixmin.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<e7833524399e5f757c82ea3e6b2d4a89@remailer.org.uk>Show Full Headers
Complete Article Headers
Message-ID: <slrnnht7v0.995.admin@fleegle.mixmin.net> Subject: Re: Postfix Blacklisting/blocking top level domains Date: Mon, 25 Apr 2016 22:53:20 +0000 From: Zax <admin@mixmin.net> References: <e7833524399e5f757c82ea3e6b2d4a89@remailer.org.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail User-Agent: slrn/pre1.0.3-6 (Linux) X-Received-Bytes: 2680 Newsgroups: alt.privacy.anon-server Organization: Mixmin Injection-Date: Mon, 25 Apr 2016 22:53:20 -0000 (UTC)