On 08/08/10 15:26, Tom Hendrikx wrote: > On 08/08/10 14:00, Stevan Bajić wrote: >> On Sat, 07 Aug 2010 15:32:47 +0200 >> Tom Hendrikx <t...@whyscream.net> wrote: >> >>> On 07/08/10 14:58, Stevan Bajić wrote: >>>> On Sat, 07 Aug 2010 14:44:00 +0200 >>>> Tom Hendrikx <t...@whyscream.net> wrote: >>>> >>>>> Hi, >>>>> >>>> Hallo Tom, >>>> >>>>> After upgrading to 3.9.1-rc (and later git HEAD), I noticed lots of >>>>> errors in my logging: >>>>> >>>>> 2010-08-07T14:13:08+02:00 vmail dspam[13054]: bailing on error -2 >>>>> 2010-08-07T14:13:08+02:00 vmail dspam[13054]: process_message returned >>>>> error -5. delivering. >>>>> >>>>> When this started, headers were also no longer added to the delivered >>>>> messages. After some debugging I found this in the debug log: >>>>> >>>>> 13054: [08/07/2010 14:13:08] _pgsql_drv_getpwnam: returning NULL for >>>>> query on name: classicifation_user that returned a null result >>>>> 13054: [08/07/2010 14:13:08] _ds_getall_spamrecords: unable to >>>>> _pgsql_drv_getpwnam(classicifation_user) >>>>> 13054: [08/07/2010 14:13:08] _ds_getall_spamrecords() failed >>>>> 13054: [08/07/2010 14:13:08] user_classify() returned error -5 >>>>> 13054: [08/07/2010 14:13:08] destroying/freeing configuration >>>>> 13054: [08/07/2010 14:13:08] _pgsql_drv_getpwnam returning cached name >>>>> tomhe...@example.net. >>>>> 13054: [08/07/2010 14:13:08] destroying/freeing configuration >>>>> >>>>> classification_user was in my intial setup intended to contain 'global >>>>> classification' data, but I never got started to merging stuff into it. >>>>> The user exists in the pgsql backend (dspam_virtual_uids), but has no >>>>> training data there. >>>>> >> Are you sure that the user "classification_user" existed in >> dspam_virtual_uids? >> Could you post the content of your old group file? > > # cat /var/spool/dspam/group.away > groupname:classification:*classicifation_user > >> Could you post the output of "select * from dspam_virtual_uids where >> username = 'classification_user'"? > > vmail=# select * from dspam_virtual_uids; > uid | username > -----+------------------------ > 1 | classification_user > 2 | tomhe...@example.com > (2 rows) >
And a few minutes after sending the mail, I thought that I might have made a typo. And I did: classification_user != classicifation_user Sorry for the noise. However, I still think that an error message explaining the issue would help a lot. Error: processing message for user tomhe...@example.com failed: unable to find user 'classicifation_user' for peer classification. looks so much better than: bailing on error -2 process_message returned error -5. delivering. >> >> Do you have more lines from the log? I mean: Could you post more lines from >> the log from above? How can "_pgsql_drv_getpwnam(classicifation_user)" >> return NULL if the user exists/existed in dspam_virtual_uids? >> > > I created a new debug file, see attachment for complete output. > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > > > > _______________________________________________ > Dspam-devel mailing list > Dspam-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspam-devel -- Regards, Tom
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel