No it still doesnot blocks the subdomains.

And when I test using

'postmap -q "string" /etc/postfix/blockr'.
ex. "string" = "t...@domain.com" and "t...@test.domain.com"

it blocks only the domain and not the subdomain.

-----Original Message-----
From: owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] On Behalf Of Koko Wijatmoko
Sent: Tuesday, June 09, 2015 1:11 PM
To: postfix-users@postfix.org
Cc: ha...@ecei.biz
Subject: Re: Block subdomains in check_recipient_access.

On Tue, 9 Jun 2015 11:51:28 +0300
"Hanna" <ha...@ecei.biz> wrote:

> in /etc/postfix/blockr
> 
> domain.com REJECT sorry, blocked.
> .domain.com REJECT sorry, blocked.
> 
you dont need to specify ".domain.com", since the first also REJECT any
subdomain under "domain.com".

http://www.postfix.org/access.5.html

and test using 'postmap -q "string" /etc/postfix/blockr'.
ex. "string" = "t...@domain.com" and "t...@test.domain.com"

> But postfix blocks only incase email are sent to domain.com , but it 
> accepts emails for subdomain ".domain". so why it is not working ?
> 
> How can I enforce postfix to block also the subdomain for the 
> recipient address ?
> 

Reply via email to