

# Deleting all messages marked spamīefore the recipe is given bear in mind this is strongly discouraged for two reasons, (1) young e-mail accounts may have a lot of variability in scoring and (2) no failure notice is generated. The following rules work for both rspamd and SpamAssassin. Introducing a high variability among several users may reduce SpamAssassin’s effectiveness as the token counts are removed to store new tokens. These special tokens may appear more readily in spam or non-spam.
Maildrop spamassassin code#
The following block of code passes the message off to SpamAssassin if it is smaller than 512 KB.Įxplanation: if the message size is smaller than 512 KB, hand it off to SpamAssassin. SpamAssassin is invoked from the global maildrop filter, /etc/maildroprc. rspamd filters before enqueueing a message whereas SpamAssassin occurs after enqueueing the message. Syntax and usage may be found in mailfilter(7) (opens new window).ĭepending upon spam filtering technology, there may be a separate "xfilter" call for external message filtering. Basic filtering recipes are provided below. Each message goes through two levels of filters: (1) global - processed first in /etc/maildroprc followed by (2) local per-user filters in $HOME/.mailfilter. Message filtering is done prior to delivery via maildrop. maildrop was chosen for syntactic familiarity with other services, but a message may be easily dispatched to another service for final delivery. maildrop (opens new window) is utilized as the LDA agent for Postfix. Local delivery agent ("LDA") handles last mile delivery of mail locally to the server. Selectively disabling per-user filtering.Globally disabling per-user filter files.If there are any questions, shoot while it's still fresh. you need to create a file /etc/courier-imap/maildirshared which contains: you'll need the ftp extauth script (with a small C program) to incorporate it with QMail/Courier, I'll upload it shortly QMail also comes with maildirmake (in /var/qmail/bin), DON'T use it, use /usr/bin/maildirmake instead qmail, disable direct delivery and or forward and use procmail to do it. procmailrc and not deliver directly, you have to modify user's. The final problem is to actually get Qmail to use.

procmailrc file, you have to setup an FTP server (I used PureFTPd), write an external auth script for it, setup Ingo to use it and to generate the file with right permissions and such. The hard part was to get my tagged mails filtered, default Ingo (that's the webmail's filter-making plugin) doesn't filter on mail arrival but when you click on Apply filters, which isn't all that hot solution, I wanted it on delivery which is more natural. I've setup two global shared IMAP folders (IsSpam and NotSpam) in which my users can move/copy wrongly tagged mails by SA which has a central filter, then a cron job pipes it to sa-learn and we all benefit. Finally got this combo working, it was more difficult then I hoped for.
