mk-fg / dspam-milter Goto Github PK
View Code? Open in Web Editor NEWpymilter-based daemon to safely classify email using dspam
License: Do What The F*ck You Want To Public License
pymilter-based daemon to safely classify email using dspam
License: Do What The F*ck You Want To Public License
Hi,
Currently using postfix and dspam. The dspam is setup only to add [SPAM] on the subject header. Very similar to your setup of never rejecting emails, which I like.
When dspam makes a mistake, the email is sent to [email protected] or [email protected]
Would like to change the current setup to use dspam-milter. May I have some advice on how to change the setup to use dspam-milter?
For the incoming emails, I understand the setup mentioned in the readme.
smtpd_milters = unix:/tmp/dspam_milter.sock
non_smtpd_milters = unix:/tmp/dspam_milter.sock
How about the training setup when dspam gets it wrong? Would it be the same as the current setup?
The current setup is as follows.
For incoming emails. (main.cf)
smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10031,
permit_mynetworks,
permit_sasl_authenticated,
...
...
check_client_access pcre:/etc/postfix/dspam_incoming
dspam_incoming file has,
/./ FILTER lmtp:unix:/var/run/dspam/dspam.sock
then,
spam_dspam_destination_recipient_limit = 1
notspam_dspam_destination_recipient_limit = 1
For reclassification when there is an error by dspam. (master.cf)
#This is for mail coming back from dspam
127.0.0.1:10028 inet 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
-o smtpd_milters=
#end dspam
#handle dspam retrain
#This path is used when a user sends in a piece of mail and wants to classify it as SPAM
spam_dspam unix - n n - - pipe
flags=Rhq user=vmail argv=/usr/bin/dspam --user vmail --class=spam --source=error
#This path is used when a user sends in a piece of mail and wants to classify it as INNOCENT
notspam_dspam unix - n n - - pipe
flags=Rhq user=vmail argv=/usr/bin/dspam --user vmail --class=innocent --source=error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.