[Exim] exim 4 subject line blocking

Top Pagina
Delete this message
Reply to this message
Auteur: cami
Datum:  
Aan: exim-users
Onderwerp: [Exim] exim 4 subject line blocking
hi..

i've been trying figure ways to get this right, but having no luck..

#####################################################################
#
# acl_smtp_data:
#
# we use it to do subject header checking
#
#####################################################################
acl_smtp_data = check_subject


and in the ACL's section:

check_subject:
deny condition = ${if eq {$h_subject:} {BOUNCEME} {yes}{no}}
message = "well, you asked me to bounce it!"
accept

which works perfectly.. if i send a message with the subject BOUNCEME, it bounces
it as it should..

check_subject:
deny condition = ${if eq {$h_subject:} {lsearch;/usr/local/exim/reject_subject.txt} {yes}{no}}
message = "well, you asked!"
accept

i'm trying to do something like this, where i can have a list of banned subject lines
to deny inside a seperate file..

anyone have any ideas?
i checked the previous mailing lists for such questions and found nothing..

regards
cami