AW: Monitoring Dovecot Replication

2021-02-18 Thread MK
Hello David, that's the thing I want to know. To build a script to check this is not the problem. In the first check I have started with " doveadm replicator status" search for " Waiting 'failed' requests" and if this is > 0 then give me a failure. But if I have this in my monitoring then I hav

Re: Sieve regex error "invalid preceding regular expression"

2021-02-18 Thread ml
On Fri, 19 Feb 2021 08:46:49 +0200 (EET) Aki Tuomi wrote: > > On 19/02/2021 07:54 m...@shadrinden.ru wrote: > > > > if address :regex :localpart "to" "\+(.*)" { > > fileinto :create "${1}"; > > stop; > > } > > > > error: invalid regular expression '+(.*)' for regex match: invalid > > pre

Re: Sieve regex error "invalid preceding regular expression"

2021-02-18 Thread Aki Tuomi
> On 19/02/2021 07:54 m...@shadrinden.ru wrote: > > > Hi, everyone! > > I'm trying to get the detail part of the address (i.e. anything that comes > between + and @ in the address of this type: alias+det...@mydomain.tld) in > this sieve: > > if address :regex :localpart "to" "\+(.*)" { >

Sieve regex error "invalid preceding regular expression"

2021-02-18 Thread ml
Hi, everyone! I'm trying to get the detail part of the address (i.e. anything that comes between + and @ in the address of this type: alias+det...@mydomain.tld) in this sieve: if address :regex :localpart "to" "\+(.*)" { fileinto :create "${1}"; stop; } However, when I try to compile it wi

Re: last login plugins

2021-02-18 Thread Henry
but I need logging other fields such as port 143 or 993, and tls 1.1 or tls 1.3, client hostname, what should I do it ? https://doc.dovecot.org/configuration_manual/config_file/config_variables/ Aki Tuomi () 在 2021年2月18日星期四 下午03:04:10 [GMT+8] 寫道: > On 18/02/2021 08:57 Henry wrote: >

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread Daryl Richards
On 2021-02-18 2:46 p.m., m...@shadrinden.ru wrote: On Thu, 18 Feb 2021 14:36:01 -0500 Daryl Richards wrote: Just to ask - when you say 'alias' do you mean something is re-writing the address based on some rule? If so, it sounds to me like that is dropping the +detail... I mean the aliases d

Re: Policy on folder's name and path's length

2021-02-18 Thread Piotr Auksztulewicz
On Thu, Feb 18, 2021 at 07:49:38AM +, Rupert Gallagher wrote: > # subfolders, everywhere... Haha that's me - almost. I have a lot of subfolders, one for each online business/shop that I ever interacted with (and separate email alias for each of them!), some of them sorted into subcategories, o

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread Daryl Richards
On 2021-02-18 2:23 p.m., m...@shadrinden.ru wrote: So there are two questions: 1. Is there a way to make dovecot-lmtp preserve the detail part of the address in the envelope? or 2. Is there a way to cut a part of the address from the header "To"? I mean, cut the part between the + and the @

Re: Monitoring Dovecot Replication

2021-02-18 Thread David Morsberger
Oliver, What’s your observable event that indicates replication has failed or is behind? Log message? Different file checksums? David > On Feb 18, 2021, at 10:54 AM, MK wrote: > > Hello Andrea, > > thanks for sharing your script to the community. > > But think your script does not solve my

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread ml
On Thu, 18 Feb 2021 14:57:19 -0500 Daryl Richards wrote: > Do you have propagate_unmatched_extensions turned on? > > http://www.postfix.org/aliases.5.html shows that has to be on > otherwise it could drop the +detail part... On my machine it is by default set to propagate_unmatched_extension

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread ml
On Thu, 18 Feb 2021 14:36:01 -0500 Daryl Richards wrote: > Just to ask - when you say 'alias' do you mean something is > re-writing the address based on some rule? If so, it sounds to me > like that is dropping the +detail... I mean the aliases defined in /etc/aliases, like jane: joe -- Re

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread ml
On Thu, 18 Feb 2021 13:08:28 + Darac Marjal wrote: > What I use is: > > if envelope :detail :regex "to" "(.+)" { >     set :upperfirst :lower "detail" "${1}"; >     fileinto :create "Tagged/${detail}"; >     stop; > } > > Which says "if the envelope detail is not empty, copy it to a var

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread Daryl Richards
On 2021-02-18 7:19 a.m., m...@shadrinden.ru wrote: So, there is now way that Dovecot can create folders with "detail" name for mail sent to "alias+detail" address? Have you checked the dovecot settings for lmtp_save_to_detail_mailbox and recipient_delimiter? https://doc.dovecot.org/settings/c

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread Postmaster
On Thu, 18 Feb 2021 13:27:34 +0100 Bjoern Franke wrote: > Hi, > > > So, there is now way that Dovecot can create folders with "detail" > > name for mail sent to "alias+detail" address? > > did you take a look into the logs? E.g. in my setup, dovecot complains > when sieve should put the messag

