Tom Allison wrote:
> Trying to set up another server with dspam.
> The last one broke, olde hardware...
> 
> Let me start with the error:
> 
> status=deferred (connect to mydomainnamehere.com[/tmp/dspam.sock]: No
> such file or directory)
> 
> And then go to my configuration for postfix:
> 
> 127.0.0.1:10021 inet n   -       n      -       5      smtpd
>   -o content_filter=lmtp:unix:/tmp/dspam.sock
> 
> And lastly the configuration for dspam.
> 
>    egrep -v "(^$|^\#)" /etc/dspam/dspam.conf
> 
> Home /var/spool/dspam
> StorageDriver /usr/lib/dspam/libpgsql_drv.so
> DeliveryHost        127.0.0.1
> DeliveryPort        10027
> DeliveryIdent       localhost
> DeliveryProto       SMTP
> EnablePlusedDetail      on
> OnFail error
> Trust root
> Trust dspam
> Trust mail
> Trust mailnull
> Trust smmsp
> Trust daemon
> TrainingMode teft
> TestConditionalTraining on
> Feature sbph
> Feature noise
> Feature whitelist
> Feature tb=0
> Algorithm burton
> PValue markov
> Preference "spamAction=quarantine"
> Preference "signatureLocation=headers"  # 'message' or 'headers'
> Preference "showFactors=on"
> Preference "enableWhitelist=on"
> AllowOverride trainingMode
> AllowOverride enableWhitelist
> AllowOverride whitelistThreshold
> HashRecMax              98317
> HashAutoExtend          on
> HashMaxExtents          0
> HashExtentSize          49157
> HashMaxSeek             100
> 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
> ParseToHeaders on
> ChangeModeOnParse on
> ChangeUserOnParse full
> Broken case
> ServerQueueSize 32
> ServerPID              /var/run/dspam/dspam.pid
> ServerMode auto
> ServerParameters        "--deliver=innocent"
> ServerIdent             "localhost.localdomain"
> ServerDomainSocketPath  "/tmp/dspam.sock"
> ProcessorBias on
> Include /etc/dspam/dspam.d/

Well, I'm not expert enough to see the fault, but here's my setup:

# dspam --version
DSPAM Anti-Spam Suite 3.6.8 (agent/library)
Copyright (c) 2002-2006 Jonathan A. Zdziarski
http://dspam.nuclearelephant.com
DSPAM may be copied only under the terms of the GNU General Public
License, a copy of which can be found with the DSPAM distribution kit.
Configuration parameters: --prefix=/usr --sysconfdir=/etc
--with-dspam-home=/var/lib/dspam --mandir=/usr/share/man
--enable-preferences-extension --enable-daemon --enable-debug
--enable-clamav --enable-syslog


/etc/dspam.conf:
Home /var/lib/dspam
TrustedDeliveryAgent "/usr/lib/cyrus/bin/deliver"
DeliveryHost        127.0.0.1
DeliveryPort        10026
DeliveryIdent       localhost
DeliveryProto       SMTP
OnFail error
Trust root
Trust mail
Trust dspam
Trust wwwrun
TrainingMode teft
TestConditionalTraining on
Feature noise
Feature chained
Feature whitelist
Algorithm graham burton
PValue graham
ImprobabilityDrive on
Preference "spamAction=deliver"
Preference "signatureLocation=headers"  # 'message' or 'headers'
Preference "showFactors=off"
AllowOverride trainingMode
AllowOverride spamAction
AllowOverride spamSubject
AllowOverride statisticalSedation
AllowOverride enableBNR
AllowOverride enableWhitelist
AllowOverride signatureLocation
AllowOverride showFactors
AllowOverride optIn optOut
AllowOverride whitelistThreshold
HashRecMax              98317
HashAutoExtend          on
HashMaxExtents          0
HashExtentSize          49157
HashMaxSeek             100
HashConnectionCache     10
Lookup  "rabl.nuclearelephant.com"
RBLInoculate on
Notifications   off
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
TrainPristine on
Opt out
ClamAVPort      3310
ClamAVHost      127.0.0.1
ClamAVResponse  spam
ServerPID              /var/run/dspam.pid
ServerMode auto
ServerParameters        "--deliver=innocent"
ServerIdent             "mail.telcotec.se"
ServerDomainSocketPath  "/var/tmp/dspam.sock"
ClientHost      /var/tmp/dspam.sock
ProcessorBias on

/etc/postfix/master.cf:
[snip]
smtp inet n - n - - smtpd -o content_filter=lmtp:unix:/var/tmp/dspam.sock
[snip]
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
scache    unix  -       -       n       -       1       scache
[snip]

Hope this helps
/Lars

Reply via email to