Re: Sieve can't move messages in a public namespace

2018-01-01 Thread Stephan Bosch
Op 11/30/2017 om 5:03 PM schreef Paolo:
> Hello all,
> finally I upgraded to dovecot 2.2.10 (that comes with CentOS 7.4).
> But the problem is still there!

We should have time to investigate this somewhat soon. Keep in mind that
2.2 series is at 2.2.33, meaning that your upgrade is still very old.

Regard,

Stephan.
>
> Why sieve can't move a message in a public namespace complaining about
> "Mailbox does not exists"?
> None of you ever try? Some of you have a working setup?
>
> I attach "dovecot -n" output.
>
> The sieve script is:
>
>    require ["fileinto", "envelope", "mailbox"];
>
>    if header :contains ["From"] "a...@address.com" {
>       fileinto "Cond-UFF_FORNITORI/CONTABILITA/Ricevuta";
>    }
>
>
> The error:
>
>    error: msgid=<5df93e60-676c-f6bb-68b8-c17fe7493...@address.com>:
>    failed to store into mailbox
>    'Cond-UFF_FORNITORI/CONTABILITA/Ricevuta': Mailbox doesn't exist:
>    Cond-UFF_FORNITORI/CONTABILITA/Ricevuta
>
> Il 04/07/2017 10:34, Stephan Bosch ha scritto:
>> Op 7/4/2017 om 8:44 AM schreef Paolo:
>>> Il 30/06/2017 10:46, Paolo ha scritto:
 Hello,

 my dovecot version is 2.1.17

 I've configured some public namespaces (config attached). When a mail
 arrives at a certain mail address, that mail is handled by dovecot
 lmtp server and a sieve script is executed that shuold move the
 message in one of the namespaces. This is the script:

 require "fileinto";

 if header :contains "From""exam...@example.com"  {
     fileinto "Cond-UFF_FORNITORI/CONTABILITA/Inviata";
 }
 else {
  fileinto "Cond-UFF_FORNITORI/CONTABILITA/Ricevuta";
 }

 The problem is that the sieve script fails with the error:

     sieve: info: started log at Jun 27 12:42:28.
     error: msgid=:
 failed to store into mailbox
 'Cond-UFF_FORNITORI/CONTABILITA/Ricevuta': Mailbox doesn't exist:
 Cond-UFF_FORNITORI/CONTABILITA/Ricevuta.

 I double checked config, dovecot documentation, sieve documentation,
 ACL, filesystem paths, filesystem permissions, etc. etc. I'm pretty
 sure it's all right.
 So why isn't sieve working?

 Thanks if you bother to answer & Cheers

 Paolo

>>> Nobody has clues?
>> Your version is very old. Can you try upgrading first?
>>
>> Regards,
>>
>> Stephan.
>



Re: Sieve can't move messages in a public namespace

2017-11-30 Thread Paolo

Hello all,
finally I upgraded to dovecot 2.2.10 (that comes with CentOS 7.4).
But the problem is still there!

Why sieve can't move a message in a public namespace complaining about 
"Mailbox does not exists"?

None of you ever try? Some of you have a working setup?

I attach "dovecot -n" output.

The sieve script is:

   require ["fileinto", "envelope", "mailbox"];

   if header :contains ["From"] "a...@address.com" {
  fileinto "Cond-UFF_FORNITORI/CONTABILITA/Ricevuta";
   }


The error:

   error: msgid=<5df93e60-676c-f6bb-68b8-c17fe7493...@address.com>:
   failed to store into mailbox
   'Cond-UFF_FORNITORI/CONTABILITA/Ricevuta': Mailbox doesn't exist:
   Cond-UFF_FORNITORI/CONTABILITA/Ricevuta

Il 04/07/2017 10:34, Stephan Bosch ha scritto:

Op 7/4/2017 om 8:44 AM schreef Paolo:

Il 30/06/2017 10:46, Paolo ha scritto:

Hello,

my dovecot version is 2.1.17

I've configured some public namespaces (config attached). When a mail
arrives at a certain mail address, that mail is handled by dovecot
lmtp server and a sieve script is executed that shuold move the
message in one of the namespaces. This is the script:

require "fileinto";

if header :contains "From""exam...@example.com"  {
fileinto "Cond-UFF_FORNITORI/CONTABILITA/Inviata";
}
else {
 fileinto "Cond-UFF_FORNITORI/CONTABILITA/Ricevuta";
}

The problem is that the sieve script fails with the error:

sieve: info: started log at Jun 27 12:42:28.
error: msgid=:
failed to store into mailbox
'Cond-UFF_FORNITORI/CONTABILITA/Ricevuta': Mailbox doesn't exist:
Cond-UFF_FORNITORI/CONTABILITA/Ricevuta.

I double checked config, dovecot documentation, sieve documentation,
ACL, filesystem paths, filesystem permissions, etc. etc. I'm pretty
sure it's all right.
So why isn't sieve working?

Thanks if you bother to answer & Cheers

Paolo


Nobody has clues?

Your version is very old. Can you try upgrading first?

Regards,

Stephan.


