Richard G
Verified User
I want to block certain botpc's who are always trying to bruteforce.
Now I found this on the internet:
Maybe this worked in the past, but if I do this, Exim gives an error that the acl_smtp_helo statement is made twice.
If I remove the upper one, Exim gives an error that the = is missing.
So I have 2 questions:
1.) What is the correct way so this ylmf-pc get's blocked and Exim does not give any errors.
2.) Is there another way (kindlike) so I can enter more of those often occuring computernames if necessary?
Now I found this on the internet:
Code:
# vi /etc/exim.conf
acl_smtp_helo = acl_smtp_helo
acl_smtp_helo:
#BEGIN ACL_SMTP_HELO_BLOCK
drop
condition = ${if eq {$sender_helo_name}{ylmf-pc} {yes}{no}}
log_message = HELO/EHLO - ylmf-pc blocked
message = I Nailed You at HELO
accept
#END ACL_SMTP_HELO_BLOCK
Maybe this worked in the past, but if I do this, Exim gives an error that the acl_smtp_helo statement is made twice.
If I remove the upper one, Exim gives an error that the = is missing.
So I have 2 questions:
1.) What is the correct way so this ylmf-pc get's blocked and Exim does not give any errors.
2.) Is there another way (kindlike) so I can enter more of those often occuring computernames if necessary?