I would like to disable a global content_filter just for the empty
sender (mailer-daemon) coming from a specific ip.

After reading that the default transport has syntax ":" and that the
default filter is empty, I tried "FILTER :" in an access table with
the meaning of "filter disabled":

---
smtpd_restriction_classes = avoid_filtering_empty_sender

avoid_filtering_empty_sender = check_sender_access  hash:nofilter_empty_sender

with nofilter_empty_sender file containig:
<> FILTER :
---

but, after applying that class to the ip of the broken smtp, I got
just the "warning: connect to transport : Connection refused" message
and mail never left the queue.

Anyone thinks that something like "FILTER :" or "FILTER none" can be useful?

I think that this solution is more readable than the only workaround I
can imagine now (that is disabling global filtering and enabling it in
a pcre table for everything except that particular case).

Is there any other cleaner way to obtain the correct result?

Regards,
Diego Liziero.

Reply via email to