# 2.2.10: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-693.5.2.el7.x86_64 x86_64 CentOS Linux release 7.4.1708 
(Core)  xfs
auth_gssapi_hostname = $ALL
auth_krb5_keytab = /etc/dovecot/dovecot.keytab
auth_mechanisms = gssapi plain
default_process_limit = 300
disable_plaintext_auth = no
hostname = mail.fcr.re.it
mail_debug = yes
mail_gid = vmail
mail_location = 
sdbox:/home/vmail/mailboxes/%n/dbox:ALT=/mnt/dovecot-altstorage/%n
mail_max_userip_connections = 15
mail_plugins = acl listescape
mail_shared_explicit_inbox = yes
mail_uid = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave
namespace {
  location = 
maildir:/home/vmail/mailboxes/Condivise/UFF_FORNITORI-maildir:INDEX=~/Cond-indexes/.UFF_FORNITORI:CONTROL=~/Cond-control/.UFF_FORNITORI
  prefix = Cond-UFF_FORNITORI/
  separator = /
  subscriptions = no
  type = public
}
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix = 
  separator = /
  type = private
}
passdb {
  args = /etc/dovecot/FCR-dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  acl = vfile
  acl_shared_dict = file:/home/vmail/mailboxes/shared-mailboxes.db
  sieve = ~/.dovecot.sieve
  sieve_before = /etc/dovecot/sieve-pre
  sieve_max_redirects = 8
}
postmaster_address = postmas...@fcr.re.it
service auth {
  client_limit = 1300
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
}
service imap-login {
  process_min_avail = 10
}
service imap {
  vsz_limit = 256 M
}
service lmtp {
  executable = lmtp -L
  process_min_avail = 5
}
ssl = required
ssl_cert = 

Re: Sieve can't move messages in a public namespace

2017-07-04 Thread Stephan Bosch
Op 7/4/2017 om 8:44 AM schreef Paolo:
> Il 30/06/2017 10:46, Paolo ha scritto:
>> Hello,
>>
>> my dovecot version is 2.1.17
>>
>> I've configured some public namespaces (config attached). When a mail
>> arrives at a certain mail address, that mail is handled by dovecot
>> lmtp server and a sieve script is executed that shuold move the
>> message in one of the namespaces. This is the script:
>>
>> require "fileinto";
>>
>> if header :contains "From" "exam...@example.com" {
>>fileinto "Cond-UFF_FORNITORI/CONTABILITA/Inviata";
>> }
>> else {
>> fileinto "Cond-UFF_FORNITORI/CONTABILITA/Ricevuta";
>> }
>>
>> The problem is that the sieve script fails with the error:
>>
>>sieve: info: started log at Jun 27 12:42:28.
>>error: msgid=:
>> failed to store into mailbox
>> 'Cond-UFF_FORNITORI/CONTABILITA/Ricevuta': Mailbox doesn't exist:
>> Cond-UFF_FORNITORI/CONTABILITA/Ricevuta.
>>
>> I double checked config, dovecot documentation, sieve documentation,
>> ACL, filesystem paths, filesystem permissions, etc. etc. I'm pretty
>> sure it's all right.
>> So why isn't sieve working?
>>
>> Thanks if you bother to answer & Cheers
>>
>> Paolo
>>
> Nobody has clues?

Your version is very old. Can you try upgrading first?

Regards,

Stephan.


Re: Sieve can't move messages in a public namespace

2017-07-03 Thread Paolo

Il 30/06/2017 10:46, Paolo ha scritto:

Hello,

my dovecot version is 2.1.17

I've configured some public namespaces (config attached). When a mail 
arrives at a certain mail address, that mail is handled by dovecot 
lmtp server and a sieve script is executed that shuold move the 
message in one of the namespaces. This is the script:


require "fileinto";

if header :contains "From" "exam...@example.com" {
   fileinto "Cond-UFF_FORNITORI/CONTABILITA/Inviata";
}
else {
fileinto "Cond-UFF_FORNITORI/CONTABILITA/Ricevuta";
}

The problem is that the sieve script fails with the error:

   sieve: info: started log at Jun 27 12:42:28.
   error: msgid=: 
failed to store into mailbox 
'Cond-UFF_FORNITORI/CONTABILITA/Ricevuta': Mailbox doesn't exist: 
Cond-UFF_FORNITORI/CONTABILITA/Ricevuta.


I double checked config, dovecot documentation, sieve documentation, 
ACL, filesystem paths, filesystem permissions, etc. etc. I'm pretty 
sure it's all right.

So why isn't sieve working?

Thanks if you bother to answer & Cheers

Paolo


Nobody has clues?


Re: Sieve can't move messages in a public namespace

2017-06-30 Thread Paolo

Il 30/06/2017 17:44, Alex JOST ha scritto:


I think the :create command requires 'mailbox'.

require ["fileinto","mailbox"];



Ops! Sorry.

The :create clause was added after googling, but it didn't work.

The problem is the same without ":create". The two mailboxes "Ricevuta" 
and "Inviata" does exist. I can see them and read mail in them from my 
Thunderbird, but sieve does not view them.


Did someone face similar problem?

Thanks

Paolo


Re: Sieve can't move messages in a public namespace

2017-06-30 Thread Alex JOST

Am 30.06.2017 um 10:46 schrieb Paolo:

Hello,

my dovecot version is 2.1.17

I've configured some public namespaces (config attached). When a mail 
arrives at a certain mail address, that mail is handled by dovecot lmtp 
server and a sieve script is executed that shuold move the message in 
one of the namespaces. This is the script:


require "fileinto";

if header :contains "From" "exam...@example.com" {
fileinto :create "Cond-UFF_FORNITORI/CONTABILITA/Inviata";
}
else {
 fileinto :create "Cond-UFF_FORNITORI/CONTABILITA/Ricevuta";
}

The problem is that the sieve script fails with the error:

sieve: info: started log at Jun 27 12:42:28.
error: msgid=: 
failed to store into mailbox 'Cond-UFF_FORNITORI/CONTABILITA/Ricevuta': 
Mailbox doesn't exist: Cond-UFF_FORNITORI/CONTABILITA/Ricevuta.


I double checked config, dovecot documentation, sieve documentation, 
ACL, filesystem paths, filesystem permissions, etc. etc. I'm pretty sure 
it's all right.

So why isn't sieve working?


I think the :create command requires 'mailbox'.

require ["fileinto","mailbox"];

--
Alex JOST