Hello,
I guess every webhoster is using http://help.directadmin.com/item.php?id=81 - the problem we're facing at this point are the frozen messages:
# exim -bpc
5123199
I do have some clients who simply just don't want to secure their wordpress installations and they're hacked and used for spam over and over again, I've just disabled those clients adding a limit to 1 mail / day for their user, simple and efficient but I/O consuming for frozen messages.
Question: How can I set exim to automatically DROP (not store and freeze) mails over limit ?
I want to directly drop the email, dropping it will cause less I/O and less time consuming clearing the exim queue.
---
I know the other option is to suspend the client account or set sendmail_path to /dev/null in php, but I'm looking for a cleaner way to do it.
Thank you!
I guess every webhoster is using http://help.directadmin.com/item.php?id=81 - the problem we're facing at this point are the frozen messages:
# exim -bpc
5123199
I do have some clients who simply just don't want to secure their wordpress installations and they're hacked and used for spam over and over again, I've just disabled those clients adding a limit to 1 mail / day for their user, simple and efficient but I/O consuming for frozen messages.
Question: How can I set exim to automatically DROP (not store and freeze) mails over limit ?
Code:
lookuphost:
driver = dnslookup
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
transport = remote_smtp
no_more
I want to directly drop the email, dropping it will cause less I/O and less time consuming clearing the exim queue.
---
I know the other option is to suspend the client account or set sendmail_path to /dev/null in php, but I'm looking for a cleaner way to do it.
Thank you!