<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 4, 2016 at 8:02 AM, Mike Schleif <span dir="ltr"><<a href="mailto:mike@mdsresource.net" target="_blank">mike@mdsresource.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><span>On Thu, Mar 3, 2016 at 3:39 PM, Patrick Ben Koetter <span dir="ltr"><<a href="mailto:p@sys4.de" target="_blank">p@sys4.de</a>></span> wrote:<br></span></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class=""><span>Mike,<br>
<br>
* Mike Schleif <<a href="mailto:mike@mdsresource.net" target="_blank">mike@mdsresource.net</a>>:<br>
</span></span><span class=""><span>> Original filter-only:<br>
> <a href="http://master.cf/" rel="noreferrer" target="_blank">master.cf</a>:<br>
> smtp inet n - n - - smtpd<br>
> -o content_filter=filter:dummy<br>
><br>
> filter unix - n n - 10 pipe<br>
> flags=Rq user=filter null_sender=<br>
> argv=/var/spool/filter/bin/filter.sh -f ${sender} -- ${recipient}<br>
<br>
what is it, that filter.sh does? Is it something amavis can do as well?<br>I'm asking because maybe we can simplify your setup.<br></span></span></blockquote><div> <br></div><div>No.<br></div><div><br></div><div>This
server was built to consolidate several legacy servers, primarily to do
special header rewrites for a subset of all email received by this
company. It is unique code developed to do such rewrites and it does it
well.<br><br></div><div>After several months of doing this task without
incident, others decided to retrofit spam & av to this box, which
had been done problematically elsewhere.<br><br></div><div>I think that I
have this working; but, I'm totally new to amavis, and I'm no expert on
postfix. I want to find the simplest way to chain these processes, set
it and forget it ...<br><br></div><div>Thank you.</div></div></div></div></blockquote><div><br></div><div>I have (4) questions at this point:</div><div><br></div><div>1) Can "filter" be run from amavisd?</div><div><br></div><div>2) If "filter" can be run from amavisd, should it?</div><div><br></div><div>3) Is it best to run "filter" from postfix? If so, how?</div><div> </div></div><br></div></div>