My domain getting lot of spam mail like xxx@mydomain.com, yyy@mydomain.com. We don't have such user's but we getting mails like that.Also getting lot of bounce mails, How to control spam like this in exim mail server.
Asked
Active
Viewed 887 times
2 Answers
3
If you use postmaster option
require verify = recipient
This statement requires the recipient address to be verified; if verification fails, the address is rejected.
You can also set some good acl rules to delay or block the host which sends the spam:
deny message = Max $rcpt_fail_count failed recipients allowed
condition = ${if >{$rcpt_fail_count}{10} {1}}
! verify = recipient
delay = ${eval: $rcpt_fail_count * 10}s
log_message = $rcpt_fail_count failed recipient attempts
See FAQ
0
In fact, this problem causes many people to react very quickly to spam mail.
Here's what you can do, verifying the recipient's address on the statement; Because if the verification fails, the address is rejected.
-
Welcome to the site, and thank you for your contribution. Please note that your answer seems to reiterate what was already stated in the accepted answer. You may want to consider expanding it so that the difference to that answer becomes more visible; otherwise it would be best placed as a comment to that answer (once you have sufficient reputation). – AdminBee Jan 03 '23 at 14:19
/etc/exim4/exim4.conf
. Most of the options are exist and need only to be uncommented. Thedeny message
needs to be added afterbegin acl
. You need also to put the message bevore any other acl passes another rule. – Apr 08 '14 at 15:31