Autofile Junk for all users
How would I get the rule
if header :contains "X-spam-flag" "YES" { fileinto "Junk"; }
To apply to all users mail at delivery time?
On 2018-05-23 15:11, @lbutlr wrote:
How would I get the rule
if header :contains "X-spam-flag" "YES" { fileinto "Junk"; }
To apply to all users mail at delivery time?
Use the default scripts, works well for me.
https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration#Visible_Default_Scr...
The Dovecot wiki is really helpful, have a look on it ;-)
-- André
On 23 May 2018, at 16.17, André Rodier <andre@rodier.me> wrote:
On 2018-05-23 15:11, @lbutlr wrote:
How would I get the rule if header :contains "X-spam-flag" "YES" { fileinto "Junk"; } To apply to all users mail at delivery time?
Use the default scripts, works well for me.
https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration#Visible_Default_Scr...
The Dovecot wiki is really helpful, have a look on it ;-)
Actually in this case it's probably better to use sieve_before setting for the spam filter, as users are allowed to overwrite default sieve.
Sami
On 2018-05-23 (08:17 MDT), André Rodier <andre@rodier.me> wrote:
Use the default scripts, works well for me.
https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration#Visible_Default_Scr...
The Dovecot wiki is really helpful, have a look on it ;-)
Excellent, that's exactly what I want.
Question from that page, my users are (almost) all virtual, so what should i put in the sieve = line for the file: and active= fields since they don't really have home folders, just what is in mail_location?
sieve = file:/usr/local/virtual/%u/sieve;active=/usr/local/virtual/%u/.dovecot.sieve
Because it seems that would make this files look like mail folders?
Also, since not all mailers are virtual, I have
mail_location = maildir:~/Maildir
for the local users, so how would i account for both these possible "home" folders?
It's not a big deal right now because I haven't setup roundcube yet for user sieve files, but I'd like to get all the ducks in a row...
-- 'It's a lovely morning, lads,' he said. 'I feel like a million dollars. Don't you?' There was a murmur of reluctant agreement. 'Good,' said Cohen. 'Let's go and get some.' --Interesting Times
This is why you should use separate folder for mails under mail_home. ---Aki TuomiDovecot oy -------- Original message --------From: "@lbutlr" <kremels@kreme.com> Date: 23/05/2018 21:03 (GMT+02:00) To: dovecot <dovecot@dovecot.org> Subject: Re: Autofile Junk for all users On 2018-05-23 (08:17 MDT), André Rodier <andre@rodier.me> wrote:
Use the default scripts, works well for me.
https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration#Visible_Default_Scr...
The Dovecot wiki is really helpful, have a look on it ;-)
Excellent, that's exactly what I want.
Question from that page, my users are (almost) all virtual, so what should i put in the sieve = line for the file: and active= fields since they don't really have home folders, just what is in mail_location?
sieve = file:/usr/local/virtual/%u/sieve;active=/usr/local/virtual/%u/.dovecot.sieve
Because it seems that would make this files look like mail folders?
Also, since not all mailers are virtual, I have
mail_location = maildir:~/Maildir
for the local users, so how would i account for both these possible "home" folders?
It's not a big deal right now because I haven't setup roundcube yet for user sieve files, but I'd like to get all the ducks in a row...
-- 'It's a lovely morning, lads,' he said. 'I feel like a million dollars. Don't you?' There was a murmur of reluctant agreement. 'Good,' said Cohen. 'Let's go and get some.' --Interesting Times
participants (4)
-
@lbutlr
-
Aki Tuomi
-
André Rodier
-
Sami Ketola