On Tue, Jun 10, 2014 at 08:02:55PM -0500, Noel Jones wrote:
> On 6/10/2014 5:45 PM, Jay G. Scott wrote:
> > 
> > After trying various combinations of things in
> > main.cf and master.cf, I find that, using the script
> > below, if the mail reaches the filter script, the
> > resulting mail message bounces (too many hops)
> > but the filter has processed the input.
> > 
> > If I turn content_filter off in main.cf the
> > mail gets delivered unfiltered, no bounces, no hops.
> > 
> > main.cf:
> > 
> > content_filter = filter
> > 
> > got it filtered, but resulted in the hops bounce.
> > 
> > What am I missing?
> > 
> > j.
> 
> 
> Near the bottom of
> http://www.postfix.org/FILTER_README.html#simple_filter
> the document describes how to turn on filtering for mail arriving
> via SMTP, but leave it turned off as the main.cf default so mail
> won't loop.

I had two smtp lines in the master.cf file.  Splutter.
The change to the pickup line (per Dukhovni) also helped me.

It's working for me now.

Thanks.

j.


> 
> Of course this means you would need to submit mail via SMTP for
> testing; mail submitted via the sendmail(1) interface is not
> filtered.  This is necessary since the "simple" filter resubmits the
> mail to postfix via the sendmail command.
> 
> 
> 
>   -- Noel Jones

-- 
Jay Scott               512-835-3553            g...@arlut.utexas.edu
Head of Sun Support, Sr. System Administrator
Applied Research Labs, Computer Science Div.                   S224
University of Texas at Austin

Reply via email to