Hi all, I'm running Postfix 2.4.1 and using a After-Queue Content Filter to forward email to a Java Application Server. Everything is running just fine for almost about 10 months, but a strange thing has happened and i want to know what cause it.
So, my content filter is based on the example in http://www.postfix.org/FILTER_README.html#simple_filter with some diferences: #!/bin/sh > > INSPECT_DIR=/var/spool/filter/ > SENDMAIL="/usr/sbin/sendmail -G -i" > > EX_TEMPFAIL=75 > EX_UNAVAILABLE=69 > extension=$(date +%s%N) > timeout=10 > > > #Start processing > cd $INSPECT_DIR || { > echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; } > > #echo In Dir; > cat > out.$extension.$$ || { > echo Cannot save mail to file; exit $EX_TEMPFAIL; } > > #Specify your content filter here > curl -m $timeout -f -s http://*<IP>:<PORT>*/*<APP>*?file=out.$extension.$$|| > { > rm -f out.$extension.$$;echo "Request to *<APP>*(CURL) failed. > File Deleted:out."$extension.$$; exit $EX_TEMPFAIL;} > > exit $? The problem: Some days ago a mail was received Feb 10 19:05:40 server postfix/pipe[30745]: 8EDE1C64680: to=<u...@domain>, > relay=filter, delay=0.08, delays=0.02/0/0/0.06, dsn=2.0.0, status=sent > (delivered via filter service) > and only this entry is shown in the log file, but the java application received 7 request sent by the filter, like my application logs show: *|DATE | ... |From|To|File created by the > filter |File size* |2009-02-10 19:05:40,627| ... > |From|To|/var/spool/filter/out.1234292740612458000.18402|51492 > |2009-02-10 19:05:41,198| ... > |From|To|/var/spool/filter/out.1234292741191114000.18416|51492 > |2009-02-10 19:05:41,794| ... > |From|To|/var/spool/filter/out.1234292741783202000.18858|51492 > |2009-02-10 19:05:42,507| ... > |From|To|/var/spool/filter/out.1234292742500158000.18911|51488 > |2009-02-10 19:05:43,148| ... > |From|To|/var/spool/filter/out.1234292743141095000.18917|51488 > |2009-02-10 19:05:43,523| ... > |From|To|/var/spool/filter/out.1234292743515917000.18923|51492 > |2009-02-10 19:05:43,950| ... > |From|To|/var/spool/filter/out.1234292743942419000.18929|51492 > Has you can see the file name is *out.<date>.<filter PID>*, and by the logs of my application there were 7 filter instances sending requests with the same From and To address, despite there were only one log entry in the postfix logs for this email. Does anyone know what might be causing this problem? Many thanks, André Lopes