add procmail support
procmail is a very flexible mail filter and processing tool and it is a shame that it is not integrated within plesk.
I need it to do some mail autoprocessing depending on subject and sender.
I am surprised that even with plesk 17 it is not already available.
There were some solutions for Qmail MTA in Plesk – https://talk.plesk.com/threads/how-to-setup-a-procmailrc-correctly.103810
In latest Plesk versions you can use modern Sieve mail filtering instead of outdated procmail. As you can see procmail support is not so popular feature here for many years, but if you request will be quite popular we will consider implementing this feature.
—
IG
-
Peter commented
Sieve's filtering options are far from what procmail can do.
I found that it should be quite easy to send all mails to procmail before doing anything else by modifying the .qmail file in a users mailbox folder.
Alas, plesk doesn't properly support this, because it tends to overwrite the .qmail file without notice.Why doesn't plesk at least support procmail by allowing some override mechanism?
It doesn't need any GUI supported procmail, but just a user configurable hook.
Recently, I get overwhelming warnings from logwatch due to tight ssh filters I have set up with fail2ban.
I want to filter these intelligently before getting them into my mailbox, so that I can detect real errors without the obfuscating less critical stuff.
So far I haven't found anything else than procmail to achieve this. -
Peter commented
I had a look on sieve and I don't see it can replace procmail.
Sieve can do simple mail filtering but it cannot feed the mail to a pipe so that it can be post processed by other programs.
Thus I cannot trigger specific actions depending on mail contents.
So Sieve can do something but is not as sophisticated as procmail. -
Peter commented
Thank you for your answer.
Checking on google for plesk and procmail I find quite a number of articles.
This shows to me that there is well demand for mail filtering with plesk even though it may not show up as popular on the plesk forums.
Regarding sieve vs. procmaiI found the following article https://lwn.net/Articles/416901/ which discusses the obsolescence of procmail
Nevertheless I will have a look at sieve to see if I can switch to that.
As far as I see sieve support is mainly for dovecot and I am on courier imap right now.
Can I switch to dovecot transparently or do I have to change/reconfigure e.g. my mail and/or mailman configuration?