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?
>
> 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?
>   

Does the content_filter return to Postfix?

If it does, try this:

<> FILTER return-smtp:10025

where return-smtp is the return transport and 10025 is the port in master.cf

This effectively bypasses the content_filter and returns the file to the
queue as if it went through the filter.

Brian

Reply via email to