Hello Stevan, sorry for the late reply, I just got back in town..

My Dspam setup is like this.

Dspam was compiled with the following options:
<---- snipped ----->

PREFIX=/usr/local/mail
MAILER_GROUP=mailer
MAILER_USER=mailer


if [ ! -f "./configure" ]
then
    ./autogen.sh
fi

./configure \
--prefix=$PREFIX \
--bindir=$PREFIX/bin \
--sysconfdir=/etc/mail \
--libdir=$PREFIX/lib \
--includedir=$PREFIX/include \
--mandir=$PREFIX/man \
--docdir=$PREFIX/doc/dspam \
--enable-long-usernames \
--enable-clamav \
--enable-syslog \
--enable-virtual-users \
--enable-large-scale \
--enable-daemon \
--enable-spam-delivery \
--enable-delivery-to-stdout \
--enable-preferences-extension \
--enable-whitelist \
--with-delivery-agent=/usr/sbin/sendmail \
--with-storage-driver=mysql_drv \
--with-mysql-libraries=/usr/local/mysql/lib \
--with-mysql-includes=/usr/local/mysql/include \
--with-dspam-home=/data/dspam \
--with-dspam-owner=$MAILER_USER \
--with-dspam-group=$MAILER_GROUP \
--with-dspam-home-owner=$MAILER_USER \
--with-dspam-home-group=$MAILER_GROUP \
--with-logfile=/var/log/dspam.log \
--with-logdir=/data/dspam/log \
--disable-mysql4-initialization

make

make install
<---- snipped ----->

Dspam tables for MySQL were used from the source
dspam-3.9.0/src/tools.mysql_drv/
they have the same table structure as for Dsapm 3.8.x and earlier version.

Dspam dspam.conf is this:
<---- snipped ----->

Home /data/dspam

TrustedDeliveryAgent       "/usr/sbin/sendmail"
UntrustedDeliveryAgent       "/usr/sbin/sendmail"

DeliveryHost        127.0.0.1
DeliveryPort        10026
DeliveryIdent       mail.my_server.com
DeliveryProto       SMTP

QuarantineAgent "/usr/local/mail/libexec/dovecot/deliver -d %u"
QuarantineMailbox       +Spam

OnFail error

Trust root
Trust mail
Trust maildrop
Trust mailer
Trust postfix
Trust dovecot
Trust daemon

TrainingMode teft
TestConditionalTraining on
Feature whitelist

Algorithm graham burton
Tokenizer chain
PValue bcr

Preference "signatureLocation=headers"
Preference "showFactors=on"
Preference "spamSubject=[SPAM]"

AllowOverride localStore

MySQLServer            /tmp/mysql.sock
MySQLPort               3306
MySQLUser               mailswamp
MySQLPass               mailswamp
MySQLDb                 mailswamp
MySQLCompress      true
MySQLConnectionCache    10
MySQLUIDInSignature    on

HashRecMax             98317
HashAutoExtend        on
HashMaxExtents        0
HashExtentSize          49157
HashPctIncrease        10
HashMaxSeek           10
HashConnectionCache     10

Notifications   off

PurgeSignature  off
PurgeNeutral   90
PurgeUnused    off
PurgeHapaxes   off
PurgeHits1S    off
PurgeHits1I    off

SystemLog on
UserLog   on

ParseToHeaders on
ChangeModeOnParse on
ChangeUserOnParse full

Broken lineStripping

ClamAVPort      3310
ClamAVHost      127.0.0.1
ClamAVResponse  spam

ServerQueueSize 32
ServerPID              /var/run/dspam.pid
ServerMode auto
ServerParameters    "--deliver=innocent,spam"
ServerIdent             "my_server.com"
ServerDomainSocketPath  "/tmp/dspam.sock"

ProcessorURLContext on
ProcessorBias on

<---- snipped ----->

Dspam integration with Postfix is done like this:

Postfix main.cf:
<---- snipped ----->

transport_maps  =
proxy:mysql:/etc/postfix/sql/dspam_spam_transport_maps_sql,                     
                                     

                            
proxy:mysql:/etc/postfix/sql/dspam_ham_transport_maps_sql

<---- snipped ----->

