Jevos, Peter a écrit :
> Dear all
> 
> I'd like to ask you a question.
> 
> In my master.cf is:
> 
> [snip]
> ##disclaimer
> disclaimer     unix    -       n       n       -       -       pipe
>     flags=Rq user=altermime argv=/etc/postfix/filter/disclaimer -f
> ${sender} -- ${recipient}
> 
> 
> It leads to error: Too many hops , in the log there is loop.

so your filter is passing mail back to an smtpd that passes it to the
same filter, and so on.

if your filter resubmits mail via the sendmail command and if you don't
want to filter mail submitted via the sendmail command, then add

        -o content_filter=

to the pickup service (in master.cf).



> [snip]
> 
> So the question is where can I put the content_filter=disclaimer: to
> work only for outgoing emails , into which smtpd process?
> 

you can use the FILTER statement in smtpd restrictions.



Reply via email to