Re: Dovecot permission denied errors on NFS after upgrade to 2.2.17

2020-09-24 Thread Claudio Corvino

Hi,

this sound correct, here is my fstab entry:

/XXX.XXX.XXX.XXX:/mail-storage    /mnt/mail-storage nfs 
defaults,timeo=30                0   0/


Here are my options when doing "mount":

/rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=30,retrans=2,sec=sys,mountaddr=//XXX.XXX.XXX.XXX//,mountvers=3,mountport=50141,mountproto=udp,local_lock=none,addr=//XXX.XXX.XXX.XXX/

How can I do further test?

Thanks in advance

Claudio

On 23/09/20 22:26, @lbutlr wrote:

On 21 Sep 2020, at 01:48, Claudio Corvino  wrote:

problem still occurring, I just noticed that if I do an "ls -l 
/mnt/mail-storage//Maildir/cur/" from the Dovecot server I can unblock the 
mailbox of the user and Thunderbird can receives all the e-mails.

The problem occurs even with the gmail client on the smartphone.

I just tried many things but can't find a solution.

I just reinstalled a new server with mail storage not on NFS and the problem 
seems to be fixed, but this is not a solution valid for us as we would like to 
use NFS.

This spends like it may be your system not really mounting (or not fully 
mounting) the NFS until it is actually accessed directly.





Importing Mail

2020-09-24 Thread Odhiambo Washington
Hi good people,

I have an old server that holds old mail (mdbox) and a new server that also
uses mdbox.
I'd like to import the old mail from the old server into the live/new
server. The imported mail should not be treated as new mail for the
existing mail accounts.

What is the best way to achieve this?

Lastly, is there a way to convert mdbox to Maildir?


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)


Re: Vacation sieve explained: how does it work?

2020-09-24 Thread Graham Leggett
On 23 Sep 2020, at 21:51, @lbutlr  wrote:

> If people cannot deal with a delay of a minute or five, increase the interval 
> to 12 hours, or even better, "changes will take affect at 6am the next 
> business day."
> 
> That'll learn ‘em.

We like our users, and they like us :)

We’re pulling the value of the vacation message like this:

user_attrs = 
mailMessageStore=home=%$,=mail_auto_reply_mode=%{ldap:mailAutoReplyMode},=mail_auto_reply_text=%{ldap:mailAutoReplyText}

So far the sieve that I have looks like this:

#

require ["fileinto", "mailbox"];
require ["vacation", "variables"];

# fileinto: for putting mail into a imap folder
# mailbox: for creating imap folder if not exists
#
if header :contains "X-Spam-Flag" "YES" {
# move mail into folder Junk, create folder if not exists
fileinto :create "Junk";
stop;
}

if string :matches "${mail_auto_reply_mode}" "reply" {
if header :matches "subject" "*" {
vacation :subject "AutoReply: ${1}"
"${mail_auto_reply_text}";
}
}

And sieve-test looks like this:

