Re: Maillog warning

2018-05-16 Thread forums
It"s good, no more message at the restart.

---
## 

Philippe - Forums 

Le 2018-05-16 22:23, Christian Kivalo a écrit :

> On 2018-05-16 21:53, for...@mehl-family.fr wrote: 
> 
>> # DOVECOT -N
>> 
>> ==> see attachment
> This looks overly complicated for a doveconf-n output but it seems to work...
> 
>> # GREP -B2 -A1 'MAIL_PLUGINS =' /ETC/DOVECOT/CONF.D/*
>> 
>> /etc/dovecot/conf.d/10-mail.conf-#auth_socket_path =
>> /var/run/dovecot/auth-userdb
>> /etc/dovecot/conf.d/10-mail.conf-#mail_plugin_dir =
>> /usr/lib/dovecot/modules
>> /etc/dovecot/conf.d/10-mail.conf:#mail_plugins =
> ^^ uncomment this line and add quota to the end. This is the global 
> mail_plugins setting that's included as mail_plugins = $mail_plugins in all 
> protocol sections 
> 
>> /etc/dovecot/conf.d/10-mail.conf-#mailbox_list_index = no
>> --
> rename the file back to 90-quota.conf and comment or remove the lines marked 
> below 
> 
>> /etc/dovecot/conf.d/13-quota.conf-}
>> /etc/dovecot/conf.d/13-quota.conf-
>> /etc/dovecot/conf.d/13-quota.conf:mail_plugins = $mail_plugins quota
> ^^ comment / remove thie above line 
> 
>> /etc/dovecot/conf.d/13-quota.conf-
>> /etc/dovecot/conf.d/13-quota.conf-protocol imap {
>> /etc/dovecot/conf.d/13-quota.conf:  mail_plugins = $mail_plugins
>> imap_quota
>> /etc/dovecot/conf.d/13-quota.conf-}
> ^^ comment / remove the above 3 lines (the whole protocol imap block), the 
> protocol imap block is defined in 20-imap.conf 
> 
>> --
>> /etc/dovecot/conf.d/15-lda.conf-#lda_mailbox_autosubscribe = no
>> /etc/dovecot/conf.d/15-lda.conf-protocol lda {
>> /etc/dovecot/conf.d/15-lda.conf:  mail_plugins = $mail_plugins sieve
>> /etc/dovecot/conf.d/15-lda.conf-}
>> --
>> /etc/dovecot/conf.d/20-imap.conf-#imap_urlauth_host =
>> /etc/dovecot/conf.d/20-imap.conf-protocol imap {
>> /etc/dovecot/conf.d/20-imap.conf:  #mail_plugins = $mail_plugins quota
> ^^ uncomment the above line 
> 
>> /etc/dovecot/conf.d/20-imap.conf-  #mail_max_userip_connections = 10
>> --
>> /etc/dovecot/conf.d/20-managesieve.conf-  #managesieve_max_line_length
>> = 65536
>> /etc/dovecot/conf.d/20-managesieve.conf-  #mail_max_userip_connections
>> = 10
>> /etc/dovecot/conf.d/20-managesieve.conf:  #mail_plugins =
>> /etc/dovecot/conf.d/20-managesieve.conf-  #managesieve_logout_format =
>> bytes=%i/%o
>> --
>> /etc/dovecot/conf.d/20-pop3.conf-protocol pop3 {
>> /etc/dovecot/conf.d/20-pop3.conf-  # Space separated list of plugins
>> to load (default is global mail_plugins).
>> /etc/dovecot/conf.d/20-pop3.conf:  #mail_plugins = $mail_plugins
>> /etc/dovecot/conf.d/20-pop3.conf-
> 
> With those four changes your warning should be gone.

Re: Maillog warning

2018-05-16 Thread Christian Kivalo



On 2018-05-16 21:53, for...@mehl-family.fr wrote:

# DOVECOT -N

==> see attachment
This looks overly complicated for a doveconf-n output but it seems to 
work...




# GREP -B2 -A1 'MAIL_PLUGINS =' /ETC/DOVECOT/CONF.D/*

/etc/dovecot/conf.d/10-mail.conf-#auth_socket_path =
/var/run/dovecot/auth-userdb
/etc/dovecot/conf.d/10-mail.conf-#mail_plugin_dir =
/usr/lib/dovecot/modules
/etc/dovecot/conf.d/10-mail.conf:#mail_plugins =
^^ uncomment this line and add quota to the end. This is the global 
mail_plugins setting that's included as mail_plugins = $mail_plugins in 
all protocol sections

/etc/dovecot/conf.d/10-mail.conf-#mailbox_list_index = no
--
rename the file back to 90-quota.conf and comment or remove the lines 
marked below

/etc/dovecot/conf.d/13-quota.conf-}
/etc/dovecot/conf.d/13-quota.conf-
/etc/dovecot/conf.d/13-quota.conf:mail_plugins = $mail_plugins quota

^^ comment / remove thie above line

/etc/dovecot/conf.d/13-quota.conf-
/etc/dovecot/conf.d/13-quota.conf-protocol imap {
/etc/dovecot/conf.d/13-quota.conf:  mail_plugins = $mail_plugins
imap_quota
/etc/dovecot/conf.d/13-quota.conf-}
^^ comment / remove the above 3 lines (the whole protocol imap block), 
the protocol imap block is defined in 20-imap.conf

--
/etc/dovecot/conf.d/15-lda.conf-#lda_mailbox_autosubscribe = no
/etc/dovecot/conf.d/15-lda.conf-protocol lda {
/etc/dovecot/conf.d/15-lda.conf:  mail_plugins = $mail_plugins sieve
/etc/dovecot/conf.d/15-lda.conf-}
--
/etc/dovecot/conf.d/20-imap.conf-#imap_urlauth_host =
/etc/dovecot/conf.d/20-imap.conf-protocol imap {
/etc/dovecot/conf.d/20-imap.conf:  #mail_plugins = $mail_plugins quota

^^ uncomment the above line

/etc/dovecot/conf.d/20-imap.conf-  #mail_max_userip_connections = 10
--
/etc/dovecot/conf.d/20-managesieve.conf-  #managesieve_max_line_length
= 65536
/etc/dovecot/conf.d/20-managesieve.conf-  #mail_max_userip_connections
= 10
/etc/dovecot/conf.d/20-managesieve.conf:  #mail_plugins =
/etc/dovecot/conf.d/20-managesieve.conf-  #managesieve_logout_format =
bytes=%i/%o
--
/etc/dovecot/conf.d/20-pop3.conf-protocol pop3 {
/etc/dovecot/conf.d/20-pop3.conf-  # Space separated list of plugins
to load (default is global mail_plugins).
/etc/dovecot/conf.d/20-pop3.conf:  #mail_plugins = $mail_plugins
/etc/dovecot/conf.d/20-pop3.conf-


With those four changes your warning should be gone.

--
 Christian Kivalo


Re: Maillog warning

2018-05-16 Thread forums
# DOVECOT -N 

==> see attachment 

# GREP -B2 -A1 'MAIL_PLUGINS =' /ETC/DOVECOT/CONF.D/* 

/etc/dovecot/conf.d/10-mail.conf-#auth_socket_path =
/var/run/dovecot/auth-userdb
/etc/dovecot/conf.d/10-mail.conf-#mail_plugin_dir =
/usr/lib/dovecot/modules
/etc/dovecot/conf.d/10-mail.conf:#mail_plugins =
/etc/dovecot/conf.d/10-mail.conf-#mailbox_list_index = no
--
/etc/dovecot/conf.d/10-mail.conf.ucf-dist-# Space separated list of
plugins to load for all services. Plugins specific to
/etc/dovecot/conf.d/10-mail.conf.ucf-dist-# IMAP, LDA, etc. are added to
this list in their own .conf files.
/etc/dovecot/conf.d/10-mail.conf.ucf-dist:#mail_plugins =
/etc/dovecot/conf.d/10-mail.conf.ucf-dist-
--
/etc/dovecot/conf.d/13-quota.conf-}
/etc/dovecot/conf.d/13-quota.conf-
/etc/dovecot/conf.d/13-quota.conf:mail_plugins = $mail_plugins quota
/etc/dovecot/conf.d/13-quota.conf-
/etc/dovecot/conf.d/13-quota.conf-protocol imap {
/etc/dovecot/conf.d/13-quota.conf:  mail_plugins = $mail_plugins
imap_quota
/etc/dovecot/conf.d/13-quota.conf-}
--
/etc/dovecot/conf.d/15-lda.conf-#lda_mailbox_autosubscribe = no
/etc/dovecot/conf.d/15-lda.conf-protocol lda {
/etc/dovecot/conf.d/15-lda.conf:  mail_plugins = $mail_plugins sieve
/etc/dovecot/conf.d/15-lda.conf-}
--
/etc/dovecot/conf.d/15-lda.conf.ucf-dist-protocol lda {
/etc/dovecot/conf.d/15-lda.conf.ucf-dist-  # Space separated list of
plugins to load (default is global mail_plugins).
/etc/dovecot/conf.d/15-lda.conf.ucf-dist:  #mail_plugins = $mail_plugins
/etc/dovecot/conf.d/15-lda.conf.ucf-dist-}
--
/etc/dovecot/conf.d/20-imap.conf-#imap_urlauth_host =
/etc/dovecot/conf.d/20-imap.conf-protocol imap {
/etc/dovecot/conf.d/20-imap.conf:  #mail_plugins = $mail_plugins quota
/etc/dovecot/conf.d/20-imap.conf-  #mail_max_userip_connections = 10
--
/etc/dovecot/conf.d/20-imap.conf.ucf-dist-protocol imap {
/etc/dovecot/conf.d/20-imap.conf.ucf-dist-  # Space separated list of
plugins to load (default is global mail_plugins).
/etc/dovecot/conf.d/20-imap.conf.ucf-dist:  #mail_plugins =
$mail_plugins
/etc/dovecot/conf.d/20-imap.conf.ucf-dist-
--
/etc/dovecot/conf.d/20-managesieve.conf-  #managesieve_max_line_length =
65536
/etc/dovecot/conf.d/20-managesieve.conf-  #mail_max_userip_connections =
10
/etc/dovecot/conf.d/20-managesieve.conf:  #mail_plugins =
/etc/dovecot/conf.d/20-managesieve.conf-  #managesieve_logout_format =
bytes=%i/%o
--
/etc/dovecot/conf.d/20-managesieve.conf.ucf-dist-  # Space separated
list of plugins to load (none known to be useful so far).
/etc/dovecot/conf.d/20-managesieve.conf.ucf-dist-  # Do NOT try to load
IMAP plugins here.
/etc/dovecot/conf.d/20-managesieve.conf.ucf-dist:  #mail_plugins =
/etc/dovecot/conf.d/20-managesieve.conf.ucf-dist-
--
/etc/dovecot/conf.d/20-pop3.conf-protocol pop3 {
/etc/dovecot/conf.d/20-pop3.conf-  # Space separated list of plugins to
load (default is global mail_plugins).
/etc/dovecot/conf.d/20-pop3.conf:  #mail_plugins = $mail_plugins
/etc/dovecot/conf.d/20-pop3.conf- 

---
## 

Philippe - Forums 

Le 2018-05-16 21:40, Christian Kivalo a écrit :

> On 2018-05-16 21:07, for...@mehl-family.fr wrote: 
> 
>> OK.
>> 
>> I renamed "conf.d/90-quota.conf" to "conf.d/13-quota.conf" and I have
>> no more this message.
> This doesn't really fix your problem, you just removed the signs of it. The 
> order of the files in /etc/dovecot/conf.d matters.
> 
> Please provide the following:
> doveconf -n
> 
> grep -B2 -A1 'mail_plugins =' /etc/dovecot/conf.d/*` shows the unexpanded 
> mail_plugins settings from your config.# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (fed8554)
# OS: Linux 4.14.34-v7+ armv7l Debian 9.4 nfs
auth_mechanisms = plain login
dict {
  quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
lock_method = dotlock
mail_location = maildir:/NFS_Mounts/MBOX/vmail/%d/%n/Maildir
mail_plugins = " quota"
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
namespace {
  inbox = yes
  location = 
  mailbox {
special_use = \Drafts
name = Drafts
  }
  mailbox {
special_use = \Junk
name = Junk
  }
  mailbox {
special_use = \Sent
name = Sent
  }
  mailbox {
special_use = \Sent
name = Sent Messages
  }
  mailbox {
special_use = \Trash
name = Trash
  }
  prefix = 
  separator = /
  name = inbox
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  quota = maildir
  quota_grace = 10%%
  quota_rule = *:storage=3G
  quota_rule2 = Trash:storage=+100M
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = /etc/dovecot/sieve/.%n-dovecot.sieve
  sieve_dir = /NFS_Mounts/MBOX/vmail/%d/%n/sieve/
}
postmaster_address = supp...@mehl-family.fr
protocols = " i

Re: Maillog warning

2018-05-16 Thread Christian Kivalo

On 2018-05-16 21:07, for...@mehl-family.fr wrote:

OK.

I renamed "conf.d/90-quota.conf" to "conf.d/13-quota.conf" and I have
no more this message.
This doesn't really fix your problem, you just removed the signs of it. 
The order of the files in /etc/dovecot/conf.d matters.


Please provide the following:
doveconf -n

grep -B2 -A1 'mail_plugins =' /etc/dovecot/conf.d/*` shows the 
unexpanded mail_plugins settings from your config.


--
 Christian Kivalo


Re: Maillog warning

2018-05-16 Thread forums
OK. 

I renamed "conf.d/90-quota.conf" to "conf.d/13-quota.conf" and I have no
more this message. 

Thank's. 

---
## 

Philippe - Forums 

Le 2018-05-16 20:53, Sami Ketola a écrit :

>> On 16 May 2018, at 20.16, for...@mehl-family.fr wrote: 
>> 
>> I have comment the line... 
>> 
>> But now I see other warning : 
>> 
>> _WARNING: /ETC/DOVECOT/CONF.D/OLD-90-QUOTA.CONF LINE 39: GLOBAL SETTING 
>> MAIL_PLUGINS WON'T CHANGE THE SETTING INSIDE AN EARLIER FILTER AT 
>> /ETC/DOVECOT/CONF.D/15-LDA.CONF LINE 13 (IF THIS IS INTENTIONAL, AVOID THIS 
>> WARNING BY MOVING THE GLOBAL SETTING BEFORE /ETC/DOVECOT/CONF.D/15-LDA.CONF 
>> LINE 13)_ 
>> 
>> AND... I see an error message : 
>> 
>> _ERROR: COULDN'T LOAD REQUIRED PLUGIN 
>> /USR/LIB/DOVECOT/MODULES/LIB11_IMAP_QUOTA_PLUGIN.SO: PLUGIN QUOTA MUST BE 
>> LOADED ALSO (YOU MUST SET: MAIL_PLUGINS=$MAIL_PLUGINS QUOTA)_
> Load your global plugins first, in global config file and protocol specific 
> plugins later in the config. 
> 
> Sami

Re: Maillog warning

2018-05-16 Thread Christian Kivalo



On 2018-05-16 19:16, for...@mehl-family.fr wrote:

I have comment the line...

But now I see other warning :

_WARNING: /ETC/DOVECOT/CONF.D/OLD-90-QUOTA.CONF LINE 39: GLOBAL
SETTING MAIL_PLUGINS WON'T CHANGE THE SETTING INSIDE AN EARLIER FILTER
AT /ETC/DOVECOT/CONF.D/15-LDA.CONF LINE 13 (IF THIS IS INTENTIONAL,
AVOID THIS WARNING BY MOVING THE GLOBAL SETTING BEFORE
/ETC/DOVECOT/CONF.D/15-LDA.CONF LINE 13)_

AND... I see an error message :

_ERROR: COULDN'T LOAD REQUIRED PLUGIN
/USR/LIB/DOVECOT/MODULES/LIB11_IMAP_QUOTA_PLUGIN.SO: PLUGIN QUOTA MUST
BE LOADED ALSO (YOU MUST SET: MAIL_PLUGINS=$MAIL_PLUGINS QUOTA)_
The output of doveconf -n would help to see what plugins you are trying 
to load


--
 Christian Kivalo


Re: Maillog warning

2018-05-16 Thread Sami Ketola


> On 16 May 2018, at 20.16, for...@mehl-family.fr wrote:
> 
> I have comment the line...
> 
> But now I see other warning :
> 
> Warning: /etc/dovecot/conf.d/OLD-90-quota.conf line 39: Global setting 
> mail_plugins won't change the setting inside an earlier filter at 
> /etc/dovecot/conf.d/15-lda.conf line 13 (if this is intentional, avoid this 
> warning by moving the global setting before /etc/dovecot/conf.d/15-lda.conf 
> line 13)
> 
> AND... I see an error message :
> 
> Error: Couldn't load required plugin 
> /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: Plugin quota must be 
> loaded also (you must set: mail_plugins=$mail_plugins quota)
> 
Load your global plugins first, in global config file and protocol specific 
plugins later in the config.

Sami

Re: Maillog warning

2018-05-16 Thread forums
I have comment the line... 

But now I see other warning : 

_WARNING: /ETC/DOVECOT/CONF.D/OLD-90-QUOTA.CONF LINE 39: GLOBAL SETTING
MAIL_PLUGINS WON'T CHANGE THE SETTING INSIDE AN EARLIER FILTER AT
/ETC/DOVECOT/CONF.D/15-LDA.CONF LINE 13 (IF THIS IS INTENTIONAL, AVOID
THIS WARNING BY MOVING THE GLOBAL SETTING BEFORE
/ETC/DOVECOT/CONF.D/15-LDA.CONF LINE 13)_ 

AND... I see an error message : 

_ERROR: COULDN'T LOAD REQUIRED PLUGIN
/USR/LIB/DOVECOT/MODULES/LIB11_IMAP_QUOTA_PLUGIN.SO: PLUGIN QUOTA MUST
BE LOADED ALSO (YOU MUST SET: MAIL_PLUGINS=$MAIL_PLUGINS QUOTA)_ 

:-O

---
## 

Philippe - Forums 

Le 2018-05-16 19:07, for...@mehl-family.fr a écrit :

> I just have thus to comment on the line in the file? 
> 
> ---
> ## 
> 
> Philippe - Forums 
> 
> Le 2018-05-16 18:52, Sami Ketola a écrit : 
> 
> On 16 May 2018, at 19.49, for...@mehl-family.fr wrote: 
> 
> Hi, 
> 
> In my maillog I see this warning message at every reception of e-mail: 
> 
> _STATUS=SENT (DELIVERED VIA DOVECOT SERVICE (DOVECONF: WARNING: 
> /ETC/DOVECOT/CONF.D/90-QUOTA.CONF LINE 39: GLOBAL SETTING MAIL_PLUGINS WON'T 
> CHAN._ 
> 
> It is just a warning, the e-mail was delivered. 
> 
> I don't find where is the problem.
> 
> You have mail_plugins setting in 90-quota.conf that is ignored because you 
> have defined mail_plugins in protocol lmtp {} before that in the config. The 
> order matters. 
> 
> Sami

Re: Maillog warning

2018-05-16 Thread forums
I just have thus to comment on the line in the file? 

---
## 

Philippe - Forums 

Le 2018-05-16 18:52, Sami Ketola a écrit :

>> On 16 May 2018, at 19.49, for...@mehl-family.fr wrote: 
>> 
>> Hi, 
>> 
>> In my maillog I see this warning message at every reception of e-mail: 
>> 
>> _STATUS=SENT (DELIVERED VIA DOVECOT SERVICE (DOVECONF: WARNING: 
>> /ETC/DOVECOT/CONF.D/90-QUOTA.CONF LINE 39: GLOBAL SETTING MAIL_PLUGINS WON'T 
>> CHAN._ 
>> 
>> It is just a warning, the e-mail was delivered. 
>> 
>> I don't find where is the problem.
> 
> You have mail_plugins setting in 90-quota.conf that is ignored because you 
> have defined mail_plugins in protocol lmtp {} before that in the config. The 
> order matters. 
> 
> Sami

Re: Maillog warning

2018-05-16 Thread Sami Ketola

> On 16 May 2018, at 19.49, for...@mehl-family.fr wrote:
> 
> Hi,
> 
> In my maillog I see this warning message at every reception of e-mail:
> 
> status=sent (delivered via dovecot service (doveconf: Warning: 
> /etc/dovecot/conf.d/90-quota.conf line 39: Global setting mail_plugins won't 
> chan.
> 
> It is just a warning, the e-mail was delivered.
> 
> I don't find where is the problem.
> 
> 

You have mail_plugins setting in 90-quota.conf that is ignored because you have 
defined mail_plugins in protocol lmtp {} before that in the config. The order 
matters.

Sami



Maillog warning

2018-05-16 Thread forums
Hi, 

In my maillog I see this warning message at every reception of e-mail: 

_STATUS=SENT (DELIVERED VIA DOVECOT SERVICE (DOVECONF: WARNING:
/ETC/DOVECOT/CONF.D/90-QUOTA.CONF LINE 39: GLOBAL SETTING MAIL_PLUGINS
WON'T CHAN._ 

It is just a warning, the e-mail was delivered. 

I don't find where is the problem. 

Thank's. 

-- 
## 

Philippe - Forums