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

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: >

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

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

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

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

Re: sieve filter not working

2015-01-24 Thread Michael Williamson
On 1/24/15, Christian Kivalo ml+dove...@valo.at 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

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 michael.h.william...@gmail.com wrote: On 1/24/15, Christian Kivalo ml+dove...@valo.at wrote: home_mailbox = Maildir/ This tells postfix where to deliver the mails. dovecot is not

Re: sieve filter not working

2015-01-24 Thread Christian Kivalo
Am 23. Jänner 2015 22:02:06 MEZ, schrieb Michael Williamson michael.h.william...@gmail.com 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

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, not

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
On 1/23/15, Christian Kivalo ml+dove...@valo.at 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 type of message

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; }

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 the

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. Also

Re: sieve filter not working

2015-01-22 Thread Thomas Leuxner
* Michael Williamson michael.h.william...@gmail.com 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

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 .err