David-

Great idea on the console run and thanks for --client option which made complete sense as soon as I read it. No progress though...

I shut down postfix, changed the aliases, stoped the daemon started by the startup script and relaunched the daemon in debug mode as you suggest, which got me the debugging. Debug options are: process spam fp classify

On the retraining:

Mail is being delivered to the binary with apparently the correct command:

trinityhamburg postfix/local[10951]: 4085C78BA4: to=<[EMAIL PROTECTED] >, relay=local, delay=0.48, delays=0.34/0.01/0/0.12, dsn=2.0.0, status=sent (delivered to command: /usr/bin/dspam --client --user root --class=spam --source=error)

The daemon running in debug mode never reported processing this message.

On the user parsing:

Parsing configs are:
ParseToHeaders on
#ChangeModeOnParse on
ChangeUserOnParse on

Here's what looks like a relevant section from the debug outupt:

10724: [11/08/2008 06:33:05] DSPAM Instance Startup
10724: [11/08/2008 06:33:05] input args: dspam --user dspam -- deliver=innocent,spam
10724: [11/08/2008 06:33:05] pass-thru args:
10724: [11/08/2008 06:33:05] processing user dspam
10724: [11/08/2008 06:33:05] uid = 112, euid = 112, gid = 117, egid = 117
10724: [11/08/2008 06:33:05] loading preferences for user dspam
10724: [11/08/2008 06:33:05] Loading preferences for uid 1
10724: [11/08/2008 06:33:05] Loading preferences for uid 0
10724: [11/08/2008 06:33:05] Loading preferences for uid 0
10724: [11/08/2008 06:33:05] default preferences empty. reverting to dspam.conf preferences.
10724: [11/08/2008 06:33:05] Loading preferences from dspam.conf


On Nov 7, 2008, at 8:25 AM, David Coffey wrote:

have you tried running dspam from the  console in debug mode?
sudo -u dspam /usr/bin/dspam --debug --daemon

also, do you have the signature in the header, or in the message?

spam:"|/usr/bin/dspam --user root --class=spam --source=error"
notspam:"|/usr/bin/dspam --user root --class=innocent --source=error"
You will also want to add the --client option to the alias commands

David



!DSPAM:1011,49157bcb150925616120485!


Reply via email to