Hi,
I have a situation here, i recently migrated from cyrus to dovecot 2.13
i'm using mysql as userdb
i'm also using the concept of shared mailboxes
now when i send mail to the shared mailbox/group and cc to one of the subscribed user of the shared mail box , the user get mail twice in his inbox,
Is there a way to avoid this ... ?
below i have pasted my dovecot.conf
##########################################
!include_try /usr/share/dovecot/protocols.d/*.protocol
dict {
#quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
#expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
#acl_groups = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
!include conf.d/*.conf
# A config file can also tried to be included without giving an error if
# it's not found:
!include_try local.conf
protocols = imap sieve
#mail_location = maildir:/var/vmail/%1u/user/%n
mail_location = maildir:/var/spool/dovecot/mail/user/%1u/%n
disable_plaintext_auth = yes
auth_mechanisms = plain login
passdb {
driver = mysql
driver = sql
args = /etc/dovecot/dovecot-sql.conf
}
namespace {
type=private
separator = .
prefix =
# subscriptions = yes
inbox = yes
# list = yes
# hidden = no
# mail_location = maildir:/var/spool/dovecot/mail/user/%1u/%n
}
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
}
service auth {
unix_listener auth-master {
group = vmail
user = vmail
mode = 0600
}
}
protocol imap {
mail_plugins = acl imap_acl quota imap_quota autocreate fts fts_squat
}
protocol lda {
# If you use deliver with Sieve you may want to enforce ACLs:
mail_plugins = acl sieve quota
}
plugin {
# Without global ACLs:
acl = vfile
# With global ACLs in /etc/dovecot/acls/ directory:
#acl = vfile:/etc/dovecot/acls
autocreate = Trash
autocreate2 = Spam
fts = squat
fts_squat = partial=4 full=10
quota = maildir:User quota
quota_rule = *:storage=5G
quota_rule2 = Trash:storage=+100M
quota_rule3 = Spam:ignore
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
args = /etc/dovecot/dovecot-sql.conf
}
service imap {
executable = imap imap-postlogin
}
#temp solution
service imap-postlogin {
executable = script-login /etc/dovecot/acl_groups.sh
# user = $default_internal_user
unix_listener imap-postlogin {
}
}
mail_debug=yes
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0660
# Assuming the default Postfix user and group
user = vmail
group = vmail
}
}
###########################################################
#auth_verbose=yes
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
service managesieve-login {
inet_listener sieve {
port = 4190
}
inet_listener sieve_deprecated {
port = 2000
}
}
protocol sieve {
managesieve_logout_format = bytes=%i/%o
managesieve_max_line_length = 65536
}
namespace {
type = public
separator = .
prefix = shared.
location = maildir:/var/spool/dovecot/mail/shared:CONTROL=~/Maildir/shared:INDEX=~/Maildir/shared
subscriptions = no
hidden = no
list = children
}
##High-performance mode##
service imap-login {
service_count = 0
#client_limit = $default_client_limit
process_min_avail = 4
vsz_limit = 64M
}
#auth_debug_passwords=yes
passdb {
driver = pam
}
userdb {
driver = passwd
}
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-master {
group = vmail
mode = 0600
user = vmail
}
}
}
##High-performance mode##
service imap-login {
service_count = 0
#client_limit = $default_client_limit
process_min_avail = 4
vsz_limit = 64M
}
#auth_debug_passwords=yes
passdb {
driver = pam
}
userdb {
driver = passwd
}
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-master {
group = vmail
mode = 0600
user = vmail
}
}
I have a situation here, i recently migrated from cyrus to dovecot 2.13
i'm using mysql as userdb
i'm also using the concept of shared mailboxes
now when i send mail to the shared mailbox/group and cc to one of the subscribed user of the shared mail box , the user get mail twice in his inbox,
Is there a way to avoid this ... ?
below i have pasted my dovecot.conf
##########################################
!include_try /usr/share/dovecot/protocols.d/*.protocol
dict {
#quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
#expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
#acl_groups = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
!include conf.d/*.conf
# A config file can also tried to be included without giving an error if
# it's not found:
!include_try local.conf
protocols = imap sieve
#mail_location = maildir:/var/vmail/%1u/user/%n
mail_location = maildir:/var/spool/dovecot/mail/user/%1u/%n
disable_plaintext_auth = yes
auth_mechanisms = plain login
passdb {
driver = mysql
driver = sql
args = /etc/dovecot/dovecot-sql.conf
}
namespace {
type=private
separator = .
prefix =
# subscriptions = yes
inbox = yes
# list = yes
# hidden = no
# mail_location = maildir:/var/spool/dovecot/mail/user/%1u/%n
}
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
}
service auth {
unix_listener auth-master {
group = vmail
user = vmail
mode = 0600
}
}
protocol imap {
mail_plugins = acl imap_acl quota imap_quota autocreate fts fts_squat
}
protocol lda {
# If you use deliver with Sieve you may want to enforce ACLs:
mail_plugins = acl sieve quota
}
plugin {
# Without global ACLs:
acl = vfile
# With global ACLs in /etc/dovecot/acls/ directory:
#acl = vfile:/etc/dovecot/acls
autocreate = Trash
autocreate2 = Spam
fts = squat
fts_squat = partial=4 full=10
quota = maildir:User quota
quota_rule = *:storage=5G
quota_rule2 = Trash:storage=+100M
quota_rule3 = Spam:ignore
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
args = /etc/dovecot/dovecot-sql.conf
}
service imap {
executable = imap imap-postlogin
}
#temp solution
service imap-postlogin {
executable = script-login /etc/dovecot/acl_groups.sh
# user = $default_internal_user
unix_listener imap-postlogin {
}
}
mail_debug=yes
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0660
# Assuming the default Postfix user and group
user = vmail
group = vmail
}
}
###########################################################
#auth_verbose=yes
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
service managesieve-login {
inet_listener sieve {
port = 4190
}
inet_listener sieve_deprecated {
port = 2000
}
}
protocol sieve {
managesieve_logout_format = bytes=%i/%o
managesieve_max_line_length = 65536
}
namespace {
type = public
separator = .
prefix = shared.
location = maildir:/var/spool/dovecot/mail/shared:CONTROL=~/Maildir/shared:INDEX=~/Maildir/shared
subscriptions = no
hidden = no
list = children
}
##High-performance mode##
service imap-login {
service_count = 0
#client_limit = $default_client_limit
process_min_avail = 4
vsz_limit = 64M
}
#auth_debug_passwords=yes
passdb {
driver = pam
}
userdb {
driver = passwd
}
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-master {
group = vmail
mode = 0600
user = vmail
}
}
}
##High-performance mode##
service imap-login {
service_count = 0
#client_limit = $default_client_limit
process_min_avail = 4
vsz_limit = 64M
}
#auth_debug_passwords=yes
passdb {
driver = pam
}
userdb {
driver = passwd
}
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-master {
group = vmail
mode = 0600
user = vmail
}
}