Thanks for your help ! ls -lah dspamc -rwxr-xr-x 1 root root 140K sep 10 2009 dspamc
stat dspamc File: `dspamc' Size: 143107 Blocks: 288 IO Block: 4096 fichier régulier Device: 801h/2049d Inode: 1243687 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2010-04-18 05:48:40.000000000 +0200 Modify: 2009-09-10 01:06:25.000000000 +0200 Change: 2009-09-10 01:06:25.000000000 +0200 ls -lah dspam -r-xr-xr-x 1 root mail 243K sep 10 2009 dspam stat dspam File: `dspam' Size: 248226 Blocks: 496 IO Block: 4096 fichier régulier Device: 801h/2049d Inode: 1243685 Links: 1 Access: (0555/-r-xr-xr-x) Uid: ( 0/ root) Gid: ( 12/ mail) Access: 2010-04-18 05:48:40.000000000 +0200 Modify: 2009-09-10 01:06:25.000000000 +0200 Change: 2009-09-19 01:02:53.000000000 +0200 I add pipe -v in master.cf. And : # 19/04/10 mailling list #ParseToHeaders on #ChangeModeOnParse on #ChangeUserOnParse full In dspam.conf For user postfix : ps -ef | grep postfix postfix 3638 14457 0 13:19 ? 00:00:00 pickup -l -t fifo -u root 14457 1 0 Apr16 ? 00:00:03 /opt/postfix/usr/lib/master postfix 14459 14457 0 Apr16 ? 00:00:01 qmgr -l -t fifo -u postfix 16667 14457 0 14:33 ? 00:00:00 anvil -l -t unix -u postfix 17301 14457 0 14:37 ? 00:00:00 smtpd -n smtp -t inet -u -o stress= -o content_filter=lmtp:unix:/tmp/dspam.sock postfix 17556 14457 0 14:38 ? 00:00:00 showq -t unix -u with this modification : ./dspam --daemon & Apr 19 14:49:47 osirix dspam[19661]: Unable to determine the destination user Apr 19 14:49:47 osirix dspam[19661]: DSPAM agent misconfigured: aborting So I put : ParseToHeaders on ChangeModeOnParse on ChangeUserOnParse full And it's ok ps -ef | grep dspam root 20395 14519 0 14:53 pts/4 00:00:00 ./dspam --daemon for this command : /opt/dspam/bin/dspamc --mode=teft --class=spam --source=error --user [your user name] < /path/to/the/saved/message The user egal the address mail ? I have multi-domain on my server mail Cordialement, Samuel SALSON Prestataire Administrateur Systèmes (PCIDSS) Pôle Technique/Production Informatique MONECAM -----Message d'origine----- De : Stevan Bajić [mailto:ste...@bajic.ch] Envoyé : lundi 19 avril 2010 12:40 À : SALSON Samuel-Anthony Objet : Re: [Dspam-user] [dspam with dovecot and postfix] error configuration On Mon, 19 Apr 2010 10:14:10 +0200 <salson.uma...@monecam.com> wrote: > > Hello, > Hallo, > ls -lah > > -rw-r--r-- 1 root root 12479 avr 16 12:07 transport > -rw-r--r-- 1 root root 12288 avr 16 12:09 transport.db > > > cat transport > > s...@zalteam.com dspam-retrain:spam > h...@zalteam.com dspam-retrain:innocent > Could you post the output from: # ls -lah /usr/bin/dspamc # stat /usr/bin/dspamc # ls -lah /usr/bin/dspam # stat /usr/bin/dspam Could you modify the master.cf entry to be (adding the "-v" parameter to the pipe command so that you get more verbose output from the call): dspam-retrain unix - n n - - pipe -v flags=Rhq user=root argv=/opt/dspam/bin/dspamc --mode=teft --class=${nexthop} --source=error --user ${sender} IMHO you don't need those parameters here: ParseToHeaders on ChangeModeOnParse on ChangeUserOnParse full You are anyway not using the standard DSPAM setup regarding an retrain alias. So ParseToHeaders, ChangeModeOnParse and ChangeUserOnParse is useless in your case. Would it be possible to tell me under which user you are running Postfix? Could you send me the whole Postfix log part showing the retraining and not just a subset? I mean the log from the moment where Postfix is logging the connect from your client till the end where Postfix is logging an error. Since you are using "MySQLUIDInSignature on" you could really drop that "--user ${sender}" part from master.cf when calling dspam-retrain and use something that is hard wired. DSPAM will anyway switch to the target user (DSPAM virtual UID 1 in your case if I see that right in the DSPAM signature). But this is just an note. It does not harm to have the "--user ${sender}" there. Would it be possible to copy the message in question into a file on the server and then call: /opt/dspam/bin/dspamc --mode=teft --class=spam --source=error --user [your user name] < /path/to/the/saved/message What do you get as an output? If you have DSPAM compiled with debug options then just add additionally "--debug" to the command line from above and look as well in the DSPAM debug log. Additionally to that could you press forward or reply on the message and then copy the message content into a file and repeat the step from above and tell me what output you get? > Cordialement, > > > Samuel SALSON > -- Kind Regards from Switzerland, Stevan Bajić > Prestataire Administrateur Systèmes (PCIDSS) > Pôle Technique/Production Informatique > MONECAM > > -----Message d'origine----- > De : Stevan Bajić [mailto:ste...@bajic.ch] > Envoyé : vendredi 16 avril 2010 18:16 > À : dspam-user@lists.sourceforge.net > Objet : Re: [Dspam-user] [dspam with dovecot and postfix] error configuration > > On Fri, 16 Apr 2010 16:38:01 +0200 > <salson.uma...@monecam.com> wrote: > > > Hello all, > > > > I use postfix (2.6.5) with mysql, dovecot and roundcube, all are on the > > same serveur centos 5.4 > > > > My dspam is 3.9.0 > > > > All the mails are read by dspam because all the mails have : > > !DSPAM:1,4bc84266127292053619437! > > > > I am use : > > http://sourceforge.net/apps/mediawiki/dspam/index.php?title=Integrate_DS > > PAM_into_the_Debian-based_ISPmail_setup > > > Can not read that page. Seems to be down. > > > > For dspam, just aditional information > > > > My dspam.conf : > > > > > > > > Home /opt/dspam/var/dspam > > StorageDriver /opt/dspam/lib/dspam/libmysql_drv.so > > DeliveryHost 127.0.0.1 > > DeliveryPort 25001 > > DeliveryIdent localhost > > DeliveryProto SMTP > > OnFail error > > Trust root > > Trust vmail > > Trust daemon > > DebugOpt process spam fp > > TrainingMode teft > > TestConditionalTraining on > > Feature whitelist > > Algorithm graham burton > > Tokenizer chain > > PValue bcr > > WebStats on > > Preference "signatureLocation=message" # 'message' or 'headers' > > Preference "showFactors=on" > > Preference "spamAction=tag" > > Preference "spamSubject=[SPAM]" > > AllowOverride trainingMode > > AllowOverride spamAction spamSubject > > AllowOverride statisticalSedation > > AllowOverride enableBNR > > AllowOverride enableWhitelist > > AllowOverride signatureLocation > > AllowOverride showFactors > > AllowOverride optIn optOut > > AllowOverride whitelistThreshold > > MySQLServer 127.0.0.1 > > MySQLPort 3306 > > MySQLUser dspam > > MySQLPass 258654JC2 > > MySQLDb dspam > > MySQLCompress true > > MySQLReconnect true > > MySQLConnectionCache 10 > > MySQLVirtualTable dspam_virtual_uids > > MySQLVirtualUIDField uid > > MySQLVirtualUsernameField username > > MySQLUIDInSignature on > > HashRecMax 98317 > > HashAutoExtend on > > HashMaxExtents 0 > > HashExtentSize 49157 > > HashPctIncrease 10 > > HashMaxSeek 10 > > HashConnectionCache 10 > > Notifications on > > PurgeSignatures 14 # Stale signatures > > PurgeNeutral 90 # Tokens with neutralish probabilities > > PurgeUnused 90 # Unused tokens > > PurgeHapaxes 30 # Tokens with less than 5 hits (hapaxes) > > PurgeHits1S 15 # Tokens with only 1 spam hit > > PurgeHits1I 15 # Tokens with only 1 innocent hit > > LocalMX 127.0.0.1 > > SystemLog on > > UserLog on > > Opt out > > ParseToHeaders on > > ChangeModeOnParse on > > ChangeUserOnParse full > > ServerHost 127.0.0.1 > > ServerPort 25000 > > ServerQueueSize 32 > > ServerPID /opt/dspam/var/dspam/dspam.pid > > ServerMode standard > > ServerParameters "--deliver=innocent -d %u" > > ServerIdent "localhost.localdomain" > > ServerDomainSocketPath "/tmp/dspam.sock" > > ProcessorURLContext on > > ProcessorBias on > > StripRcptDomain off > > > > > > In my master.cf : > > > > smtp inet n - n - - smtpd > > -o content_filter=lmtp:unix:/tmp/dspam.sock > > > > ###for dspam > > localhost:25001 inet n - - - - smtpd > > -o content_filter= > > -o > > receive_override_options=no_unknown_recipient_checks,no_header_body_chec > > ks > > -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 unix - n n - - pipe > > flags=Rhq user=root argv=/opt/dspam/bin/dspamc --client --mode=teft > > --class=${nexthop} --source=error --user ${sender} > > > When calling dspamc you don't need the "--client" switch. > > > > when i transfert a spam to s...@my-domain.com > > I have this error : > > > > Apr 16 16:36:12 osirix postfix/lmtp[8551]: 47C8314AC17: > > to=<s...@zalteam.com>, relay=osirix [/tmp/dspam.sock], delay=0.43, > > delays=0.03/0.01/0 > > /0.39, dsn=2.6.0, status=sent (250 2.6.0 <s...@zalteam.com> Message > > accepted for delivery) > > Apr 16 16:36:13 osirix postfix/qmgr[1468]: warning: > > private/dspam-retrain socket: malformed response > > Apr 16 16:36:13 osirix postfix/qmgr[1468]: warning: transport > > dspam-retrain failure -- see a previous warning/fatal/panic logfile > > record for the problem des > > cription > > > > > > same for h...@my-domain.com. > > > > Any idea ? > > > Somewhere in your Postfix you have a configuration that is rerouting > ham@/spam@ to the dspam-retrain service. Could you post the content of that > rewrite/transport/whatever file? > > > > Thanks in advance. > > > > Tyr > > > -- > Kind Regards from Switzerland, > > Stevan Bajić > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Dspam-user mailing list > Dspam-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspam-user ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user