[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: spamassassin setup / exim



On Sat, Jan 04, 2003 at 11:55:12PM -0600, will trillich wrote:
| okay, i've browsed dman's spamassassin setup at
| 
| and i've got it, well, doing something...
| 
| it seems to add a whole new slew of headers, a blank line and
| then repeats the original headers and message:

| 	From will@serensoft.com Sat Jan 04 23:50:16 2003

mbox From_ line added by exim when it delivered the file to your
mailbox.  (either you're using mbox, or you have set the same option I
set to make each message in a maildir folder be a valid mbox folder
containing a single message)

| 	Return-path: <will@serensoft.com>
[..]

These headers are added by exim because the message (as it re-enters
exim) has no headers at all.  exim adds the headers to make the
message (minimally) complete.

| 	>From will@serensoft.com  Sat Jan  4 23:50:16 2003

mbox From_ line (leading with escape character added by exim
afterwards).  This From_ line was added by SA and is what causes the
entire problem -- it isn't the start of the message so exim sees the
whole thing as being the body of the message.

| 	Received: from duo ([192.168.1.2] helo=duo.lan)
[...]

Actual message (headers and all).

| aaugh!

Indeed.

| where'd i go wrong?

You're using an older version of spamassassin (the one in woody?)
which defaults to preparing the message to be cat-ted to an mbox
folder.  (originally SA wanted to do the delivery itself to a single
mbox folder)  It was a very bad feature and has since been removed.
To disable it:

--- cut ---
        Edit /etc/default/spamassassin to start 'spamd' at boot time and to
        <i>not</i> create user preferences files automatically and <i>not</i>
        add a "From " header at the top of the messages.  The "From " header
        will really break your mail because the "From " header is only for mbox
        mailboxes.

        <pre>
# Change to one to enable spamd
ENABLED=1
OPTIONS="-F 0"
        </pre>
--- cut ---


Put "-F 0" on spamd's command line.

-D

-- 
Bugs come in through open windows. Keep Windows shut!
 
http://dman.ddts.net/~dman/

Attachment: pgpSOYkrkWvfb.pgp
Description: PGP signature


Reply to: