Diego Liziero wrote:
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?
if you want to disale the filter:
<> FILTER dummy:
but if you have disabled address rewrite before the filter (this is a
common setup. otherwise your virtual aliases would expand twice and
you'll get duplicate mail), you'd better set the filter to the
after-the-filter smtpd:
<> FILTER relay:[127.0.0.1]:10025
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?
see above. but why do you want this? what problem are you trying to solve?