A few blacklists for exim4.
Source: https://forum.hestiacp.com/t/ban-block-an-email-address/5553/2
- Create a file called
customglobaltldblacklist
within/etc/exim4/
.
If you need, also createcustomglobaldomainblacklist
andcustomglobalemailblacklist
. - Go in HestiaCP - Settings - Exim4 (edit). This will edit the file: /etc/exim4/exim4.conf.template
- Add the following rule just above the accept hosts = : line from the acl_check_rcpt block:
# CUSTOM ADDED ACL
deny senders = /etc/exim4/customglobaltldblacklist
message = Your tld has been blacklisted for sending SPAM.
deny senders = /etc/exim4/customglobaldomainblacklist
message = Your domain has been blacklisted for sending SPAM.
deny senders = /etc/exim4/customglobalemailblacklist
message = Your email address has been blacklisted for sending SPAM.
# END
It will look like this:
acl_check_rcpt:
# CUSTOM ADDED ACL
deny senders = /etc/exim4/customglobaltldblacklist
message = Your tld has been blacklisted for sending SPAM.
deny senders = /etc/exim4/customglobaldomainblacklist
message = Your domain has been blacklisted for sending SPAM.
deny senders = /etc/exim4/customglobalemailblacklist
message = Your email address has been blacklisted for sending SPAM.
# END
accept hosts = :
- Update the Exim4 configuration:
root@host:~$ update-exim4.conf
- Restart the exim4 service:
root@host:~$ systemctl restart exim4.service
Source: https://marc.info/?l=exim-users&m=146279505017913&w=2
Both names and wildcards (*) such as the following work:
name@*.tld
*@name.tld
*@*.tld
[email protected]
- Add records to the blacklist (customglobaltldblacklist)
root@host:~$ cd /etc/exim4/
root@host:~$ nano customglobaltldblacklist
root@host:~$ *@*.tld
- Update the Exim4 configuration:
root@host:~$ update-exim4.conf
- Restart the exim4 service:
root@host:~$ systemctl restart exim4.service