Il 16/02/2010 21.34, Stevan Bajić ha scritto:
> I know it's not the same as you do since I call DSPAM directly and don't go 
> over my MTA.
> 
> Could you try to call directly DSPAM with the two messages like I did and 
> look if DSPAM is giving you error -5 on your setup?
> 
> Would it be possible to post your main.cf and master.cf so that we can see 
> how you have wired DSPAM into your Postfix? And would it be possible to post 
> your dspam.conf as well?
> 

Yeah, that's what i was trying to say in the first email. I tried to
resend it (copying the raw message) from other external mailboxes, and
can't get the same result.

> dspam --user ettore[at]serverkreos[dot]com --classify
--deliver=summary --stdout < ./C4F99B24C3.txt
X-DSPAM-Result: ettore[at]serverkreos[dot]com; result="Innocent";
class="Innocent"; probability=0.0000; confidence=0.99; signature=N/A
> dspam --user user[at]serverkreos[dot]com --classify --deliver=summary
--stdout < ./C4F99B24C3.txt
X-DSPAM-Result: user[at]serverkreos[dot]com; result="Spam";
class="Spam"; probability=1.0000; confidence=0.99; signature=N/A

> dspam --user ettore[at]serverkreos[dot]com --classify
--deliver=summary --stdout < ./CE168B240D.txt
X-DSPAM-Result: ettore[at]serverkreos[dot]com; result="Innocent";
class="Innocent"; probability=0.0000; confidence=0.99; signature=N/A
> dspam --user user[at]serverkreos[dot]com --classify --deliver=summary
--stdout < ./CE168B240D.txt
X-DSPAM-Result: user[at]serverkreos[dot]com; result="Spam";
class="Spam"; probability=1.0000; confidence=0.99; signature=N/A


Second user has different "training rules" (don't know the exact term to
define it) so dspam correctly tag the mail as spam.

Other config files you requested are attached.

NOTE: all files in /etc/dspam/conf.d are the default ones, except the
config of mysql db. If also mysql.conf is needed, i will post it.

Regards,
Ettore
> cat /etc/postfix/master.cf
smtp      inet  n       -       -       -       -       smtpd
smtps     inet  n       -       -       -       -       smtpd
  -o smtpd_tls_wrappermode=yes

pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr

tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp

relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=

showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache

uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)

dbmail-lmtp     unix    -       -       n       -       -       lmtp

dspam-lmtp      unix    -       n       n       -       -       lmtp -v

spfcheck  unix  -       n       n       -       0       spawn
   user=policyd-spf argv=/usr/sbin/postfix-policyd-spf-perl
> cat /etc/dspam/dspam.conf

Home /var/spool/dspam
StorageDriver /usr/lib/dspam/libmysql_drv.so

TrustedDeliveryAgent "/usr/bin/procmail" # not used

# deliver to dbmail-lmtp
DeliveryHost            127.0.0.1
DeliveryPort            24
DeliveryIdent           localhost
DeliveryProto           LMTP

EnablePlusedDetail      on
QuarantineMailbox       +Spam

OnFail unlearn

Trust root
Trust dspam
Trust www-data
Trust mail
Trust daemon
Trust amavis

TrainingMode teft
TestConditionalTraining on
Feature whitelist

Algorithm graham burton

Tokenizer chain

PValue bcr

WebStats on

Preference "trainingMode=TEFT"          # { TOE | TUM | TEFT | NOTRAIN } -> 
default:teft
Preference "spamAction=tag"             # { quarantine | tag | deliver } -> 
default:quarantine
Preference "spamSubject=[SPAM]"         # { string } -> default:[SPAM]
Preference "statisticalSedation=5"      # { 0 - 10 } -> default:0
Preference "enableBNR=on"               # { on | off } -> default:off
Preference "enableWhitelist=on"         # { on | off } -> default:on
Preference "signatureLocation=headers"  # { message | headers } -> 
default:message
Preference "tagSpam=off"                # { on | off }
Preference "tagNonspam=off"             # { on | off }
Preference "showFactors=off"            # { on | off } -> default:off
Preference "optIn=off"                  # { on | off }
Preference "optOut=off"                 # { on | off }
Preference "whitelistThreshold=10"      # { Integer } -> default:10
Preference "makeCorpus=off"             # { on | off } -> default:off
Preference "storeFragments=off"         # { on | off } -> default:off
Preference "localStore="                # { on | off } -> default:username
Preference "processorBias=on"           # { on | off } -> default:on
Preference "fallbackDomain=off"         # { on | off } -> default:off
Preference "trainPristine=off"          # { on | off } -> default:off
Preference "optOutClamAV=off"           # { on | off } -> default:off
Preference "ignoreRBLLookups=off"       # { on | off } -> default:off
Preference "RBLInoculate=off"           # { on | off } -> default: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

IgnoreHeader X-Spam-Status
IgnoreHeader X-Spam-Scanned
IgnoreHeader X-Spam-Checker-Version
IgnoreHeader X-Spam-Level
IgnoreHeader X-Virus-Scanner-Result
IgnoreHeader X-policyd-weight
IgnoreHeader Received-SPF

Notifications   off

LocalMX 127.0.0.1

SystemLog       on
UserLog         on

Opt out

ServerHost              127.0.0.1
#ServerPort             24
#ServerQueueSize        32
ServerPID               /var/run/dspam/dspam.pid
ServerMode standard
ServerParameters        "--deliver=innocent"
ServerDomainSocketPath  "/var/spool/postfix/tmp/dspam.sock"

ProcessorURLContext on

ProcessorBias on
StripRcptDomain off

# Include a directory with configuration items.
Include /etc/dspam/dspam.d/

## EOF
> cat /etc/postfix/main.cf
# Server address
myhostname = myserver.mydomain.com
myorigin = /etc/mailname
inet_interfaces = 123.123.123.123, 127.0.0.1
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128

# SMTP config
smtp_bind_address = 123.123.123.123

# SMTPd config
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_delay_reject = yes

# used to deliver local messages (from mynetworks) directly to dbmail-lmtp. All 
other sources go through dspam-lmtp
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, 
check_client_access pcre:/etc/postfix/dspam_filter_access
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, 
reject_unauth_destination, reject_invalid_helo_hostname, check_policy_service 
inet:127.0.0.1:12525, check_policy_service unix:private/spfcheck


# TLS parameters
... (don't think it's useful)

# Virtual domains
mydestination = mysql:/etc/postfix/transport.cf
mailbox_transport = dbmail-lmtp:127.0.0.1:24

# General config
biff = no
append_dot_mydomain = no
readme_directory = no
mailbox_size_limit = 0
message_size_limit = 50240000
recipient_delimiter = +
policy_time_limit = 3600

# Address rewriting and masquerading
remote_header_rewrite_domain = invalid.domain
canonical_maps = mysql:/etc/postfix/canonical.cf
local_recipient_maps = mysql:/etc/postfix/local_rcpt_maps.cf

# Dspam
dspam-lmtp_destination_recipient_limit = 1
dspam-spam_destination_recipient_limit = 1 # *NOT USED*
spam-ham_destination_recipient_limit = 1 # *NOT USED*

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to