sieve-test(root): Debug: sieve: Pigeonhole version 0.5.8 (b7b03ba2) initializing
sieve-test(root): Debug: sieve: include: sieve_global is not set; it is 
currently not possible to include `:global' scripts.
debug: file storage: Using Sieve script path: 
/var/lib/dovecot-sieve/default.sieve.
debug: file script: Opened script `default' from 
`/var/lib/dovecot-sieve/default.sieve'.
debug: Script binary /var/lib/dovecot-sieve/default.svbin successfully loaded.
debug: binary save: not saving binary /var/lib/dovecot-sieve/default.svbin, 
because it is already stored.

Performed actions:

  (none)

Implicit keep:

 * store message in folder: INBOX

sieve-test(root): Info: final result: success

Effectively no vacation message was detected.

Is the variable syntax or ${mail_auto_reply_text} correct, or is there a 
namespace I should be using?

Regards,
Graham
—



AW: Importing Mail

2020-09-24 Thread rudolf
Hey,



for an import between two servers i would use imapsync. With doveadm flag 
(https://wiki.dovecot.org/Tools/Doveadm/Flags) you can mark the mails as unseen 
but be careful here, you can simple overwrite all other flags here too, maybe 
an other way is better here. 

 

With doveadm backup / doveadm sync you can convert the mails between the 
formats like this way:

 

dsync backup -u "" maildir:~/maildir-NEW

 

after converting the mails you can rename the mdbox folder to mdbox-OLD or 
something (backup) and rename the maildir-NEW folder to maildir

 

Yours sincerely

Pascal Rudolf


 

 

 

 

Von: dovecot  Im Auftrag von Odhiambo Washington
Gesendet: Donnerstag, 24. September 2020 15:25
An: Dovecot Mailing List 
Betreff: Importing Mail

 

Hi good people,

 

I have an old server that holds old mail (mdbox) and a new server that also 
uses mdbox.

I'd like to import the old mail from the old server into the live/new server. 
The imported mail should not be treated as new mail for the existing mail 
accounts.

 

What is the best way to achieve this?

 

Lastly, is there a way to convert mdbox to Maildir?




 

-- 

Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)



Re: Importing Mail

2020-09-24 Thread Odhiambo Washington
Hi Rudolf,

Thank you for the quick response.

Let me try that.


On Thu, 24 Sep 2020 at 17:00,  wrote:

> Hey,
>
> for an import between two servers i would use imapsync. With doveadm flag (
> https://wiki.dovecot.org/Tools/Doveadm/Flags) you can mark the mails as
> unseen but be careful here, you can simple overwrite all other flags here
> too, maybe an other way is better here.
>
>
>
> With doveadm backup / doveadm sync you can convert the mails between the
> formats like this way:
>
>
>
> dsync backup -u "" maildir:~/maildir-NEW
>
>
>
> after converting the mails you can rename the mdbox folder to mdbox-OLD or
> something (backup) and rename the maildir-NEW folder to maildir
>
>
>
> Yours sincerely
>
> Pascal Rudolf
>
>
>
>
>
>
>
>
>
> *Von:* dovecot  *Im Auftrag von *Odhiambo
> Washington
> *Gesendet:* Donnerstag, 24. September 2020 15:25
> *An:* Dovecot Mailing List 
> *Betreff:* Importing Mail
>
>
>
> Hi good people,
>
>
>
> I have an old server that holds old mail (mdbox) and a new server that
> also uses mdbox.
>
> I'd like to import the old mail from the old server into the live/new
> server. The imported mail should not be treated as new mail for the
> existing mail accounts.
>
>
>
> What is the best way to achieve this?
>
>
>
> Lastly, is there a way to convert mdbox to Maildir?
>
>
>
>
> --
>
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254 7 3200 0004/+254 7 2274 3223
> "Oh, the cruft.", grep ^[^#] :-)
>


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)


Re: dovecot TSL 1.3 config option 'ssl_ciphersuites' causes fatal error on launch. not supported, bad config, or bug?

2020-09-24 Thread PGNet Dev
On 9/23/20 11:29 PM, Aki Tuomi wrote:
> The config option is still missing, but it's in our backlog along with other 
> stuff we would like to add.

Is that pegged to any version/milestone yet?

In the meantime, what state is Dovecot's cipher support IN?
What behavior should be expected when (all of our) other/external services are 
offering/using/expecting TLSv1.3 ciphers?

A clean fallback from Dovecot to v1.2 protocols/ciphers?

&/or must TLSv1.3 be _explicitly_ disabled/excluded in Dovecot configs?


How do I make "vnd.dovecot.environment" available?

2020-09-24 Thread Graham Leggett
Hi all,

According to the docs at https://wiki.dovecot.org/Pigeonhole/Sieve, some 
extensions are not available by default.

The docs tell me the sieve_plugins, sieve_extensions and/or 
sieve_global_extensions configs are involved, but I can find no authoritative 
documentation as to what the values should be.

What values must I use to make “vnd.dovecot.environment” available?

Adding "sieve_global_extensions = +vnd.dovecot.environment” to 90-sieve.conf 
seems to not be enough.

[root@gatekeeper ~]# sievec -D /var/lib/dovecot-sieve/default.sieve 
sievec(root): Debug: sieve: Pigeonhole version 0.5.8 (b7b03ba2) initializing
sievec(root): Debug: sieve: include: sieve_global is not set; it is currently 
not possible to include `:global' scripts.
sievec(root): Debug: sieve: file storage: Using Sieve script path: 
/var/lib/dovecot-sieve/default.sieve
sievec(root): Debug: sieve: file script: Opened script `default' from 
`/var/lib/dovecot-sieve/default.sieve'
default: line 5: error: require command: unknown Sieve capability 
`vnd.dovecot.environment'.
default: line 19: error: referring to variable in unknown namespace 'vnd'.
default: error: validation failed.
sievec(root): Fatal: failed to compile sieve script 
'/var/lib/dovecot-sieve/default.sieve'

Regards,
Graham
—



Re: How do I make "vnd.dovecot.environment" available?

2020-09-24 Thread Sami Ketola



> On 24. Sep 2020, at 18.58, Graham Leggett  wrote:
> 
> Hi all,
> 
> According to the docs at https://wiki.dovecot.org/Pigeonhole/Sieve, some 
> extensions are not available by default.
> 
> The docs tell me the sieve_plugins, sieve_extensions and/or 
> sieve_global_extensions configs are involved, but I can find no authoritative 
> documentation as to what the values should be.
> 
> What values must I use to make “vnd.dovecot.environment” available?
> 
> Adding "sieve_global_extensions = +vnd.dovecot.environment” to 90-sieve.conf 
> seems to not be enough.
> 
> [root@gatekeeper ~]# sievec -D /var/lib/dovecot-sieve/default.sieve 
> sievec(root): Debug: sieve: Pigeonhole version 0.5.8 (b7b03ba2) initializing
> sievec(root): Debug: sieve: include: sieve_global is not set; it is currently 
> not possible to include `:global' scripts.
> sievec(root): Debug: sieve: file storage: Using Sieve script path: 
> /var/lib/dovecot-sieve/default.sieve
> sievec(root): Debug: sieve: file script: Opened script `default' from 
> `/var/lib/dovecot-sieve/default.sieve'
> default: line 5: error: require command: unknown Sieve capability 
> `vnd.dovecot.environment'.
> default: line 19: error: referring to variable in unknown namespace 'vnd'.
> default: error: validation failed.
> sievec(root): Fatal: failed to compile sieve script 
> '/var/lib/dovecot-sieve/default.sieve'

can you link your doveconf -n and the sieve script?

Sami

Re: [EXT] How do I make "vnd.dovecot.environment" available?

2020-09-24 Thread Sami Ketola


> On 24. Sep 2020, at 22.50, Graham Leggett  wrote:
> 
> On 24 Sep 2020, at 20:45, Sami Ketola  > wrote:
> 
>> can you link your doveconf -n and the sieve script?
> 
> [root@gatekeeper ~]# cat /var/lib/dovecot-sieve/default.sieve 
> #
> 
> require ["fileinto", "mailbox"];
> require ["vacation", "variables"];
> require ["vnd.dovecot.environment"];

I think this should be

require ["environment"];

instead.

Sami



Re: How do I make "vnd.dovecot.environment" available?

2020-09-24 Thread Graham Leggett
On 24 Sep 2020, at 20:45, Sami Ketola  wrote:

> can you link your doveconf -n and the sieve script?

The user’s detail are:

[root@gatekeeper ~]# doveadm user minf...@example.com
field   value
uid vmail
gid vmail
home/home/vmail/minf...@example.com/
mailmaildir:~/mail
mail_auto_reply_modereply
mail_auto_reply_textI am truly away...

The sieve script is:

[root@gatekeeper ~]# cat /var/lib/dovecot-sieve/default.sieve 
#

require ["fileinto", "mailbox"];
require ["vacation", "variables"];
require ["vnd.dovecot.environment"];

# fileinto: for putting mail into a imap folder
# mailbox: for creating imap folder if not exists
#
if header :contains "X-Spam-Flag" "YES" {
# move mail into folder Junk, create folder if not exists
fileinto :create "Junk";
stop;
}

#if string :matches "${vnd.dovecot.mail_auto_reply_mode}" "reply" {
if header :matches "subject" "*" {
vacation :subject "AutoReply: ${1}"
"${vnd.dovecot.mail_auto_reply_text}";
}
#}

The dovecot -n is:

[root@gatekeeper ~]# dovecot -n
# 2.3.8 (9df20d2db): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.8 (b7b03ba2)
# OS: Linux 4.18.0-193.19.1.el8_2.x86_64 x86_64 CentOS Linux release 8.2.2004 
(Core)  
# Hostname: gatekeeper.horizonmarine.co.za
first_valid_uid = 201
mail_gid = vmail
mail_location = maildir:~/mail
mail_plugins = acl
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 index ihave duplicate 
mime foreverypart extracttext
mbox_write_locks = fcntl
namespace {
  list = children
  location = maildir:%%h/mail:INDEXPVT=~/shared/%%u
  prefix = Shared/%%u/
  separator = /
  subscriptions = yes
  type = shared
}
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/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  sieve = file:~/sieve;active=~/.dovecot.sieve
  sieve_default = /var/lib/dovecot-sieve/default.sieve
  sieve_global_extensions = +vnd.dovecot.environment
  sieve_plugins = sieve_extprograms
}
protocols = lmtp imap pop3 submission
service imap-login {
  inet_listener imap {
address = 127.0.0.1, ::1
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
}
service imap {
  vsz_limit = 1 G
}
service pop3-login {
  inet_listener pop3 {
address = 127.0.0.1, ::1
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
}
service submission-login {
  inet_listener submission {
port = 587
  }
  inet_listener submissions {
haproxy = no
port = 465
reuse_port = no
ssl = yes
  }
}
ssl = required
ssl_cert =  seconds : 604800
=> subject : AutoReply: Test1
=> handle  : ${vnd.dovecot.mail_auto_reply_text}AutoReply: 
${1}

START MESSAGE

END MESSAGE

Implicit keep:

 * store message in folder: INBOX

sieve-test(root): Info: final result: success

The variable “vnd.dovecot.mail_auto_reply_text” is the trouble - it’s not being 
resolved, and I have no idea what the format of the variable should be.

Regards,
Graham
—