Use dovecot-lda instead of procmail in Virtualmin/Usermin

3 posts / 0 new
Last post
#1 Tue, 09/27/2011 - 02:41
Murz

Use dovecot-lda instead of procmail in Virtualmin/Usermin

I have user postfix and dovecot for mail in my server (debian 6.0). My users needs to manually configure mail filters via Sieve filters. This can be done only if I change in postfix mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME to mailbox_command = /usr/lib/dovecot/dovecot-lda -d "$USER"

But after this change spamassasign and claimav stops checking mail.

How I can change config to got those checks working?

And does User plan to add support for Sieve filters instead of procmail rules?

Tue, 09/27/2011 - 09:04
andreychek

Howdy,

That's correct -- the Spam and Virus checking is done via procmail... so without that enabled, those won't work properly.

Sorry, there isn't really a way around that, and there isn't support for Sieve filters rather than procmail rules.

The only idea I can think of is that you could manually configure SpamAssassin and Clam to run outside of procmail. I don't have a recommended way of making that work... but taking control of spam and virus scanning away from Virtualmin (and procmail), and manually configuring it elsewhere, is the only way you'd be able to make that work.

-Eric

Mon, 10/10/2011 - 11:29
sfatula

We took out all virtualmin spam and virus control and went the way you asked about, so, it is possible. No changes to Virtualmin code. Without their stack, it eliminates procmail, the lookup daemon, spamassassin. We added dspam, and dovecot delivery via lmtp (and thus sieve). It's WAY faster, and, cleaner. Takes a fair amount of effort though, way too complicated to detail here. What is lost is virtualmin "control", and I suppose a usermin screen that configured procmail. But the utilization is an order of magnitude better. So, if you really want to do that, take the time to do so on a test machine, you'll get there and it's more than worth it.

I wish virtualmin would consider adding dovecot lmtp or lda delivery, without procmail. That whole process is just slow.

Topic locked