Re: [Dovecot] Server side Sieve with virtual users
On 08/09/12 20:10, Luigi Rosa wrote:
Adrian Minta said the following on 09/08/2012 18:33:
Is there a way to implement server-side filters with Dovecot configured with virtual users (userbase in mysql, a single *NIX user account that owns /var/spool/mail and its content)?
Yes !
:)
And the webpage/wikipage with documentation about this is.... ?
Ciao, luigi
First step is to have a mail system that works without sieve. This is the hard part. Depending on your preferred distro here are two nice webpages for this: http://wiki.mediatemple.net/w/(ve):Install_Postfix_with_Dovecot_on_CentOS http://workaround.org/ispmail
Second step is to enable sieve, for witch you only need to uncomment the specific lines from dovecot.conf. For dovecot 1.2, you will have something like:
protocols = pop3 pop3s imap imaps managesieve protocol lda { ... mail_plugins: quota sieve } protocol managesieve { } plugin { ... sieve=~/.dovecot.sieve sieve_dir=~/sieve }
-- Best regards, Adrian Minta
Adrian Minta said the following on 09/08/2012 19:25:
First step is to have a mail system that works without sieve. This is the hard part.
Not for me. I have more than 20 customers with their own Centos Linux with Postfix and Dovecot compiled by me, and Mysql, apache, php from the distribution source and RoundCube.
protocols = pop3 pop3s imap imaps managesieve protocol lda { ... mail_plugins: quota sieve } protocol managesieve { } plugin { ... sieve=~/.dovecot.sieve sieve_dir=~/sieve }
That's the point: sieve_dir can be the 'root' of the maildir structure? Virtual users do not have their own home (~) directory.
If the sieve file is store in the 'root' maildir of each user, Dovecot uses the same single virtual (linux) user to access the maildir?
Ciao, luigi
-- / +--[Luigi Rosa]-- \
To define recursion, we must first define recursion.
On 08/09/12 20:37, Luigi Rosa wrote:
plugin { ... sieve=~/.dovecot.sieve sieve_dir=~/sieve }
That's the point: sieve_dir can be the 'root' of the maildir structure? Virtual users do not have their own home (~) directory.
If the sieve file is store in the 'root' maildir of each user, Dovecot uses the same single virtual (linux) user to access the maildir?
(~) is the account maildir, not the homedir of linux user.
-- Best regards, Adrian Minta
Adrian Minta said the following on 09/08/2012 19:46:
(~) is the account maildir, not the homedir of linux user.
Ok, thanks!
Ciao, luigi
-- / +--[Luigi Rosa]-- \
I went to the airport, with my ticket to Los Angeles. I brought three bags and told the Skycap "I want this on to go to Seattle, this one to St. Louis and this one to Chicago." He said "I'm sorry sir, but we can't do that." I said "Why not? You did it last time." --Henny Youngman
Am 09.08.2012 19:37, schrieb Luigi Rosa:
Adrian Minta said the following on 09/08/2012 19:25:
First step is to have a mail system that works without sieve. This is the hard part.
Not for me. I have more than 20 customers with their own Centos Linux with Postfix and Dovecot compiled by me, and Mysql, apache, php from the distribution source and RoundCube.
protocols = pop3 pop3s imap imaps managesieve protocol lda { ... mail_plugins: quota sieve } protocol managesieve { } plugin { ... sieve=~/.dovecot.sieve sieve_dir=~/sieve }
That's the point: sieve_dir can be the 'root' of the maildir structure? Virtual users do not have their own home (~) directory.
however they have a dovecot "home", with virtual users all mailboxes belong to i.e system user vmail, and their dovecot "home/mailbox" is taken out of the dovecot config
If the sieve file is store in the 'root' maildir of each user, Dovecot uses the same single virtual (linux) user to access the maildir?
Ciao, luigi
as far i remember , reading changelog, you can now store sieve rules in mysql too, this should solve any of such problems
-- Best Regards MfG Robert Schetterer
participants (3)
-
Adrian Minta
-
Luigi Rosa
-
Robert Schetterer