Hello, I have the following problems configuring DSPAM with Postfix.
If I forward a "retrain mail" to <spam-user@domain> with ParseToHeaders on ChangeModeOnParse on ChangeUserOnParse full dspam works as expected, but the sender returned mail doesn't contain the msgtag.spam footer. But I would like a single spam|notspam alias mail, so I set MySQLUIDInSignature on ParseToHeaders on ChangeModeOnParse on ChangeUserOnParse off In this case the forward email to the single email for all users <spam-train@domain> is correctly accepted and the message retrained as I see in user log: 1319191369 M Test Comune <testcom...@example.com> 13,4ea13b2b119611447418843 Fwd: U're under arrest Retrained <4ea1434a.5020...@example.com> (I see above also on web gui) But the dspam doesn't return the mail to sender, and syslog claims: Oct 21 12:02:49 postfix/smtpd[14944]: A041B84702: client=cu160013.csi.it[10.10.160.13] Oct 21 12:02:49 postfix/cleanup[14947]: A041B84702: message-id=<4ea1434a.5020...@example.com> Oct 21 12:02:49 postfix/qmgr[10131]: A041B84702: from=<testcom...@example.com>, size=3395, nrcpt=1 (queue active) Oct 21 12:02:49 postfix/smtpd[14944]: disconnect from cu160013.csi.it[10.10.160.13] Oct 21 12:02:49 postfix/smtpd[14950]: connect from localhost.localdomain[127.0.0.1] Oct 21 12:02:50 postfix/smtpd[14950]: 1ADA68470A: client=localhost.localdomain[127.0.0.1] Oct 21 12:02:50 postfix/cleanup[14947]: 1ADA68470A: message-id=<4ea1434a.5020...@example.com> Oct 21 12:02:50 postfix/qmgr[10131]: 1ADA68470A: from=<testcom...@example.com>, size=3597, nrcpt=1 (queue active) Oct 21 12:02:50 postfix/smtpd[14950]: disconnect from localhost.localdomain[127.0.0.1] Oct 21 12:02:50 postfix/lmtp[14948]: A041B84702: to=<spam-tr...@example.com>, relay=127.0.0.1[127.0.0.1]:24, delay=0.82, delays=0.25/0.02/0.04/0.51, dsn=2.6.0, status=sent (250 2.6.0 <spam-tr...@example.com> Message accepted for delivery) Oct 21 12:02:50 postfix/qmgr[10131]: A041B84702: removed Oct 21 12:02:50 dspam[14933]: Signature retrieval for '13,4ea13b2b119611447418843' failed Oct 21 12:02:50 dspam[14933]: Unable to find a valid signature. Aborting. Oct 21 12:02:50 dspam[14933]: process_message returned error -5. dropping message. If I also add ChangeUserOnParse full then dspam send the returned email, but it sends it to strange inexistent rctp-to chars. Of course, all work well during dspam checking and delivery of non-training mails (not starting with spam-|notspam-). Signature added and delivery from dspam to MTA is successful. Could you help me? Thank you very much for every hints. Here's the postfix master: smtp inet n - n - 1 postscreen smtpd pass - - n - 200 smtpd -o content_filter=lmtp-dspam:[127.0.0.1]:24 -o receive_override_options=no_address_mappings [...] lmtp-dspam unix - - n - 32 lmtp -o lmtp_data_done_timeout=1200 -o lmtp_send_xforward_command=yes -o disable_dns_lookups=yes -o max_use=20 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks_style=host -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks And this is dspam.conf: Home /var/lib/dspam StorageDriver /usr/lib64/dspam/libmysql_drv.so DeliveryHost 127.0.0.1 DeliveryPort 10025 DeliveryIdent localhost DeliveryProto SMTP OnFail error Trust dspam Trust postfix Trust test...@o.it Debug * DebugOpt process spam fp TrainingMode tum TestConditionalTraining on Feature noise Feature whitelist Feature tb=0 Algorithm graham burton Tokenizer osb PValue bcr WebStats on ImprobabilityDrive on Preference "dailyQuarantineSummary=off" Preference "ignoreGroups=off" AllowOverride enableBNR AllowOverride enableWhitelist AllowOverride fallbackDomain AllowOverride ignoreGroups AllowOverride ignoreRBLLookups AllowOverride localStore AllowOverride makeCorpus AllowOverride optIn AllowOverride optOut AllowOverride optOutClamAV AllowOverride processorBias AllowOverride RBLInoculate AllowOverride showFactors AllowOverride signatureLocation AllowOverride spamAction AllowOverride spamSubject AllowOverride statisticalSedation AllowOverride storeFragments AllowOverride tagNonspam AllowOverride tagSpam AllowOverride trainPristine AllowOverride trainingMode AllowOverride whitelistThreshold AllowOverride dailyQuarantineSummary MySQLServer test.it MySQLPort 3313 MySQLUser dspam MySQLPass <pass> MySQLDb dspamkk MySQLCompress true MySQLReconnect true MySQLUIDInSignature on HashRecMax 98317 HashAutoExtend on HashMaxExtents 0 HashExtentSize 49157 HashPctIncrease 10 HashMaxSeek 10 HashConnectionCache 10 IgnoreHeader X-Virus-Scanned IgnoreHeader X-Spam-Flag IgnoreHeader X-Spam-Score IgnoreHeader X-Spam-Level IgnoreHeader X-Spam-Status IgnoreHeader X-Sieve Notifications off LocalMX 127.0.0.1 SystemLog on UserLog on Opt in TrackSources spam nonspam virus ParseToHeaders on ChangeModeOnParse on ChangeUserOnParse off Broken lineStripping MaxMessageSize 4194304 ServerPort 24 ServerQueueSize 32 ServerPID /var/run/dspam/dspam.pid ServerMode auto ServerPass.Servercas "<omissis>" ServerParameters "--deliver=innocent,spam -d %u" ServerIdent "localhost.localdomain" ClientHost 127.0.0.1 ClientPort 24 ClientIdent "<omissis>@Servercas" ProcessorURLContext on ProcessorBias on StripRcptDomain off Best Regards -- Marco ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user