[Dovecot] virtual plugin broken ? dovecot 2.0.6
Hi Timo, looks like virtual plugin is broken now with my setup dovecot 2.0.6 cant say to which version it stopped working ( didnt tested it trough all ) but has worked
i see nothing special in log why it stopped working
it should show unseen mail i.e in folder Junk too with pop3 clients, but only shows new inbox mails
after all i am confused what using better
pop3_uidl_format = %08Xu%08Xv ( most compatible ) or pop3_uidl_format = %g ( better with virtual )
pop3_reuse_xuidl = ? what ist the most compatible/konservative setting with maildir on a cluster filesystem
pop3_save_uidl = ? what ist the most compatible/konservative setting with maildir on a cluster filesystem
--log Oct 25 17:24:44 mail02 dovecot: pop3: Debug: Added userdb setting: plugin/namespace_2_inbox=yes
/etc/dovecot/.INBOX/dovecot-virtual
RealMails/* RealMails/INBOX RealMails/INBOX/* -RealMails/Trash -RealMails/Trash/* -RealMails/Sent -RealMails/Sent/* -RealMails/Templates -RealMails/Templates/* -RealMails/Drafts -RealMails/Drafts/* -RealMails/Archives -RealMails/Archives/* unseen
--sql
CASE '%s' WHEN 'pop3' THEN NULL ELSE 'yes' END AS namespace_1_inbox,
CASE '%s' WHEN 'pop3' THEN 'yes' ELSE NULL END AS namespace_2_inbox, \
---dovecot -n # 2.0.6 (aaca506ea33b): /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-25-server x86_64 Ubuntu 10.04.1 LTS auth_debug = yes auth_debug_passwords = yes auth_master_user_separator = * auth_mechanisms = plain login auth_socket_path = /var/run/dovecot/auth-userdb auth_verbose = yes auth_verbose_passwords = plain auth_worker_max_count = 300 dict { acl = mysql:/etc/dovecot/dovecot-dict-acl-sql.conf.ext expire = mysql:/etc/dovecot/dovecot-dict-expire-sql.conf.ext quotadict = mysql:/etc/dovecot/dovecot-dict-quota-sql.conf.ext } disable_plaintext_auth = no first_valid_gid = 1001 first_valid_uid = 1001 hostname = last_valid_gid = 1001 last_valid_uid = 1001 listen = * login_greeting = imap, pop ready mail_access_groups = vmail mail_debug = yes mail_fsync = always mail_gid = 1001 mail_location = maildir:~/ mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = expire virtual fts fts_squat mail_log autocreate notify acl mail_privileged_group = vmail mail_uid = 1001 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 mmap_disable = yes namespace { hidden = no inbox = yes list = yes location = prefix = separator = / subscriptions = yes type = private } namespace { hidden = yes list = no location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ prefix = virtual/ separator = / subscriptions = no type = private } namespace { hidden = yes list = no location = prefix = RealMails/ separator = / type = private } namespace { inbox = no list = children location = maildir:/usr/local/virtual/%%d/%%u/:INDEX=~/shared/%%d/%%u/ prefix = shared/%%u/ separator = / subscriptions = no type = shared } passdb { args = /etc/dovecot/dovecot-sql-master.conf.ext driver = sql master = yes pass = yes } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { acl = vfile acl_shared_dict = proxy::acl autocreate = Trash autocreate2 = Junk autocreate3 = Sent autocreate4 = Drafts autocreate5 = Templates autosubscribe = Trash autosubscribe2 = Junk autosubscribe3 = Sent autosubscribe4 = Drafts autosubscribe5 = Templates expire = Trash expire2 = Trash/* expire3 = Junk expire4 = Junk/* expire_dict = proxy::expire fts = squat home = /usr/local/virtual/%d/%u mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size mail_log_group_events = yes quota = dict:::proxy::quotadict quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = /usr/local/virtual/%d/%u/dovecot.sieve sieve_before = /etc/dovecot/sieve/global.sieve sieve_dir = /usr/local/virtual/%d/%u/sieve sieve_global_dir = /etc/dovecot/sieve/ sieve_global_path = /etc/dovecot/sieve/global.sieve } postmaster_address = hostmaster@mail02.mailspooler.com protocols = imap pop3 lmtp sieve sendmail_path = /usr/lib/sendmail service auth-worker { user = root } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { group = vmail mode = 0600 user = vmail } } service dict { extra_groups = vmail unix_listener dict { group = vmail mode = 0660 } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } process_min_avail = 0 service_count = 1 } service imap-postlogin { executable = script-login /usr/local/bin/postlogin_imap.sh user = root } service imap { executable = imap imap-postlogin process_limit = 1024 vsz_limit = 256 M } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } } service managesieve-login { inet_listener { address = 127.0.0.1 port = 2000 } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service pop3-postlogin { executable = script-login /usr/local/bin/postlogin_pop3.sh user = root } service pop3 { executable = pop3 pop3-postlogin process_limit = 1024 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { mode = 0666 user = vmail } user = dovecot } ssl_ca =
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On Mon, 2010-10-25 at 17:53 +0200, Robert Schetterer wrote:
after all i am confused what using better
pop3_uidl_format = %08Xu%08Xv ( most compatible ) or pop3_uidl_format = %g ( better with virtual )
%g is always the best value, except with mbox because it doesn't have true GUIDs. Of course, if you change it now the pop3 clients will redownload all mails.
pop3_reuse_xuidl = ? what ist the most compatible/konservative setting with maildir on a cluster filesystem
This is useful only if you converted from another POP3 server to Dovecot. Keep it "no".
pop3_save_uidl = ? what ist the most compatible/konservative setting with maildir on a cluster filesystem
This can be useful if you're changing pop3_uidl_format setting. First set this to "yes", then make sure all users have logged in with POP3, and then it's safe to change pop3_uidl_format because the old UIDLs have been permanently saved to dovecot-uidlist file.
RealMails/* RealMails/INBOX RealMails/INBOX/*
I don't think you need the INBOX lines above, since RealMails/* should match them already.
--sql CASE '%s' WHEN 'pop3' THEN NULL ELSE 'yes' END AS namespace_1_inbox,
CASE '%s' WHEN 'pop3' THEN 'yes' ELSE NULL END AS namespace_2_inbox, \
This no longer works like this with v2.0. Change them to e.g.:
AS namespace_1_inbox -> AS 'namespace/default/inbox' AS namespace_2_inbox -> AS 'namespace/virtual/inbox'
Then give those same names to your namespaces:
namespace {
namespace default {
hidden = no inbox = yes list = yes location = prefix = separator = / subscriptions = yes type = private } namespace {
namespace virtual {
hidden = yes list = no location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ prefix = virtual/ separator = / subscriptions = no type = private }
Am 25.10.2010 18:07, schrieb Timo Sirainen:
On Mon, 2010-10-25 at 17:53 +0200, Robert Schetterer wrote:
after all i am confused what using better
pop3_uidl_format = %08Xu%08Xv ( most compatible ) or pop3_uidl_format = %g ( better with virtual )
%g is always the best value, except with mbox because it doesn't have true GUIDs. Of course, if you change it now the pop3 clients will redownload all mails.
pop3_reuse_xuidl = ? what ist the most compatible/konservative setting with maildir on a cluster filesystem
This is useful only if you converted from another POP3 server to Dovecot. Keep it "no".
pop3_save_uidl = ? what ist the most compatible/konservative setting with maildir on a cluster filesystem
This can be useful if you're changing pop3_uidl_format setting. First set this to "yes", then make sure all users have logged in with POP3, and then it's safe to change pop3_uidl_format because the old UIDLs have been permanently saved to dovecot-uidlist file.
RealMails/* RealMails/INBOX RealMails/INBOX/*
I don't think you need the INBOX lines above, since RealMails/* should match them already.
--sql CASE '%s' WHEN 'pop3' THEN NULL ELSE 'yes' END AS namespace_1_inbox,
CASE '%s' WHEN 'pop3' THEN 'yes' ELSE NULL END AS namespace_2_inbox, \This no longer works like this with v2.0. Change them to e.g.:
AS namespace_1_inbox -> AS 'namespace/default/inbox' AS namespace_2_inbox -> AS 'namespace/virtual/inbox'
Then give those same names to your namespaces:
namespace {
namespace default {
hidden = no inbox = yes list = yes location = prefix = separator = / subscriptions = yes type = private } namespace {
namespace virtual {
hidden = yes list = no location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ prefix = virtual/ separator = / subscriptions = no type = private }
thx Timo, for quick answer i ll try and report
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
Am 25.10.2010 18:16, schrieb Robert Schetterer:
Am 25.10.2010 18:07, schrieb Timo Sirainen:
On Mon, 2010-10-25 at 17:53 +0200, Robert Schetterer wrote:
after all i am confused what using better
pop3_uidl_format = %08Xu%08Xv ( most compatible ) or pop3_uidl_format = %g ( better with virtual )
%g is always the best value, except with mbox because it doesn't have true GUIDs. Of course, if you change it now the pop3 clients will redownload all mails.
pop3_reuse_xuidl = ? what ist the most compatible/konservative setting with maildir on a cluster filesystem
This is useful only if you converted from another POP3 server to Dovecot. Keep it "no".
pop3_save_uidl = ? what ist the most compatible/konservative setting with maildir on a cluster filesystem
This can be useful if you're changing pop3_uidl_format setting. First set this to "yes", then make sure all users have logged in with POP3, and then it's safe to change pop3_uidl_format because the old UIDLs have been permanently saved to dovecot-uidlist file.
RealMails/* RealMails/INBOX RealMails/INBOX/*
I don't think you need the INBOX lines above, since RealMails/* should match them already.
--sql CASE '%s' WHEN 'pop3' THEN NULL ELSE 'yes' END AS namespace_1_inbox,
CASE '%s' WHEN 'pop3' THEN 'yes' ELSE NULL END AS namespace_2_inbox, \This no longer works like this with v2.0. Change them to e.g.:
AS namespace_1_inbox -> AS 'namespace/default/inbox' AS namespace_2_inbox -> AS 'namespace/virtual/inbox'
Then give those same names to your namespaces:
namespace {
namespace default {
hidden = no inbox = yes list = yes location = prefix = separator = / subscriptions = yes type = private } namespace {
namespace virtual {
hidden = yes list = no location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ prefix = virtual/ separator = / subscriptions = no type = private }
thx Timo, for quick answer i ll try and report
Hi Timo, it worked with all explains you made, for note: tested with outlook express ( as the worst client my users mostly use ) also no mail doubles redownloads etc for luck it seems that m$ has no default email client integrated in win7 ( which i didnt know since yet )
Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
participants (2)
-
Robert Schetterer
-
Timo Sirainen