Re: sieve filter not working

2019-02-20 Thread Stephan Bosch via dovecot
Op 20-2-2019 om 9:30 schreef subin ks via dovecot: I've Dovecot and dovecot-sieve v 2.2.27 installed on a Debian 9.6. I'm trying to set a Sieve filter which will redirect all emails from `info` (i.e. .info) TLD to another email. This is the filter: require ["regex"]; # rule:[test] if header

Re: sieve filter not working -- matchtype

2019-02-20 Thread Martin Johannes Dauser via dovecot
Scott, you are right. And I guess it's computed faster too. # rule:[test] if header :matches "from" "*.info" { redirect "su...@domain.com"; } Even a TLD like "*.superinfos" may be included: "*@*.*info*" Greetings Martin On Wed, 2019-02-20 at 08:47 +, Scott M. via dovecot wrote: > Wh

Re: sieve filter not working -- wildcard missing

2019-02-20 Thread Martin Johannes Dauser via dovecot
On Wed, 2019-02-20 at 10:37 +0100, Martin Johannes Dauser via dovecot wrote: > On Wed, 2019-02-20 at 10:18 +0100, Martin Johannes Dauser via dovecot > wrote: > > Hi! > > > > You forgot the wildcard '.*' (= Match zero or more instances of any > > single character, except newline) > > > > require [

Re: sieve filter not working -- wildcard missing

2019-02-20 Thread Martin Johannes Dauser via dovecot
On Wed, 2019-02-20 at 10:18 +0100, Martin Johannes Dauser via dovecot wrote: > Hi! > > You forgot the wildcard '.*' (= Match zero or more instances of any > single character, except newline) > > require ["regex"]; > # rule:[test] > if header :regex "from" ".*info$" > { >   redirect "su...@dom

Re: sieve filter not working -- wildcard missing

2019-02-20 Thread Martin Johannes Dauser via dovecot
Hi! You forgot the wildcard '.*' (= Match zero or more instances of any single character, except newline) require ["regex"]; # rule:[test] if header :regex "from" ".*info$" {   redirect "su...@domain.com"; } With this rule, you are filtering emails from toplevel domain '*.info' or new doma

Re: sieve filter not working

2019-02-20 Thread Scott M. via dovecot
Why do you use regex ? You can just use matches: https://p5r.uk/blog/2011/sieve-tutorial.html#matchtype (https://p5r.uk/blog/2011/sieve-tutorial.html#matchtype) On Wed, Feb 20, 2019 at 03:31 AM, subin ks via dovecot wrote: I've Dovecot and dovecot-sieve v 2.2.27 installed on a Debian 9.6. I'm

sieve filter not working

2019-02-20 Thread subin ks via dovecot
I've Dovecot and dovecot-sieve v 2.2.27 installed on a Debian 9.6. I'm trying to set a Sieve filter which will redirect all emails from `info` (i.e. .info) TLD to another email. This is the filter: require ["regex"]; # rule:[test] if header :regex "from" "info$" { redirect "su...@domain.com"; } I

Re: sieve filter not working

2015-01-24 Thread Christian Kivalo
On 2015-01-24 17:13, Michael Williamson wrote: OK, thanks. Now I ask, am I better off enabling dovecot lda with the sieve spam filter, or using postfix for filter? I'd definitly go for dovecot lda, that way you can use sieve to filter your mails. I am using lmtp from postfix to dovecot foll

Re: sieve filter not working

2015-01-24 Thread David Mehler
Hello, I'd use Dovecot Lda for delivery if you want to use sieve. Hth Dave. On 1/24/15, Michael Williamson wrote: > On 1/24/15, Christian Kivalo wrote: > >>>home_mailbox = Maildir/ >> This tells postfix where to deliver the mails. dovecot is not configured >> to >> delivet mails. >> >> Take a

Re: sieve filter not working

2015-01-24 Thread Michael Williamson
On 1/24/15, Christian Kivalo wrote: >>home_mailbox = Maildir/ > This tells postfix where to deliver the mails. dovecot is not configured to > delivet mails. > > Take a look at dovecot wiki there are examples of how to incorporate dovecot > lda into thendelivery process. > >>> I believe dovecot ha

Re: sieve filter not working

2015-01-24 Thread Christian Kivalo
Am 23. Jänner 2015 22:02:06 MEZ, schrieb Michael Williamson Hello, >> Another question: >> Local mail delivery of received mail from external sources does >indeed >> work? > >Yes. > That is good. >> If so, was that log excerpt in one of the former mails an example of >> such delivery? > >Ther

Re: sieve filter not working

2015-01-23 Thread Michael Williamson
On 1/23/15, Christian Kivalo wrote: > On 2015-01-23 18:04, Michael Williamson wrote: >> HI, > Hello, > >> >>> You could set >>> >>> syslog_facility = local5 >>> >>> and have all the log messages in the messages file. >> >> According to the output of command >> >> # doveadm log find >> >> every ty

Re: sieve filter not working

2015-01-23 Thread Christian Kivalo
On 2015-01-23 18:04, Michael Williamson wrote: HI, Hello, You could set syslog_facility = local5 and have all the log messages in the messages file. According to the output of command # doveadm log find every type of message goes to the file I was looking at, "/var/spool/maillog".

Re: sieve filter not working

2015-01-23 Thread Michael Williamson
HI, > You could set > > syslog_facility = local5 > > and have all the log messages in the messages file. According to the output of command # doveadm log find every type of message goes to the file I was looking at, "/var/spool/maillog". >> So, is it postfix doing the local mail delivery, no

Re: sieve filter not working

2015-01-23 Thread Oscar del Rio
On 22/01/2015 2:11 PM, Michael Williamson wrote: I put a sieve filter in users home directory, "/home/user/.dovecot.sieve": require ["fileinto"]; # Move spam to spam folder if header :contains "X-Spam-Flag" ["YES"] { fileinto "Maildir/.SPAM"; stop; } http://wiki2.dovecot.org/Pigeonhole/S

Re: sieve filter not working

2015-01-22 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 22 Jan 2015, Michael Williamson wrote: require ["fileinto"]; # Move spam to spam folder if header :contains "X-Spam-Flag" ["YES"] { fileinto "Maildir/.SPAM"; stop; } It is not working. How do I diagnose the problem? There should be an

Re: sieve filter not working

2015-01-22 Thread Christian Kivalo
On 2015-01-22 22:41, Michael Williamson wrote: Hi, Hello, OK. I tried your suggestion. I modified the dovecot config file "10-logging.conf", like so: log_path = syslog and mail_debug = yes You could set syslog_facility = local5 and have all the log messages in the messages file. Als

Re: sieve filter not working

2015-01-22 Thread Michael Williamson
Hi, OK. I tried your suggestion. I modified the dovecot config file "10-logging.conf", like so: log_path = syslog and mail_debug = yes It appears that the logging goes to "/var/log/maillog", not "messages" as I expected. Restarting service dovecot produces info in the "maillog" file showing

Re: sieve filter not working

2015-01-22 Thread Thomas Leuxner
* Michael Williamson 2015.01.22 20:11: > I have dovecot 2.0.9 running on a CentOS 6.6 email server for a small This is a notorious version. Not only is it hopelessly outdated, it used to contain broken features way back... > require ["fileinto"]; > # Move spam to spam folder > if header :conta

sieve filter not working

2015-01-22 Thread Michael Williamson
Hi, I have a question. I have dovecot 2.0.9 running on a CentOS 6.6 email server for a small department, ~15 users. amavis and postfix are also enabled. It appears that amavis invokes spamassassin, which tags incoming spam email. All email is then put into users local inbox directory, regardless

[Dovecot] Sieve filter not working

2011-12-21 Thread Lars Larsen
Hi, Dovecot, the "deliver" LDA and managesieve are all working. However, the sieve rules do not seem to work: System info: CenOS 2.6.32-131.21.1.el6.x86_64 #1 SMP dovecot-pigeonhole-2.0.9-2.el6_1.1.x86_64 dovecot-2.0.9-2.el6_1.1.x86_64 /etc/dovecot/dovecot.conf: mbox_write_locks = fcntl proto