----- Original Message ----- 
From: "Fernando Maule" <fernando.ma...@c3k.it>
To: <dspam-user@lists.sourceforge.net>
Sent: Sunday, August 26, 2012 4:35 PM
Subject: [Dspam-user] Can't understand how dspam global groups work?


>
>
> Hello all
>
> I am actually testing dspam because i need a more scalable
> solution than spamassassin.
> my actual setup is debian, postfix 2.7.1, dspam 3.10.2, dovecot,
> postfixadmin, mysql db.
>
> the uid of the virtual_uids table is auto_increment, and i've created a
> post-mailbox-add on postfixadmin to insert a new uid every time a new
> mailbox is created
>
> I have dspam configured as a transport
>
> dspam                 unix    -       n       n       -       - pipe
>   flags=Ru user=dspam argv=/usr/bin/dspam --client --deliver=innocent
> --user ${recipient} --mail-from=${sender}
>
> and i use check_client_access pcre in smtpd_client restrictions.
>
> /var/spool/dspam/group contains (and the Home in dspam.conf is correct)
> global:shared:*
>
> There is a virtual uid on mysql dspam database named "global" with uid
> 1, that i have trained with "dspam_train global spam ham" using some
> spamasssin spam.
> I have just one virtual user, "t...@lanserver.it" for testing.
>
> dspam actually *works*, but it seems i'm unable to get the global group
> work. I tried with merge and with shared but no way - even the debug
> doesn't show me that the user is being "associated" to that group
>
> The stats are correct for the global group:
>
> global            TP:  2350 TN:   485 FP:    15 FN:   201 SC:     0
> NC:     0
> t...@lanserver.it  TP:     0 TN:     3 FP:     0 FN:     0 SC:     0
> NC:     0
>
> Did I do something wrong? Misunderstood something?
>
> attached is a dspam debug log of a test email.
>
> Thanks!
> Fernando
>
>
>
>
> 20149: [08/23/2012 00:33:16] using database handle id 2
> 20149: [08/23/2012 00:33:16] handle locked
> 20149: [08/23/2012 00:33:16] DSPAM Instance Startup
> 20149: [08/23/2012 00:33:16] input args: dspam --deliver=innocent -d %u
> 20149: [08/23/2012 00:33:16] pass-thru args: -d %u
> 20149: [08/23/2012 00:33:16] processing user t...@lanserver.it
> 20149: [08/23/2012 00:33:16] uid = 104, euid = 104, gid = 110, egid = 110
> 20149: [08/23/2012 00:33:16] loading preferences for user 
> t...@lanserver.it
> 20149: [08/23/2012 00:33:16] _mysql_drv_getpwnam: successful returning
> struct for name: t...@lanserver.it
> 20149: [08/23/2012 00:33:16] Loading preferences for uid 2
> 20149: [08/23/2012 00:33:16] Loading preferences for uid 0
> 20149: [08/23/2012 00:33:16] Loading preferences for uid 0
> 20149: [08/23/2012 00:33:16] default preferences empty. reverting to
> dspam.conf preferences.
> 20149: [08/23/2012 00:33:16] Loading preferences from dspam.conf
> 20149: [08/23/2012 00:33:16] using
> /var/spool/dspam/opt-in/lanserver.it/test.dspam as path
> 20149: [08/23/2012 00:33:16] using
> /var/spool/dspam/opt-out/lanserver.it/test.nodspam as path
> 20149: [08/23/2012 00:33:16] sedation level set to: 5
> 20149: [08/23/2012 00:33:16] _mysql_drv_getpwnam: successful returning
> struct for name: t...@lanserver.it
> 20149: [08/23/2012 00:33:16] Connecting to 127.0.0.1:3310 for virus check
> 20149: [08/23/2012 00:33:16] Connecting to 127.0.0.1:1525 for virus
> stream transmission
> 20149: [08/23/2012 00:33:16] _mysql_drv_getpwnam returning cached name
> t...@lanserver.it.
> 20149: [08/23/2012 00:33:16] Loading 5 BNR patterns
> 20149: [08/23/2012 00:33:16] _mysql_drv_getpwnam returning cached name
> t...@lanserver.it.
> 20149: [08/23/2012 00:33:16] Whitelist threshold: 10
> 20149: [08/23/2012 00:33:16] [graham] [0.010000] From*Fernando Maule
> <fernando.ma...@c3k.it> (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [burton] [0.010000] From*Fernando Maule
> <fernando.ma...@c3k.it> (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [graham] [0.010000]
> From*Fernando+#+#+c3k.it (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [burton] [0.010000]
> From*Fernando+#+#+c3k.it (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [graham] [0.010000] From*Fernando+Maule
> (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [burton] [0.010000] From*Fernando+Maule
> (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [graham] [0.010000]
> From*Fernando+#+fernando.maule (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [burton] [0.010000]
> From*Fernando+#+fernando.maule (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [graham] [0.010000]
> From*fernando.maule+c3k.it (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [burton] [0.010000]
> From*fernando.maule+c3k.it (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [graham] [0.010000] From*Maule+#+c3k.it
> (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [burton] [0.010000] From*Maule+#+c3k.it
> (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [graham] [0.010000]
> From*Maule+fernando.maule (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [burton] [0.010000]
> From*Maule+fernando.maule (1frq, 0s, 3i)
> 20149: [08/23/2012 00:33:16] [graham] [0.010000] To*test+lanserver.it
> (1frq, 0s, 5i)
> 20149: [08/23/2012 00:33:16] [burton] [0.010000] To*test+lanserver.it
> (1frq, 0s, 5i)
> 20149: [08/23/2012 00:33:16] [graham] [0.400000]
> Return-Path*fernando.maule+c3k.it (1frq, 0s, 1i)
> 20149: [08/23/2012 00:33:16] [burton] [0.400000]
> Return-Path*fernando.maule+c3k.it (1frq, 0s, 1i)
> 20149: [08/23/2012 00:33:16] Graham-Bayesian Probability: 0.000000
> Samples: 9
> 20149: [08/23/2012 00:33:16] Burton-Bayesian Probability: 0.000000
> Samples: 9
> 20149: [08/23/2012 00:33:16] no factors specified; using default
> 20149: [08/23/2012 00:33:16] Result Confidence: 0.99
> 20149: [08/23/2012 00:33:16] _mysql_drv_getpwnam returning cached name
> t...@lanserver.it.
> 20149: [08/23/2012 00:33:16] Control: [10 10] [10 11] Delta: [0 1]
> 20149: [08/23/2012 00:33:16] total processing time: 0.00217s
> 20149: [08/23/2012 00:33:16] _mysql_drv_getpwnam returning cached name
> t...@lanserver.it.
> 20149: [08/23/2012 00:33:16] saving signature as 50355e2c201498137652470
> 20149: [08/23/2012 00:33:16] _mysql_drv_getpwnam returning cached name
> t...@lanserver.it.
> 20149: [08/23/2012 00:33:16] libdspam returned probability of 0.000000
> 20149: [08/23/2012 00:33:16] message result: NOT SPAM
> 20149: [08/23/2012 00:33:16] _mysql_drv_getpwnam returning cached name
> t...@lanserver.it.
> 20149: [08/23/2012 00:33:16] delivering message
> 20149: [08/23/2012 00:33:16] Establishing connection to 127.0.0.1:10026
> 20149: [08/23/2012 00:33:16] Connection established
> 20149: [08/23/2012 00:33:16] DSPAM Instance Shutdown.  Exit Code: 0
> 20149: [08/23/2012 00:33:16] checking trusted user list for dspam(104)
>
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Dspam-user mailing list
> Dspam-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspam-user
>
>

This is taken from gentoo howto but are not gentoo specific and should work 
in any distro. All this valus are common used but you may need change this 
to your own installation.

Global group setup:

useradd -g users -m -s /bin/bash -G dspam filter

File: /etc/mail/dspam/dspam.conf

Trust root
Trust mail
Trust mailnull
Trust smmsp
Trust daemon
#Trust nobody
#Trust majordomo
Trust filter

DeliveryHost       127.0.0.1
DeliveryPort        portNR
DeliveryIdent       localhost
DeliveryProto       SMTP

ServerPID /var/run/dspam/dspam.pid
ServerMode auto
ServerParameters        "--user filter --deliver=innocent"
ServerDomainSocketPath  "/var/run/dspam/dspam.sock" #

This is it!. I hope it helped on your way


Andreas 



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to