dspam_spam_transport_maps table contains this information:
email                               transport         
s...@domain1.com      dspam-retrain:spam
s...@domain2.com      dspam-retrain:spam
s...@domain3.com      dspam-retrain:spam
and so on and so forth . . .

dspam_spam_transport_maps table contains this information:
email                               transport         
h...@domain1.com      dspam-retrain:innocent
h...@domain2.com      dspam-retrain:innocent
h...@domain3.com      dspam-retrain:innocent
and so on and so forth . . .

Postfix master.cf
<---- snipped ----->

# SMTP / SMTPS configuration with dspam (Working)
smtp        inet        n       -       n       -       -       smtpd
        -o content_filter=lmtp:unix:/tmp/dspam.sock

465         inet        n       -       n       -       -       smtpd
        -o smtpd_tls_ask_ccert=yes -o smtpd_tls_req_ccert=no
        -o content_filter=lmtp:unix:/tmp/dspam.sock

# SMTP Reinjection
localhost:10026 inet    n       -       n       -       -       smtpd
        -o content_filter=
        -o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_helo_restrictions=
        -o smtpd_client_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o smtpd_authorized_xforward_hosts=127.0.0.0/8

# Dspam retrain (non-daemon mode)
dspam-retrain  unix  -   n       n       -       -      pipe
        flags=Rhq user=mailer argv=/usr/local/mail/bin/dspam --client
--user mailer --class=$nexthop --source=error

<---- snipped ----->

Exactly the same configuration worked perfectly with Dspam 3.8.x and
earlier version.

Now, every attempt to forward SPAM message for re-training to
s...@my_domain.com
produces these errors in /var/log/dspam.log:

<---- snipped ----->

21400: [05/12/2010 11:47:11] Signature retrieval for '%s' failed
21400: [05/12/2010 11:47:11] Unable to find a valid signature. Aborting.
21400: [05/12/2010 11:47:11] process_message returned error %d. 
dropping message.

<---- snipped ----->

Nothing is being learned by Dspam anymore and worst of all
submitted messages are being Auto-Whitelisted by Dspam.

Could you please give me a hint or pont to the information on how to
solve this Dspam
SPAM training problem.

Thank you very much in advance,

Alex

On 05/12/10 14:12, Stevan Bajić wrote:
> On Wed, 12 May 2010 12:27:33 -0700
> Alex <ds...@mailswamp.com> wrote:
>
>   
>> Hello folks,
>> In the previous versions of Dspam I had it working with Postfix and MySQL
>> to train for falsely identified spam/innocent messages.
>>
>> When I installed newest Dspam 3.9.0
>> I'm getting these messages in /var/log/dspam.log
>> 21400: [05/12/2010 11:47:11] Signature retrieval for '%s' failed
>> 21400: [05/12/2010 11:47:11] Unable to find a valid signature. Aborting.
>> 21400: [05/12/2010 11:47:11] process_message returned error %d. 
>> dropping message.
>>
>> And nothing is being learned by Dspam anymore.
>>
>> I turned on debugging option in my Postrix master.cf like this:
>> dspam-retrain  unix  -   n       n       -       -      pipe
>>         flags=Rhq user=mailer argv=/usr/local/mail/bin/dspam --client
>> --debug --user mailer --class=$nexthop --source=error
>>
>> And checked its corresponding query in sql.errors. The query was
>> executable and produced results, so obviously it wasn't the case.
>>
>> Could somebody enlighten me if something was drastically changed in
>> Dspam 3.9.0 version, so I cannot train it anymore with my existing
>> configuration
>> which worked perfectly for Dspam 3.8
>>
>>     
> DSPAM 3.8 had some issues that we fixed. Maybe you are used something that 
> worked for you in 3.8 but is now fixed in 3.9 and not any more beheiving the 
> way you expect it but in generall it is working in 3.9 the way it always 
> should have and it is working the way described in the documentation.
>
> are you able to give us some more information about your setup? are you able 
> to post the message you are sending to that dspam-retrain service in raw 
> format so that we can examine it? are you able to post your dspam.conf? 
> etc....
>
>   
>> Thank you in advance,
>>
>> Alex
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Dspam-user mailing list
>> Dspam-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspam-user
>>
>>     
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Dspam-user mailing list
> Dspam-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspam-user
>
>   



------------------------------------------------------------------------------

_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to