Re: Dovecot v2.3.14.rc1 released

2021-02-18 Thread Aki Tuomi
Thank you for the feedback! Aki > On 18/02/2021 15:47 Alessio Cecchi wrote: > > > Hi, > with this release I'm unable to build RPM from SRPMS, with 2.3.13 builds > works fine, probably is a simple error in dovecot.spec file where > "%{_libdir}/dovecot/lib21_fts_lucene_plugin.so" should be rem

AW: Monitoring Dovecot Replication

2021-02-18 Thread MK
Hello Andrea, thanks for sharing your script to the community. But think your script does not solve my problem. Monitoring failed replication with the output of "doveadm replicator status" I have allready tried. In my opinion there is nothing in this output and also in other status output I fou

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread ml
On Thu, 18 Feb 2021 13:27:34 +0100 Bjoern Franke wrote: > Hi, > > > So, there is now way that Dovecot can create folders with "detail" > > name for mail sent to "alias+detail" address? > > did you take a look into the logs? E.g. in my setup, dovecot complains > when sieve should put the messag

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread ml
On Thu, 18 Feb 2021 08:44:30 -0500 Daryl Richards wrote: > On 2021-02-18 7:19 a.m., m...@shadrinden.ru wrote: > > So, there is now way that Dovecot can create folders with "detail" > > name for mail sent to "alias+detail" address? > Have you checked the dovecot settings for lmtp_save_to_detail_

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread ml
On Thu, 18 Feb 2021 13:08:28 + Darac Marjal wrote: > What I use is: > > if envelope :detail :regex "to" "(.+)" { >     set :upperfirst :lower "detail" "${1}"; >     fileinto :create "Tagged/${detail}"; >     stop; > } > > Which says "if the envelope detail is not empty, copy it to a var

Re: Simple patch script for fts tika faulting on Ubuntu 20.04

2021-02-18 Thread deano-dovecot
On 2021-02-07 7:32 pm, John Fawcett wrote: > On 07/02/2021 20:15, @lbutlr wrote: > On 07 Feb 2021, at 02:07, @lbutlr wrote: On 06 Feb 2021, > at 11:06, John Fawcett wrote: 19.08.20 Is that a > malformed ISO date 2019-08-20 or a truncated europeans style 19-08-2020? Either way, I cannot fi

Re: Dovecot v2.3.14.rc1 released

2021-02-18 Thread Alessio Cecchi
Hi, with this release I'm unable to build RPM from SRPMS, with 2.3.13 builds works fine, probably is a simple error in dovecot.spec file where "%{_libdir}/dovecot/lib21_fts_lucene_plugin.so" should be removed: + cd /home/alessice/rpmbuild/BUILD + cd dovecot-2.3.14 + unset DISPLA

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread Yassine Chaouche
Le 2/18/21 à 2:08 PM, Darac Marjal a écrit : What I use is: if envelope :detail :regex "to" "(.+)" {     set :upperfirst :lower "detail" "${1}";     fileinto :create "Tagged/${detail}";     stop; } Which says "if the envelope detail is not empty, copy it to a variable called 'detail' and titl

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread Darac Marjal
On 18/02/2021 12:53, Yassine Chaouche wrote: > Yo Denis, > > As bjoern and Anton already said, you need a sieve script > that has a rule that says every mail that has the "detail" > keyword in the "to" header must go to the "detail" folder. > > It works with static values. But I don't know if you

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread Yassine Chaouche
Yo Denis, As bjoern and Anton already said, you need a sieve script that has a rule that says every mail that has the "detail" keyword in the "to" header must go to the "detail" folder. It works with static values. But I don't know if you can dynmicaly create folders with the "detail" part put i

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread Bjoern Franke
Hi, > So, there is now way that Dovecot can create folders with "detail" name for > mail sent to "alias+detail" address? > did you take a look into the logs? E.g. in my setup, dovecot complains when sieve should put the message into a folder which does not exist. Maybe it logs something also i

Re: Messages sent to alias+detail end up in INBOX

2021-02-18 Thread ml
So, there is now way that Dovecot can create folders with "detail" name for mail sent to "alias+detail" address? On Wed, 17 Feb 2021 18:38:45 +0300 wrote: > On Wed, 17 Feb 2021 18:13:13 +0300 > wrote: > > > If I understand this correctly, this is needed so that the messages > > sent to alias+