You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Kevin Webb <ke...@tackledesign.com> on 2004/11/09 17:37:07 UTC

spamd/spamc postfix trouble

Hi,

I've configured my Postfix install to use the spamd/spamc configuration 
as per:

http://hurring.com/howto/postfix/postfix_spamd/

However, I am running to trouble receiving emails with attachments when 
they are sent to an alias account with several forwarding address. 
Here's the error message I'm getting on these emails:

Nov  9 09:16:35 plain postfix/pipe[30229]: BF2F62E8219: 
to=<je...@tackledesign.com>, orig_to=<in...@tackledesign.com>, 
relay=spamassassin, delay=1, status=bounced (command line usage error. 
Command output: Usage: spamc [options] < message  -B: BSMTP mode - 
expect input to be a single SMTP-formatted message -c: check only - 
print score/threshold and exit code set to 0 if message is not spam, 1 
if spam -r: report if spam - print report for spam messages -R: report - 
print report for all messages -y: symbols - print only the names of the 
tests hit -d host: specify host to connect to  [default: localhost] -e 
command [args]: Command to output to instead of stdout. MUST BE THE LAST 
OPTION. -f: fallback safely - in case of comms error, dump original 
message unchanges instead of setting exitcode -h: print this help 
message -p port: specify port for connection [default: 783] -s size: 
specify max message size, any bigger and it will be returned w/out 
processing [default: 250k] -S: use SSL to talk to spamd -u username: s

I've looked around on the web but have not seen any mention of this 
particular problem.

Any thoughts?

Kevin


Re: spamd/spamc postfix trouble

Posted by Jason Philbrook <jp...@saucer.midcoast.com>.
Unless you have a reason you haven't specified, you may want to run 
spamassassin via procmail instead of via postfix. With this method, it 
will skip large attachments and still deliver the mail.

0. Enable procmail delivery in postfix
jp@lbs:/etc/postfix> grep procmail main.cf
mailbox_command = /usr/bin/procmail -a "$EXTENSION"

1. Setup a /etc/procmailrc file
jp@lbs:/etc/postfix> cat /etc/procmailrc 
VERBOSE=on
ORGMAIL=Mailbox
MAILDIR=$HOME
#LOGFILE=procmail-log

DROPPRIVS=yes
:0fw
* < 128000
| spamc

:f:lock-file
*
| /usr/bin/formail -a "Status: O"

INCLUDERC=.procmailrc

:0:lockfile
* ^TO*
Mailbox

2. Restart Postfix.

3. Enjoy a (coffee|soda|beer|tea).

On Tue, Nov 09, 2004 at 11:37:07AM -0500, Kevin Webb wrote:
> Hi,
> 
> I've configured my Postfix install to use the spamd/spamc configuration 
> as per:
> 
> http://hurring.com/howto/postfix/postfix_spamd/
> 
> However, I am running to trouble receiving emails with attachments when 
> they are sent to an alias account with several forwarding address. 
> Here's the error message I'm getting on these emails:
> 
> Nov  9 09:16:35 plain postfix/pipe[30229]: BF2F62E8219: 
> to=<je...@tackledesign.com>, orig_to=<in...@tackledesign.com>, 
> relay=spamassassin, delay=1, status=bounced (command line usage error. 
> Command output: Usage: spamc [options] < message  -B: BSMTP mode - 
> expect input to be a single SMTP-formatted message -c: check only - 
> print score/threshold and exit code set to 0 if message is not spam, 1 
> if spam -r: report if spam - print report for spam messages -R: report - 
> print report for all messages -y: symbols - print only the names of the 
> tests hit -d host: specify host to connect to  [default: localhost] -e 
> command [args]: Command to output to instead of stdout. MUST BE THE LAST 
> OPTION. -f: fallback safely - in case of comms error, dump original 
> message unchanges instead of setting exitcode -h: print this help 
> message -p port: specify port for connection [default: 783] -s size: 
> specify max message size, any bigger and it will be returned w/out 
> processing [default: 250k] -S: use SSL to talk to spamd -u username: s
> 
> I've looked around on the web but have not seen any mention of this 
> particular problem.
> 
> Any thoughts?
> 
> Kevin

-- 
/*
Jason Philbrook   |   Midcoast Internet Solutions - Internet Access,
    KB1IOJ        |  Hosting, and TCP-IP Networks for Midcoast Maine
 http://f64.nu/   |             http://www.midcoast.com/
*/