Fernando Rodriguez skrev, on 02-02-2008 21:03:

Tony, is it possible to get from you the rpms  for centos 4.x also how you
implemented the dspam solution

[...]

I have antiquated dspam rpms for RHEL4, better to get the RHEL5/FC6 srpm and rebuild on your platform - I'm not sure about the MySQL version on RHEL4, though - but it should work. This is all Postfix stuff, by the way. My present PF version is 2.5.0.

They're at ftp://ipd50aa34e.speed.planet.nl/, which is my home FC6 machine.

The set up is that dspam runs as daemon content filter between the last two of three smtpd listeners and PF then hands the mail to the Courier maildrop LDA which delivers to IMAP mail directories:

[...]

:10025 inet n - n - 100 smtpd
        -o content_filter=lmtp:[127.0.0.1]:24
        -o lmtp_send_xforward_command=yes
        -o lmtp_destination_concurrency_limit=5
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_error_sleep_time=0
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o disable_mime_output_conversion=yes
:10026 inet n - n - 100 smtpd
        -o content_filter=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_error_sleep_time=0
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o receive_override_options=no_unknown_recipient_checks
        -o smtpd_milters=inet:localhost:10004
        -o milter_default_action=accept
        -o milter_macro_daemon_name=ORIGINATING
        -o disable_mime_output_conversion=yes

[...]

The milter is dkim-milter 2.4.3

[...]

maildrop        unix            -       n       n       -       -       pipe
        flags=Rhu user=vmail
argv=/usr/bin/maildrop -w 80 -d ${user} ${sender} ${recipient} ${extension}

[...]

As stated there is no GUI. maildrop filters to each user's IMAP dspam quarantine directory with a [dspam] header and the user moves to a dspam misjudged directory for retraining if dspam has made a judgment mistake.

A cron job runs every so often to look for misjudged mail and there are cron-based routines to look for unread quarantine messages and chide users, etc.

dspam on all rigs runs MySQL 5.0 and uses a shared group. dspam.conf:

Home /var/lib/dspam
StorageDriver /usr/lib/libmysql_drv.so
DeliveryHost        127.0.0.1
DeliveryPort        10026
DeliveryIdent       dspam-out
DeliveryProto       SMTP
FallbackDomains on
OnFail error
Trust root
Trust nobody
Debug *
DebugOpt process spam fp innocent
TrainingMode teft
TestConditionalTraining on
Tokenizer chain
Feature tb=1
Feature whitelist
Feature noise
Feature tb=0
Feature whitelist
Feature noise
Algorithm graham burton
PValue graham
SupressWebStats on
ImprobabilityDrive on
Preference "signatureLocation=headers"  # 'message' or 'headers'
AllowOverride trainingMode
AllowOverride spamAction spamSubject
AllowOverride statisticalSedation
AllowOverride enableBNR
AllowOverride enableWhitelist
AllowOverride showFactors
AllowOverride optIn optOut
AllowOverride whitelistThreshold
AllowOverride makeCorpus
AllowOverride fallbackDomain
AllowOverride trainingMode
MySQLServer     /var/lib/mysql/mysql.sock
MySQLUser               dspam
MySQLPass               dspam
MySQLDb                 dspamdb
MySQLConnectionCache    10
IgnoreHeader DomainKey-Signature
IgnoreHeader DKIM-Signature
IgnoreHeader X-DKIM
IgnoreHeader X-Virus-Scanned
IgnoreHeader Delivered-To
IgnoreHeader In-Reply-To
IgnoreHeader X-OriginalArrivalTime
IgnoreHeader X-Disclaimer
IgnoreHeader X-Mailman-Approved-At
IgnoreHeader Archive
IgnoreHeader List-Post
IgnoreHeader List-Subscribe
IgnoreHeader List-Unsubscribe
IgnoreHeader List-Help
IgnoreHeader List-Id
IgnoreHeader Message-ID
IgnoreHeader Subject
IgnoreHeader Precedence
IgnoreHeader X-DSPAM-Signature
IgnoreHeader X-DSPAM-Probability
IgnoreHeader X-DSPAM-Improbability
IgnoreHeader X-DSPAM-Confidence
IgnoreHeader X-DSPAM-Processed
IgnoreHeader X-DSPAM-Reclassified-As
IgnoreHeader X-DSPAM-Result
Notifications   on
PurgeSignatures 21          # 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 192.168.0.2 213.75.3.22 213.10.163.78
SystemLog on
UserLog   on
Opt out
TrackSources spam
Broken lineStripping
MaxMessageSize 1024000
ServerHost              127.0.0.1
ServerPort              24
ServerQueueSize 32
ServerPID               /var/run/dspam.pid
ServerMode standard
ServerParameters       "--deliver=innocent,spam -d %u"
ServerIdent            "dspam-in"
ProcessorBias on

Steve has a number of problems with the above dspam.conf, but it runs fine in more or less the same configuration on my rigs.

Thanks!

--Tonni

--
Tony Earnshaw
Email: tonni at hetnet dot nl

Reply via email to