I would like to know how it would be the correct way for the antispam filter to let through the domains that you specify in the whitelist file? Currently I can only manually put the ip’s that I allow but if I put @ domini.com or domain.com it doesn’t work
that would be great and exim would be the one to do the filtering job using those files
The problem I have using spamassasin is that if a domain that I want to pass is in bl.spamcop.net it is already blocked by exim and no matter how much it has the addresses in whitelist_from of spamassassin it no longer works because they have already been filtered before and override spamcop as a filter I am not willing
I have seen this solution that can be applied to exim4 with hestiacp, do you know if it is correct and so you can put domains and also ip in the white-blocks.conf file? with this my problem would be solved
I understand that where there is:
acl_check_rcpt:
accept hosts =:
It is to remove that and you put this code before this, right ?:
Limit per email account for SMTP auhenticated users
deny message = Email account $ authenticated_id is sending too …
I did it!
Below this acl_check_rcpt: replace accept hosts = : with this code:
accept hosts = +relay_from_hosts
!authenticated = *
set acl_m6 = whitelisted
accept domains = +local_domains : +relay_to_domains
condition = ${lookup{$sender_address}wildlsearch{/etc/exim4/whitelist}{yes}{no}}
set acl_m6 = whitelisted
logwrite = Accepted from $sender_address to $local_part@$domain by whitelist.
accept domains = +local_domains : +relay_to_domains
hosts = net-lsearch;/etc/exim4/whitelist
set acl_m6 = whitelisted
logwrite = Accepted from $sender_address to $local_part@$domain by whitelist.
deny condition = ${lookup{$sender_address}wildlsearch{/etc/exim4/blacklist}{yes}{no}}
set acl_m6 = blacklisted
logwrite = Rejected from $sender_address to $local_part@$domain by blacklist.
deny hosts = net-lsearch;/etc/exim4/blacklist
set acl_m6 = blacklisted
logwrite = Rejected from $sender_address to $local_part@$domain by blacklist.