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.
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.