dovecot.sieve shows up as a mailbox
Hello,
Config infos below.
Short version, I am getting this weird anomaly on my main email account. Such that, "dovecot.sieve" is showing up as a mailbox in my various email clients (e.g. k-9 (mobile), and Evolution).
I have tried deleting the "rogue folder" with doveadm, but it just returns.
Anyone have any suggestions where I can track this down.
dovecot --version 2.2.27
dovecot -n
# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.16 (fed8554) # OS: Linux 4.9.0-6-amd64 x86_64 Debian 9.8 ext4 auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_verbose = yes auth_verbose_passwords = yes mail_debug = yes mail_location = maildir:/var/mail/vmail/%d/%n mail_plugins = " quota" mail_privileged_group = vmail 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 { inbox = yes location = mailbox Archive { auto = subscribe special_use = \Archive } mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash
} prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { quota = maildir:User quota quota_grace = 10%% quota_rule = *:storage=10G quota_rule2 = Trash:storage=+1G quota_status_overquota = 552 5.2.2 Mailbox is full quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_after = /etc/dovecot/sieve/spamfilter.sieve sieve_dir = ~/sieve }
protocols = " imap lmtp sieve" service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } } service imap-login { inet_listener imaps { port = 993 ssl = yes } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } ssl = required ssl_cert =
This because you have a very common misconfiguration, which is that your mail_home and mail_location are pointing to same directory, and that lead into this problem.
Solution is of course to use:
mail_home = /var/mail/vmail/%d/%n mail_location = maildir:~/Mail
Aki
On 21 March 2019 16:48 Esteban L via dovecot dovecot@dovecot.org wrote:
Hello,
Config infos below.
Short version, I am getting this weird anomaly on my main email account. Such that, "dovecot.sieve" is showing up as a mailbox in my various email clients (e.g. k-9 (mobile), and Evolution).
I have tried deleting the "rogue folder" with doveadm, but it just returns.
Anyone have any suggestions where I can track this down.
dovecot --version 2.2.27
dovecot -n
# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.16 (fed8554) # OS: Linux 4.9.0-6-amd64 x86_64 Debian 9.8 ext4 auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_verbose = yes auth_verbose_passwords = yes mail_debug = yes mail_location = maildir:/var/mail/vmail/%d/%n mail_plugins = " quota" mail_privileged_group = vmail 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 { inbox = yes location = mailbox Archive { auto = subscribe special_use = \Archive } mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash
} prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { quota = maildir:User quota quota_grace = 10%% quota_rule = *:storage=10G quota_rule2 = Trash:storage=+1G quota_status_overquota = 552 5.2.2 Mailbox is full quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_after = /etc/dovecot/sieve/spamfilter.sieve sieve_dir = ~/sieve }
protocols = " imap lmtp sieve" service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } } service imap-login { inet_listener imaps { port = 993 ssl = yes } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } ssl = required ssl_cert =
On 3/21/19 3:57 PM, Aki Tuomi via dovecot wrote:
This because you have a very common misconfiguration, which is that your mail_home and mail_location are pointing to same directory, and that lead into this problem.
Solution is of course to use:
mail_home = /var/mail/vmail/%d/%n mail_location = maildir:~/Mail
Aki
While not very intuitive, I have :
mail_home = /var/mail/vmail/%d/%n/dovecot mail_location = maildir:~/..
Which works for me ^^'
Yassine.
On 21 March 2019 17:05 Yassine Chaouche via dovecot dovecot@dovecot.org wrote:
On 3/21/19 3:57 PM, Aki Tuomi via dovecot wrote:
This because you have a very common misconfiguration, which is that your mail_home and mail_location are pointing to same directory, and that lead into this problem.
Solution is of course to use:
mail_home = /var/mail/vmail/%d/%n mail_location = maildir:~/Mail
Aki
While not very intuitive, I have :
mail_home = /var/mail/vmail/%d/%n/dovecot mail_location = maildir:~/..
Which works for me ^^'
Yassine.
Except it would have the same problem, but with 'dovecot' as folder under some configurations.
Aki
On 3/21/19 4:13 PM, Aki Tuomi via dovecot wrote:
On 21 March 2019 17:05 Yassine Chaouche via dovecot dovecot@dovecot.org wrote:
[...] While not very intuitive, I have :
mail_home = /var/mail/vmail/%d/%n/dovecot mail_location = maildir:~/..
Which works for me ^^'
Yassine. Except it would have the same problem, but with 'dovecot' as folder under some configurations.
Aki
Well, none of my users have reported they can see that folder. I myself use webmail, thunderbird on my PC and k9 mail on my phone and don't see that folder in any of these clients.
Yassine.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 21 Mar 2019, Yassine Chaouche via dovecot wrote:
On 3/21/19 4:13 PM, Aki Tuomi via dovecot wrote:
On 21 March 2019 17:05 Yassine Chaouche via dovecot dovecot@dovecot.org wrote:
[...] While not very intuitive, I have :
mail_home = /var/mail/vmail/%d/%n/dovecot mail_location = maildir:~/..
Which works for me ^^'
Yassine. Except it would have the same problem, but with 'dovecot' as folder under some configurations.
Aki
Well, none of my users have reported they can see that folder. I myself use webmail, thunderbird on my PC and k9 mail on my phone and don't see that folder in any of these clients.
Because the "home" directory is a subdir of the mail location, some storage backends try to interprete any entry as some sort of mailbox. This is not the case with Maildir, because mailboxes start with a ".", unless you use the FS layout, I think. Then there is the potential naming conflict, that "dovecot" might become a reserved filename in a Maildir.
Because of these if's and whether's it is safer to configure the mail location as subdir of the home dir.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBXJSHisQnQQNheMxiAQJsngf9EXzlERrtLizct+RV+Cn1OgIgxZqikb6e 8nR+wYmG1Ni8Ct8AiUiqfoJPD18PaykXoE4QQmzTrF70W+/6orc7bnk52fktk9DF Vdd+t8GQ4ZvfZnw3/RAVlnQfxPTQuw5C8F8btWWK86DTnQ7hEvBM4NiF0YUaL+nG J+AK0MnkIVFUAM3bD7HuJaH24B+lDLjbsM0oF+5ATRghzpgkTqpG/tbNc2TBx/4o 5yi/nTANgWd3EDIhO+/YLWnAS2vnR+Ym7A7PSJGfQDIygAx0t/SKbO+A8s7n7a9n 3aE1hJw4E/HAOUzefEmvJHnaMjAv/xND5Jdme/5bbcqlZ9qj/KEwSw== =A15Z -----END PGP SIGNATURE-----
Thanks for the help.
This did solve my problem, and created a little hiccup.
Namely, all the users that had email account LOST their mail. I am just starting migrating to this new mail server setup, so mostly just insignificant testing emails.
I am sure there is a way to recover the old mails? Doesn't matter, not really much there.
-- Sent from: http://dovecot.2317879.n4.nabble.com/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 21 Mar 2019, Drexl Spivey via dovecot wrote:
This did solve my problem, and created a little hiccup.
Namely, all the users that had email account LOST their mail. I am just starting migrating to this new mail server setup, so mostly just insignificant testing emails.
I am sure there is a way to recover the old mails? Doesn't matter, not really much there.
if you didn't removed files, check out https://wiki2.dovecot.org/MailboxFormat/Maildir
to get familiar with the Maildir format.
You had the mailboxes in: maildir:/var/mail/vmail/%d/%n
hence, there should be "new" and "cur" directories of the INBOX and some files, like indexes. And subdirectories starting with ".", which contain "new" and "cur" directories.
If your mailboxes are located at maildir:~/Maildir now, the content of the "new" and "cur" directories belong into this subdirectory.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBXJSJGMQnQQNheMxiAQKygAf+JEJ6afk5OPwGRHl/+J9MxGFsT1G7OquI bgHfZlMj1esvzuxyjpINLxT5NUfD/qzgQ5mnTiu3oFdC83gmx1MsyCkss40hjb5i Ube1SDNbKRNyfiQfrFXpblPA/0z9bJsqt8eXMuZVwLCNl1fiU3nlmYNf9dUUHRgh QHLYu9lU68tyIq7i0dxOkUXC51h6Y8gW+VN6K0sa+fJUqQdu5yCaf1NWOjPAkz+d ac8N1MaJHs0lfYcrJBUuHPRCeDVZ2nf06VufKCAQtSfpGwMsjH6YTaLzNoH+m2xg xLsOwCO0z7mPxLWerGU3nmYfGoAbz7e7aUYgXXQOr0Id6sr1EcjBvg== =vVxr -----END PGP SIGNATURE-----
participants (5)
-
Aki Tuomi
-
Drexl Spivey
-
Esteban L
-
Steffen Kaiser
-
Yassine Chaouche