On 02.06.22 16:29, Emanuel Gonzalez wrote:
The option is interesting, do you have an example?

I tried to use it but it didn’t work for me.

smtpd_recipient_restrictions =
    check_recipient_mx_access cidr:/etc/postfix/recipient_mx_access.cidr

52.164.206.56 reject

haven't tried with cidr, but I do have:

        check_sender_mx_access hash:/etc/postfix/blockmx,
...
        check_recipient_mx_access hash:/etc/postfix/blockmx,

195.146.128.115 REJECT Mail services for this domain removed

this is mailserver for company that stopped mail service last year so I explicitly blocked mail to and from it.
I have also few IPs that many spam senders pointed their addresses to...

Feb  4 08:31:23 proxy2 postfix/smtpd[13138]: NOQUEUE: reject: RCPT from 
antirelay22.smtp.cz[81.95.105.152]: 554 5.7.1 <lekarenreme...@mail.t-com.sk>: Sender address 
rejected: Mail services for this domain removed; from=<lekarenreme...@mail.t-com.sk> 
to=<exam...@example.com> proto=ESMTP helo=<antirelay22.smtp.cz>

Jun  3 05:07:39 proxy2 postfix/smtpd[10808]: NOQUEUE: reject: RCPT from unknown[192.0.2.1]: 554 5.7.1 
<enpartn...@mail.t-com.sk>: Recipient address rejected: Mail services for this domain removed; 
from=<s...@example.com> to=<enpartn...@mail.t-com.sk> proto=ESMTP helo=<example.com>


El 31/5/22 a las 16:00, Matus UHLAR - fantomas escribió:
On 31.05.22 12:55, SysAdmin EM wrote:
found the parameter "check_sender_mx_access" but I think it refers to a
sender and not a recipient.

there's also check_recipient_mx_access, I use few of them for this kind of abusers.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I'm not interested in your website anymore.
If you need cookies, bake them yourself.

Reply via email to