On Sun, 06 Jun 2010 08:14:09 -0600
Ben <bugrepor...@vescentphotonics.com> wrote:

> I have a fresh install of Debian Lenny with postfix and dovecot. I'm
> using postfix and dovecot configured to use virtual users via ldap. I
> installed dspam 3.9 from http://packages.kirya.net/. I have postfix
> configured to send incoming mail to dspam for scanning. This part works
> fine, but when I try to reclassify spam/not spam with:
> 
> cat emailmessage | usr/bin/dspam --source=error --class=innocent
> --user=bugreporter
> 
there is no "=" between "--user" and "bugreporter" and probably you want to add 
an "/" infront of the dspam command. The whole line should be:
cat emailmessage | /usr/bin/dspam --source=error --class=innocent --user 
bugreporter

or
/usr/bin/dspam --source=error --class=innocent --user bugreporter < emailmessage


> where emailmessage is the Maildir file of an email that has been scanned
> by DSpam and has the X-DSPAM headers, etc.
> 
> I get in /var/log/mail.err:
> 
> Jun  6 07:57:54 newserver dspam[31990]: Unable to determine the
> destination user
> Jun  6 07:57:54 newserver dspam[31990]: DSPAM agent misconfigured:
> aborting
> 
> I've done lots of googling and see lots of report of this error, but I
> can't figure out what exactly it means or a solution for me. I tried
> different variations, emails on the --user option, but no luck. I've run
> dspam as root, as dspam, etc. 
> 
> I believe the rest of dspam is working fine. For example:
> 
> newserver:/home/bluey# dspam_stats 
> dspam             TP:     0 TN:     1 FP:     0 FN:     0 SC:     0 NC:
> 0
> newtest           TP:     0 TN:     1 FP:     0 FN:     0 SC:     0 NC:
> 0
> dpa               TP:     0 TN:     1 FP:     0 FN:     0 SC:     0 NC:
> 0
> bugreporter             TP:     0 TN:     3 FP:     0 FN:     0 SC:    0
> NC:     0
> 
> Could this have to do with using virtual users for postfix / dovecot? 
> 
No.


> Below are some postfix config stuff I use that may be relevant. 
> 
> /etc/postfix/master.conf:
> 
> dspam   unix    -       n       n       -       10      pipe
>   flags=Ru user=dspam argv=/usr/bin/dspam --deliver=innocent,spam --user
> $user -i -f $sender -- $recipient
> 
> dspam-retrain unix - n n - - pipe
>   flags=Rhq user=dspam argv=/usr/bin/dspam --source=error --class=
> $nexthop --user=$user
> 
There is the problem. You again have a "=" at the "--user" switch. That is 
wrong. The line should probably be:
dspam-retrain unix - n n - - pipe
  flags=Rhq user=dspam argv=/usr/bin/dspam --source=error --class=$nexthop 
--user $user


> 
> where dspam-retrain is called by mail sent to spam@ or ham@ which is
> trigged by the dovecot-antispam plugin. I get same error as from command
> line use above of dspam 
> 
> I also tried:
> 
> dspam-retrain   unix    -       n       n       -       10      pipe
>   flags=Ru user=dspam argv=/usr/local/bin/dspam-retrain $nexthop $sender
> $recipient
> 
> where /usr/local/bin/dspam-retrain is from
> http://dspamwiki.expass.de/DspamRetrainScript
>
That script is not able to cope with spam@ or h...@. If you want that script to 
work then change the script or change the sender to spam-....@.... or 
ham-...@.... Just alone h...@... or s...@.... will not be processed correctly 
with the above script.


> , but again, the same Unable to determine the destination user: error.
> Is there is way to get more debugging information. I tried the --debug
> option, but it didn't make a difference.
> 
> Any help / suggestions appreciated. 
> 
> Thanks,
> 
> Ben
> 
-- 
Kind Regards from Switzerland,

Stevan Bajić

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to