dovecot acl delete messages questions

2019-08-12 Thread hfh--- via dovecot
Dovecot's acl plugin can prevent deletion of messages,it works very well!

I want:
Some ips can delete messages, other ips can not delete messages,can anyone help 
me?



h...@cndns.com


Re: How to make the client tool only display emails within 30 days?

2019-08-08 Thread hfh--- via dovecot
Thank you so much, I tried it!



h...@cndns.com
 
发件人: Aki Tuomi via dovecot
发送时间: 2019-08-08 15:47
收件人: h...@cndns.com; dovecot
主题: Re: How to make the client tool only display emails within 30 days?

On 8.8.2019 10.46, hfh--- via dovecot wrote:
doveadm search -u matt mailbox "*" savedbefore 30d
Dovecot's configuration or plugin can do similar effects like the above? 
Outlook uses pop or imap to receive mail within 30 days.

Virtual plugin can be used to do these kind of configurations.
Aki


How to make the client tool only display emails within 30 days?

2019-08-08 Thread hfh--- via dovecot
doveadm search -u matt mailbox "*" savedbefore 30d
Dovecot's configuration or plugin can do similar effects like the above?
Outlook uses pop or imap to receive mail within 30 days.


How to make the client tool only display emails within 30 days?

2019-08-08 Thread hfh--- via dovecot
How to make the client tool only display emails within 30 days? thanks!!!



h...@cndns.com


mail_max_userip_connections

2019-05-28 Thread hfh--- via dovecot
mail_max_userip_connections
Can I set up an ip whitelist list, and the ip in this whitelist is 
unrestricted? thanks!!!



h...@cndns.com


Directory name have some malicious characters.

2019-05-19 Thread hfh via dovecot
 

Directory name have some malicious characters, is it safe?How can I
exclude some characters,thanks! 

 

Re: Re: dict lookup too long time

2019-05-09 Thread hfh--- via dovecot
logging some error,dict process is not dead.



h...@cndns.com
 
From: Aki Tuomi via dovecot
Date: 2019-05-09 14:21
To: h...@cndns.com; dovecot
Subject: Re: dict lookup too long time

On 9.5.2019 8.00, hfh--- via dovecot wrote:
hi,

The following error message sometimes appears on my server log,it causes the 
mailbox to exceed the disk capacity limit.

May  9 09:54:11 imap dovecot: imap(h...@cndns.com): Error: dict-client: Lookup 
'priv/quota/storage' failed: Connection closed: read(size=8192) failed: 
Connection reset by peer (reply took 2.728 secs (2.729 in dict wait, 0.000 in 
other ioloops, 0.000 in locks))


Is the dict process by chance dying or logging some error(s)?
Aki


dict lookup too long time

2019-05-08 Thread hfh--- via dovecot
hi,

The following error message sometimes appears on my server log,it causes the 
mailbox to exceed the disk capacity limit.

May  9 09:54:11 imap dovecot: imap(h...@cndns.com): Error: dict-client: Lookup 
'priv/quota/storage' failed: Connection closed: read(size=8192) failed: 
Connection reset by peer (reply took 2.728 secs (2.729 in dict wait, 0.000 in 
other ioloops, 0.000 in locks))

dovecot -n

# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.24 (124e06aa)
# OS: Linux 2.6.32-504.el6.x86_64 x86_64 CentOS release 6.6 (Final) 
# Hostname: imap3bak.sh.chengmail.me
auth_master_user_separator = *
auth_mechanisms = PLAIN LOGIN
deliver_log_format = msgid=%m, subject=%s, from=%f, %$
dict {
  acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}
disable_plaintext_auth = no
first_valid_uid = 2000
last_valid_uid = 2000
listen = *
mail_fsync = never
mail_gid = 2000
mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mail_plugins = quota lazy_expunge zlib
mail_uid = 2000
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
mmap_disable = yes
namespace {
  list = children
  location = maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
  prefix = Shared/%%u/
  separator = /
  subscriptions = yes
  type = shared
}
namespace {
  hidden = yes
  list = no
  location = maildir:/var/vmail/backup/expunged/%d/%n
  prefix = .DELETED/
  separator = /
}
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Junk {
auto = subscribe
special_use = \Junk
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  prefix = 
  separator = /
}
passdb {
  args = /etc/dovecot/dovecot-mysql.conf
  driver = sql
}
passdb {
  args = /etc/dovecot/dovecot-fallback-password-mysql.conf
  driver = sql
}
passdb {
  args = /etc/dovecot/dovecot-fallback-mysql.conf
  driver = sql
}
passdb {
  args = /etc/dovecot/dovecot-master-users-password
  driver = passwd-file
  master = yes
}
plugin {
  acl = vfile:/etc/dovecot/dovecot-acl
  acl_globals_only = yes
  auth_socket_path = /var/run/dovecot/auth-master
  lazy_expunge = .DELETED/
  quota = dict:user::proxy::quotadict
  quota_grace = 0%%
  quota_max_mail_size = 70M
  quota_rule = *:storage=1G
  quota_rule2 = *:messages=0
  quota_warning = storage=85%% quota-warning 85 %u
  quota_warning2 = storage=90%% quota-warning 90 %u
  quota_warning3 = storage=95%% quota-warning 95 %u
  sieve = /%Lh/sieve/dovecot.sieve
  sieve_default = /var/vmail/sieve/dovecot.sieve
  sieve_default_name = managesieve
  sieve_dir = /%Lh/sieve
}
protocols = pop3 imap sieve
service anvil {
  client_limit = 20500
}
service auth {
  client_limit = 20500
  unix_listener /var/spool/postfix/dovecot-auth {
group = postfix
mode = 0666
user = postfix
  }
  unix_listener auth-master {
group = vmail
mode = 0666
user = vmail
  }
  unix_listener auth-userdb {
group = vmail
mode = 0660
user = vmail
  }
}
service dict {
  unix_listener dict {
group = vmail
mode = 0660
user = vmail
  }
}
service imap-login {
  process_min_avail = 24
  service_count = 0
  vsz_limit = 2 G
}
service imap {
  process_limit = 1024000
  process_min_avail = 24
  vsz_limit = 2 G
}
service pop3-login {
  service_count = 0
}
service quota-warning {
  executable = script /usr/local/bin/dovecot-quota-warning.sh
  unix_listener quota-warning {
group = vmail
mode = 0660
user = vmail
  }
}
ssl_ca =