Dne Wednesday 10 of February 2010 19:03:01 Noel Jones napsal(a): > http://www.postfix.org/FILTER_README.html
Good tip. Indeed my spamchk script uses the -t option. I tried to remove it. It stopped all mail deliveries. Here is the relevant log snippet: Feb 11 10:09:43 milos-desktop postfix/sendmail[27082]: fatal: Recipient addresses must be specified on the command line or via the -t option Feb 11 10:09:43 milos-desktop postfix/postdrop[27083]: warning: stdin: unexpected EOF in data, record type 78 length 76 Feb 11 10:09:43 milos-desktop postfix/postdrop[27083]: fatal: uid=500: malformed input Feb 11 10:09:44 milos-desktop postfix/pipe[26943]: 6B496F0E7B: to=<[email protected]>, relay=spamchk, delay=6.4, delays=5.4/ 0/0/1.1, dsn=4.3.0, status=deferred (temporary failure. Command output: sendmail: fatal: Recipient addresses must be speci fied on the command line or via the -t option postdrop: warning: stdin: unexpected EOF in data, record type 78 length 76 p ostdrop: fatal: uid=500: malformed input ) Here is the spamchk line in master.cf: smtp inet n - n - - smtpd -o content_filter=spamchk:dummy Here is the spamchk script: SENDMAIL="/usr/sbin/sendmail -i -t" EGREP=/bin/egrep EX_UNAVAILABLE=69 SPAMLIMIT=10 trap "rm -f /var/tmp/out.$$" 0 1 2 3 15 cat | /usr/bin/spamc -u filter > /var/tmp/out.$$ if $EGREP -q "^X-Spam-Level: \*{$SPAMLIMIT,}" < /var/tmp/out.$$ then rm -f /var/tmp/out.$$ else $SENDMAIL "$@" < /var/tmp/out.$$ fi exit $? Thus when I remove that "-t" in SENDMAIL="/usr/sbin/sendmail -i -t", it results in the log snippet above. -- Milos Prudek
