• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Horde Ingo, qmail, spamassassin, procmail

D

dkarlovi

Guest
Finally got this combo working, it was more difficult then I hoped for. 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. This was the easy part.

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.

So, if you want Ingo to write your .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 final problem is to actually get Qmail to use .procmailrc and not deliver directly, you have to modify user's .qmail, disable direct delivery and or forward and use procmail to do it.

Here are some helpful URLs:
http://www.qmailinfo.org/index.php/Horde-Procmail-Filters
http://wiki.apache.org/spamassassin/SiteWideBayesSetup
http://www.chrisbeach.co.uk/view/tech/mail_filtering_using_procmail_in_qmail_under_plesk
http://www.courier-mta.org/?maildirmake.html

And hints:
- QMail also comes with maildirmake (in /var/qmail/bin), DON'T use it, use /usr/bin/maildirmake instead
- you'll need the ftp extauth script (with a small C program) to incorporate it with QMail/Courier, I'll upload it shortly
- you need to create a file /etc/courier-imap/maildirshared which contains:
SomeName<TAB>/path/to/shared/folder
(it's easy to overlook)

If there are any questions, shoot while it's still fresh. :)
 
right, i realized this only afterwards. good solution, will try to set it up in the next days, but with maildrop instead of procmail :)
 
right, i realized this only afterwards. good solution, will try to set it up in the next days, but with maildrop instead of procmail :)

As long as Ingo can make a maildrop recipe, there's no difference what you use. :) I've been using this setup ever since I posted the original message, it works so well that it should get included in Plesk itself, IMHO.
 
Back
Top