Re: [Exim] ACL to Reject based on Subject

Pàgina inicial
Delete this message
Reply to this message
Autor: William Thompson
Data:  
A: Lane Vance
CC: exim-users
Assumpte: Re: [Exim] ACL to Reject based on Subject
> I have been reading the online manual and searching on Google but I can't
> find anything that will do what I am looking to do.
>
> Using an acl_smtp_data I would like to scan the subject line of the
> incoming message. If it matches against a list of keywords (like viagra
> or mortgage) Exim would refuse the message.
>
> Is this possible? If so, can anyone point me in the right direction?


Yes, check the $h_Subject: variable in your data acl.

NOTE: this isn't an exim variable and you can't use ${h_Subject:}

See the spec.txt for information on this.