Mailing List Archive

acl_check_data discard, deny condition not working
Dear All,
I tried a deny condition in the section, acl_check_data :
acl_smtp_data = acl_check_data

acl_check_data
deny condition = ${if match{$h_x-spam-status:}{\NUNPARSEABLE_RELAY\N}}
log_message=....

The deny or discard condition does not work, but warn condition does:
warn condition = ${if match{$h_x-spam-status:}{\NUNPARSEABLE_RELAY\N}}
log_message=..

How can i get the deny drop message ,if special header is set, working?

Greetings
Daniel



--
## 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/
Re: acl_check_data discard, deny condition not working [ In reply to ]
On 29/03/18 10:05, Mueller via Exim-users wrote:
> The deny or discard condition does not work, but warn condition does:
> warn condition = ${if match{$h_x-spam-status:}{\NUNPARSEABLE_RELAY\N}}
> log_message=..

"Does not work" is not very descriptive. What did it actually do?
What was logged? Did you run under debug; if so what did you get?
--
Cheers,
Jeremy

--
## 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/
Re: acl_check_data discard, deny condition not working [ In reply to ]
If I do the warn condition = ${if
match{$h_x-spam-status:}{\NUNPARSEABLE_RELAY\N}}
log_message = Schriftzeichen von "$sender_address" , an "$h_to:" -
"$recipients" - ,Betreff: "$h_subject:" sind nicht lesbar,
Header,UNPARSEABLE_RELAY!
It logs fine to /etc/exim/main.log according to the log_message:
Ex.: Warn: Schriftzeichen von yuhulu@chenzing.com , an
mueller@tropenklinik.de, - ,Betreff: ksjwepodwlmcwekcwpldw?ed? sind nicht
lesbar, Header,UNPARSEABLE_RELAY!"

So if i change to: deny condition = ${if
match{$h_x-spam-status:}{\NUNPARSEABLE_RELAY\N}}
log_message = Schriftzeichen von "$sender_address" , an "$h_to:" -
"$recipients" - ,Betreff: "$h_subject:" sind nicht lesbar,
Header,UNPARSEABLE_RELAY!
Emails with this header slip through without beeing discarded,denied or a
message beeing logged.


Greetings
Daniel





-----Urspr?ngliche Nachricht-----
Von: Jeremy Harris via Exim-users [mailto:exim-users@exim.org]
Gesendet: Donnerstag, 29. M?rz 2018 11:24
An: exim-users@exim.org
Betreff: Re: [exim] acl_check_data discard, deny condition not working

On 29/03/18 10:05, Mueller via Exim-users wrote:
> The deny or discard condition does not work, but warn condition does:
> warn condition = ${if match{$h_x-spam-status:}{\NUNPARSEABLE_RELAY\N}}
> log_message=..

"Does not work" is not very descriptive. What did it actually do?
What was logged? Did you run under debug; if so what did you get?
--
Cheers,
Jeremy

--
## 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/


--
## 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/