[email protected] writes: > Hi > > i want block incoming mails with a lot of subdomains (SPAM) like that > subdomain.co.tk > *.subdomain.co.tk > > i put that (in exim for cpanel) at the start: > domainlist host_reject_recipients = lsearch;/block.txt > > and in the file block.txt i put this (for example): > *.tk > *.co.tk > co.tk > > > but do not work for me, i want reject the mail, do not send a message, > only drop the email. > > > > thanks for your time > what is working well for me (i'm very new to exim though) is to add ip addresses to /etc/exim4/local_host_blacklist
so i have things like: 193.105.41.254 #block individual ip 208.115.244.52/24 #block 208.115.244.xxx 216.162.112.10/16 #block 216.162.xxx.xxx if you want to let something through like: 216.162.112.12 just put that ip address in /etc/exim4/host_local_deny_exceptions (according to EXIM4_FILES(5) man page on my debian squeeze system, but i haven't tried it) so this may not be quite what you are looking to do, but it may still do the job. -- in friendship, prad -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
