Nathan Huesken schrieb:
> Hello,
> 
> I am just switching to postfix for my mailserver.
> I wonder, if and how the following is possible:
> 
> I have a catchall for a certain domain (lets call it catch-all.com).
> But certain addresses (like i...@catch-all.com) just get to much spam.
> So I want to block them!
> But I do not want to bounce them, it causes to much traffic. I want to block 
> them on the smtp level.
> If someone sends an mail to i...@catch-all.com, he should get an "user not 
> found" response.
> 
> Thanks!
> Nathan

Hi Nathan, i wouldnt recommend any kind of catch all
these spam days
however you alway can use a recipient reject
i.e

smtpd_recipient_restrictions =
...
check_recipient_access hash:/etc/postfix/recipient_access_blacklist,
....

/etc/postfix/recipient_access_blacklist

i...@catch-all.com REJECT this mail adress doesnt accept incomming mail

be aware that you might not recieve any bounces etc this way
( dont know if this is ok at your site )
you might use other sender tables before this rule ( perhaps using
smtpd_restriction_classes )
to make bounces work for typical bounce senders like i.e <>, postmaster
etc ( on the other side these addresses often are backscatter source or
spam faked ) so there is no "Gold" way

reject as many mails you can by other rules before this rule by i.e
rbls, unknown domain checks etc

stuff like this depends deeply on amount and kind of incomming
spam and backscatter mails and may changing during runtime by analysing
logs

using real mailaddresses only, instead of catch all ist better
anytime anyway


-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria

Reply via email to