problem solved by using header_checks. header_checks: if /^TO:/ /^To: .*testvw01@xxx01\.local/ FILTER autoresponder: /^To: .*testhk03@xxx02\.local/ FILTER autoresponder: endif
master.cf: smtp inet n - - - - smtpd -o content_filter=dfilt: -o cleanup_service_name=autoreply-cleanup autoreply-cleanup unix n - n - 0 cleanup -o header_checks=regexp:/etc/postfix/header_checks dfilt unix - n n - - pipe flags=Rq user=filter argv=/etc/postfix/disclaimer -f ${sender} -- ${recipient} autoresponder unix - n n - - pipe flags=Fq user=autoresponse argv=/usr/local/sbin/autoresponse -s ${sender} -r ${recipient} -C ${client_address} the extra cleanup service prevents mail looping. Thanks. Kind regards, Roland de Lepper On Tue, Oct 18, 2011 at 10:01 AM, Roland de Lepper < roland.de.lep...@gmail.com> wrote: > Are you sure? Because nothing is running on that port. The bash script is > just a stand-alone script not running on any port. > > My logs also say: > warning: connect to transport private/localhost: Connection refused > > netstat -tap says: > tcp 0 0 localhost:10027 *:* > LISTEN 30317/master > > I'm now trying it with header_checks, but facing similar problems. > > Any suggestions? > > Kind regards, > > Roland > > > On Mon, Oct 17, 2011 at 5:29 PM, Noel Jones <njo...@megan.vbhcs.org>wrote: > >> On 10/17/2011 7:16 AM, Roland de Lepper wrote: >> > Does this also work with non-daemon scripts? >> > >> > My scripts for disclaimer and autoresponder aren't running as daemon. >> > >> >> >> Yes. >> >> >> >> >> >