Mmmh, spoke too fast.
It's better but not fixed.

Moving a mail to spam folder :

==> ../dspam/dspam.debug <==
6329: [01/07/2015 23:14:38] DSPAM Instance Startup
6329: [01/07/2015 23:14:38] input args: /usr/bin/dspam --deliver --user 
XXXXXX --source=error --signature=54ac0490181051388914240 --class=spam
6329: [01/07/2015 23:14:38] pass-thru args: --deliver
6329: [01/07/2015 23:14:38] processing user XXXXXX
6329: [01/07/2015 23:14:38] uid = 5000, euid = 5000, gid = 5000, egid = 119
6329: [01/07/2015 23:14:38] loading preferences for user XXXXXX
6329: [01/07/2015 23:14:38] _mysql_drv_getpwnam: successful returning 
struct for name: XXXXXX
6329: [01/07/2015 23:14:38] Loading preferences for uid 16
6329: [01/07/2015 23:14:38] Loading preferences for uid 0
6329: [01/07/2015 23:14:38] Loading preferences for uid 0
6329: [01/07/2015 23:14:38] default preferences empty. reverting to 
dspam.conf preferences.
6329: [01/07/2015 23:14:38] Loading preferences from dspam.conf
6329: [01/07/2015 23:14:38] using /var/spool/dspam/opt-in/XXXX/XXX.dspam 
as path
6329: [01/07/2015 23:14:38] using 
/var/spool/dspam/opt-out/XXXX/XXXX.nodspam as path
6329: [01/07/2015 23:14:38] sedation level set to: 0
6329: [01/07/2015 23:14:38] _mysql_drv_getpwnam: successful returning 
struct for name: XXXXXX
6329: [01/07/2015 23:14:38] _mysql_drv_getpwnam returning cached name 
XXXXXX.
6329: [01/07/2015 23:14:38] _ds_get_signature: mysql_fetch_row() failed
6329: [01/07/2015 23:14:38] _mysql_drv_getpwnam returning cached name 
XXXXXX.
6329: [01/07/2015 23:14:38] DSPAM Instance Shutdown.  Exit Code: 0

==> mail.log <==
Jan  7 23:14:38 rendez-vous dspam[6329]: Signature retrieval for 
'54ac0490181051388914240' failed
Jan  7 23:14:38 rendez-vous dspam[6329]: Unable to find a valid 
signature. Aborting.
Jan  7 23:14:38 rendez-vous dspam[6329]: process_message returned error 
-5.  dropping message.

(tested with mysql access definied in mysql.conf)
SELECT *
FROM `dspam_signature_data`
WHERE `signature` = '54ac0490181051388914240'

uid     signature     data     length     created_on
143     54ac0490181051388914240     [BLOB - 3,9 Kio]    3968 2015-01-06

I don't understand why _ds_get_signature can't find a valid signature 
since it exists in database.

   Guillaume Hilt

Le 07/01/2015 23:07, Guillaume a écrit :
> Ok, I managed to compile it.
>
> It's working fine now :
> 5372: [01/07/2015 23:05:40] input args: /usr/bin/dspam --deliver --user
> XXXXXX --source=error --signature=54ac5c40181054136714457 --class=innocent
> 5372: [01/07/2015 23:05:40] pass-thru args: --deliver
> 5372: [01/07/2015 23:05:40] processing user XXXX
> 5372: [01/07/2015 23:05:40] uid = 5000, euid = 5000, gid = 5000, egid = 119
>
> All I dit was editing src/dspam.c line 177 from
> tmp = "--source=error;--signature=%s";
>
> To :
> tmp = "--source=error;--signature=%%s";
>
>     Guillaume Hilt
>
> Le 07/01/2015 13:28, Guillaume a écrit :
>> In dovecot-antispam source dspam.c, there's this line :
>> tmp = "--source=error;--signature=%s";
>>
>> Isn't my issue related to it ? It sure looks like what's added at the
>> end of the input args
>> Shouldn't it be %%s ?
>>
>> When i'm trying to compile dovecot-antispam sources (having added the
>> maybe missing%) I got this error :
>> No rule to make target `aux.c', needed by `depend'
>>
>>      Guillaume Hilt
>>
>> Le 06/01/2015 12:36, Guillaume a écrit :
>>> Same issue as I said :)
>>>
>>> I updated my dovecot antispam_dspam_args parameter to this, hoping
>>> to remove the second signature parameter : --deliver;--user;%u
>>>
>>> But it's still the same issue.
>>>
>>>
>>>       Guillaume Hilt
>>>
>>> Le 06/01/2015 12:25, Tom Hendrikx a écrit :
>>>>> I updated my dovecot antispam_dspam_args parameter to this, hoping
>>>>> to remove the second signature parameter : --deliver;--user;%u
>>>>>
>>>>> But it still the same issue. Maybe this extra signature=%s comes
>>>> >from dovecot-antispam ?
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming! The Go Parallel Website,
>>> sponsored by Intel and developed in partnership with Slashdot Media, is your
>>> hub for all things parallel software development, from weekly thought
>>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>>> look and join the conversation now. http://goparallel.sourceforge.net
>>> _______________________________________________
>>> Dspam-user mailing list
>>> Dspam-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/dspam-user
>>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming! The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net
>> _______________________________________________
>> Dspam-user mailing list
>> Dspam-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspam-user
>>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Dspam-user mailing list
> Dspam-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspam-user
>


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to