Mailinglist Archive: opensuse (3139 mails)

< Previous Next >
Postfix: Blocking mails from a top-level domain
  • From: Joachim Schrod <jschrod@xxxxxxx>
  • Date: Wed, 18 Oct 2006 14:39:39 +0000 (UTC)
  • Message-id: <45363CA1.7070208@xxxxxxx>
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?

Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany

< Previous Next >