Re: [SLE] Postfix: Blocking mails from a top-level domain
- From: Sandy Drobic <suse-linux-e@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 18 Oct 2006 16:59:51 +0200
Joachim Schrod wrote:
Hello,
Perhaps someone can help me. I use Postfix 2.2.5-5 on SUSE 10.0.
I want to reject all emails where the (envelope) sender is from the top-level domain .biz.
Well, I thought, no problem, and added:
.biz REJECT
to the access map. The access map is used with
smtpd_sender_restrictions =
check_sender_access hash:/etc/postfix/access, permit
in main.cf.
Well, it doesn't work and I'm wondering why. E.g., an email with the sender <richard@xxxxxxxxxx> is still delivered.
When I use plain domain names in access, rejection works, but the TLD ".biz" does not work. According to the documentation, check_sender_access should "Search the specified access(5) database for the MAIL FROM address, domain, parent domains, or localpart@, and execute the corresponding action." But it doesn't search for the parent domain.
Can anybody help me and shed light on that problem?
If your version of Postfix supports pcre maps (it should), then the easy way out is here:
main.cf:
smtpd_sender_restrictions =
permit_mynetworks,
check_sender_access pcre:/etc/postfix/sender_access_pcre
pcre:/etc/postfix/sender_access_pcre:
/\.biz$/ 554 domain .biz not accepted as sender address
test with postmap:
postmap -q sender@xxxxxxxxxxx pcre:/etc/postfix/sender_access_pcre
To test pcre capability of your Postfix version:
# postconf -m
btree
cidr
environ
hash
ldap
mysql
nis
pcre <=
proxy
regexp
static
tcp
unix
Sandy
--
List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx
- Follow-Ups:
- Re: [SLE] Postfix: Blocking mails from a top-level domain
- From: Joachim Schrod
- Re: [SLE] Postfix: Blocking mails from a top-level domain
- References:
- [SLE] Postfix: Blocking mails from a top-level domain
- From: Joachim Schrod
- [SLE] Postfix: Blocking mails from a top-level domain
- Prev by Date: Re: [SLE] Finding info on RAM (Solved in a way...)
- Next by Date: Re: [SLE] From SUSE Linux 10.1 to a MS OS Running Kermit 3.16 via copSSH on Windows XP or older Windows connected serial devices
- Previous by thread: [SLE] Postfix: Blocking mails from a top-level domain
- Next by thread: Re: [SLE] Postfix: Blocking mails from a top-level domain
- Index(es):
Relevant Pages
|