[exim] Re: Can't get domain blocking working

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Daniel Müller via Exim-users
Datum:  
To: 'Christopher Curzio'
CC: exim-users
Betreff: [exim] Re: Can't get domain blocking working
Hello,

I do it like that:

begin acl
acl_check_mail:

discard condition =
${lookup{$sender_address_domain}lsearch{/etc/exim4/data/dropdomains}{yes}{no
}}

dropdomains is filled up with domains I block

Greetings
Daniel

-----Ursprüngliche Nachricht-----
Von: Christopher Curzio via Exim-users [mailto:exim-users@lists.exim.org]
Gesendet: Donnerstag, 15. August 2024 15:43
An: exim-users@???
Betreff: [exim] Can't get domain blocking working

Hey everyone. I'm having an issue that I can't figure out, and I've tried
multiple variations of the config to no avail. I have two files in
/etc/mail: reject_standard and reject_harsh. Both files contain a list of
domain names. I'm trying to get exim to read these files and reject email if
the sender's address is from one of the listed domains. None of what I have
tried has worked.

Here's a copy of my exim.conf:

https://pastebin.com/hVzt15aY

Thanks in advance.

--
## subscription configuration (requires account):
##
https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/