On 08-12-11 23:40, Ronald L. Rosson Jr. wrote:
> 
> To complicate things the OS is OSX 10.7.2 and as you can tell from the
> master.cf attached dovecot does the delivery to the end user. On a side
> note when I try to match the setup posted at
> (http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:dspam#users_management)
> what I end up with is this in my mail.log 
> 
>     transport private/dspam: Connection refused
>
> All pointers to get this working correctly are greatly appreciated. :)
> Thank you for looking into this.
>

Gettin this work means that you need to run dspam as a daemon, and
configure dspam to listen on the locations you need. The referenced
documentation uses localhost:10033, but your setup wants to use a socket
located in /var/spool/postfix/private/dspam

You will need to set this in dspam.conf with ServerHost and ServerPort
(for tcp sockets) or ServerDomainSocketPath (for unix socket). But since
you seem to have worked around this issue by calling the dspam binary
from the line in master.cf directly. This is probably easier to setup
for now, but is not really suited for much traffic. Anyway, we'll try to
fix your current setup with the master.cf calling dspam directly, so
leave the daemon configuration for the future.

Most logically, the transport you have defined in master.cf is not used
when the recipient is an alias. You did not add postfix main.cf stuff
the defines when e-mail is directed to the dspam transport.

Please include this, and again, debug output of dspam when processing
mail to an alias.

> 
> Below  is my dspam.conf
> 
> 
>     Home /var/spool/dspam
>     StorageDriver /usr/local/lib/dspam/libpgsql_drv.so
>     DeliveryHost127.0.0.1
>     DeliveryPort10026
>     DeliveryIdentlocalhost
>     DeliveryProtoSMTP
>     PlusedCharacter+
>     PlusedUserLowercaseon
>     OnFail error
>     Trust root
>     Trust _dspam
>     Trust _postfix
>     Trust _www
>     Trust apache
>     Trust mail
>     Trust mailnull
>     Trust smmsp
>     Trust daemon
>     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=quarantine"# { 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=on"# { 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
>     Preference "notifications=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
>     AllowOverride notifications
>     PgSQLServer             127.0.0.1
>     PgSQLPort               5432
>     PgSQLUser               myuser
>     PgSQLPass               mypassword
>     PgSQLDb         dspam
>     HashRecMax98317
>     HashAutoExtendon
>     HashMaxExtents0
>     HashExtentSize49157
>     HashPctIncrease10
>     HashMaxSeek10
>     Notificationson
>     PurgeSignatures 14# Stale signatures
>     PurgeNeutral90# Tokens with neutralish probabilities
>     PurgeUnused90# Unused tokens
>     PurgeHapaxes30# Tokens with less than 5 hits (hapaxes)
>     PurgeHits1S15# Tokens with only 1 spam hit
>     PurgeHits1I15# Tokens with only 1 innocent hit
>     SystemLogon
>     UserLogon
>     TrainPristine off
>     Opt in
>     ParseToHeaders on
>     ChangeModeOnParse on
>     ChangeUserOnParse full
>     Broken case
>     ProcessorURLContext on
>     ProcessorBias on
>     StripRcptDomain off
> 
> 
> Below is my master.cf from postfix
> 
>     smtp      inet  n       -       n       -       1       postscreen
>     smtpd     pass  -       -       n       -       -       smtpd
>     dnsblog   unix  -       -       n       -       0       dnsblog
>     tlsproxy  unix  -       -       n       -       0       tlsproxy
>     submission inet n       -       n       -       -       smtpd
>       -o smtpd_tls_security_level=encrypt
>     smtp      unix  -       -       n       -       -       smtp
>     pickup    fifo  n       -       n       60      1       pickup
>       -o content_filter=
>     cleanup   unix  n       -       n       -       0       cleanup
>     qmgr      fifo  n       -       n       300     1       qmgr
>     tlsmgr    unix  -       -       n       1000?   1       tlsmgr
>     rewrite   unix  -       -       n       -       -       trivial-rewrite
>     bounce    unix  -       -       n       -       0       bounce
>     defer     unix  -       -       n       -       0       bounce
>     trace     unix  -       -       n       -       0       bounce
>     verify    unix  -       -       n       -       1       verify
>     sacl-cache unix -       -       n       -       1       sacl-cache
>     flush     unix  n       -       n       1000?   0       flush
>     proxymap  unix  -       -       n       -       -       proxymap
>     proxywrite unix -       -       n       -       1       proxymap
>     relay     unix  -       -       n       -       -       smtp
>     -o smtp_fallback_relay=
>     showq     unix  n       -       n       -       -       showq
>     error     unix  -       -       n       -       -       error
>     retry     unix  -       -       n       -       -       error
>     discard   unix  -       -       n       -       -       discard
>     local     unix  -       n       n       -       -       local
>     virtual   unix  -       n       n       -       -       virtual
>     lmtp      unix  -       -       n       -       -       lmtp
>     anvil     unix  -       -       n       -       1       anvil
>     scache    unix  -       -       n       -       1       scache
>     dovecot   unix  -       n       n       -       25      pipe
>       flags=DRhu user=_dovecot:mail
>     argv=/usr/libexec/dovecot/dovecot-lda -d ${user}
>     dspam      unix  -       n       n       -       10      pipe
>       flags=Ru user=_dspam argv=/usr/local/bin/dspam --deliver=innocent
>     --user ${recipient} -i -f $sender -- $recipient
>     127.0.0.1:10026 inet n - n - - smtpd
>        -o content_filter=
>        -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 smtpd_data_restrictions=reject_unauth_pipelining
>        -o smtpd_end_of_data_restrictions=
>        -o smtpd_restriction_classes=
>        -o mynetworks=127.0.0.0/8
>        -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,no_milters
>        -o local_header_rewrite_clients=
>        -o smtpd_milters=
>        -o local_recipient_maps=
>        -o relay_recipient_maps=
> 
> 
> 
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of 
> discussion for anyone considering optimizing the pricing and packaging model 
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> 
> 
> 
> _______________________________________________
> Dspam-user mailing list
> Dspam-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspam-user


------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to