Fatal: nfs flush requires mail_fsync=always

Juan C. Blanco jcblanco at fi.upm.es
Wed May 30 19:31:24 EEST 2018


Hello, any news about the attached error?

I'm preparing the 2.2 to 2.3 upgrade and having the same error.

We have the mail stores in an NFS filer.

Regards

> On 19.01.2018 11:55, Søren Skou wrote:
>> Hiya all,
>>
>> I'm seeing this "Fatal: nfs flush requires mail_fsync=always" error on
>> my testbed. The issue is that from what I can see, mail_fsync is set
>> to always :
>>
>> # doveconf -n | grep mail_fs
>> mail_fsync = always
>>
>> The result is that the client does not connect at all, which is not
>> really what I wanted to happen :)
>>
>> Any idea what is going wrong here?
>>
>> Best regards
>> Søren P. Skou
>>
>> doveconf -n
>>
>> # 2.3.1.alpha0 (bdfa22623) [XI:2:2.3.1~alpha0-1~auto+14]:
>> /etc/dovecot/dovecot.conf
>> # Pigeonhole version 0.5.1.alpha0 (d5f710e0)
>> # OS: Linux 4.9.0-4-amd64 x86_64 Debian 9.3 nfs
>> auth_worker_max_count = 200
>> dict {
>>   expire = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
>>   quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
>>   sqlquota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
>> }
>> disable_plaintext_auth = no
>> lock_method = dotlock
>> mail_fsync = always
>> mail_location = maildir:/mnt/virtual_mail/%d/%n
>> mail_nfs_index = yes
>> mail_nfs_storage = yes
>> mail_plugins = quota
>> mailbox_list_index = no
>> metric imap_select_no {
>>   event_name = imap_command_finished
>>   filter {
>>     name = SELECT
>>     tagged_reply_state = NO
>>   }
>> }
>> mmap_disable = yes
>> namespace inbox {
>>   inbox = yes
>>   location =
>>   mailbox Drafts {
>>     special_use = \Drafts
>>   }
>>   mailbox Junk {
>>     auto = subscribe
>>     special_use = \Junk
>>   }
>>   mailbox Sent {
>>     special_use = \Sent
>>   }
>>   mailbox "Sent Messages" {
>>     special_use = \Sent
>>   }
>>   mailbox Trash {
>>     special_use = \Trash
>>   }
>>   prefix =
>> }
>> passdb {
>>   args = /etc/dovecot/dovecot-sql.conf.ext
>>   driver = sql
>> }
>> plugin {
>>   quota = dict:User quota::proxy::sqlquota
>>   quota_grace = 10%%
>>   quota_rule = *:storage=1000m:messages=300000
>>   quota_rule2 = Trash:storage=+10%%:messages=+10%%
>>   quota_rule3 = Junk:storage=+20%%:messages=+20%%
>>   quota_status_nouser = DUNNO
>>   quota_status_overquota = 552 5.2.2 Mailbox is full
>>   quota_status_success = DUNNO
>>   quota_warning = storage=75%%:messages=75%% quota-warning 75 %u
>>   quota_warning2 = storage=95%%:messages=95%% quota-warning 95 %u
>>   quota_warning3 = -storage=100%%:messages=100%% quota-warning below %u
>>   sieve = /etc/dovecot/sieve/default.sieve
>>   sieve_global_dir = /etc/dovecot/sieve
>> }
>> protocols = " imap pop3"
>> service dict {
>>   unix_listener dict {
>>     mode = 0600
>>     user = vmail
>>   }
>> }
>> service imap {
>>   executable = imap
>> }
>> service quota-status {
>>   client_limit = 1000
>>   executable = quota-status -p postfix
>>   inet_listener {
>>     address = 127.0.0.1
>>     port = 12340
>>   }
>> }
>> service quota-warning {
>>   executable = script /usr/local/bin/quota-warning.sh
>>   user = vmail
>> }
>> ssl_ca = /etc/ssl/certs/ca-root.crt
>> ssl_cert = </etc/ssl/certs/stjerne.danskkabeltv.dk-2019.crt
>> ssl_cipher_list = TLSv1+HIGH !SSLv2 !RC4 !aNULL !eNULL !3DES-CBC !3DES @STRENGTH
>> ssl_dh =  # hidden, use -P to show it
>> ssl_key =  # hidden, use -P to show it
>> userdb {
>>   args = uid=2000 gid=2000 home=/mnt/virtual_mail/%d/%n
>>   driver = static
>> }
>> protocol lmtp {
>>   mail_plugins = quota
>> }
>> protocol lda {
>>   mail_plugins = quota
>> }
>> protocol imap {
>>   mail_plugins = quota imap_quota
>>   rawlog_dir = /tmp/rawlog/%u
>> }
> 
> Hi!
> 
> Thanks, we'll look into it.
> 
> Aki



-- 
+-------------------------------------------------------------------+
| Juan C. Blanco                                                    |
|                                                                   |
|  Centro de Calculo                 |                              |
|  E.T.S. Ingenieros Informáticos    |  E-mail: jcblanco at fi.upm.es  |
|  Universidad Politécnica de Madrid |                              |
|  Campus de Montegancedo            |                              |
|  Boadilla del Monte                |  Tel.:    (+34) 91 067 2771  |
|  28660 MADRID (Spain)              |  Fax :    (+34) 91 336 7412  |
+-------------------------------------------------------------------+


More information about the dovecot mailing list