Open-xchange imap folders


#1

Hi,

I just connected thunderbird to open-xchange imap, and got some extra folders in German:

Inbox
Drafts
Entwurfe
Gesendete Objekte
Spam
Papierkorb
Trash
Sent Items

Anyone else seeing this?

Gerald


#2

Hello Gerald,

those are the default folders for a german installation. There are two systems that are responsible for folder display and generation: Dovecot and OX.
You can see the OX defaults in /opt/open-xchange/etc/AdminUser.properties. If you configure a certain language for your user in the OX webinterface, those folders should be shown.

Dovecot is the IMAP server that is responsible for storing mails. It will automatically create and subscribe to the folder configured through the UCR variables mail/dovecot/mailboxes/auto/.*
There is another variable that is important for IMAP-clients: mail/dovecot/mailboxes/auto/.*
It tells for example Thunderbird what a certain folder is used for (“Sent” → store sent mails here, etc.).

If you wish to switch the automatically created and subscribed folders, change those variables.
Use this to get an overview:

ucr search mail/dovecot/mailboxes/

There is technical blog article on Dovecot in UCS for more information.

Greetings
Daniel


#3

Hi Daniel,

Thanks! I ended up setting mail/dovecot/mailboxes/auto/ from subscribe to no and they no longer show up.

Gerald


#4

I was just finding this thread, and playing with the settings…
Doesn’t do what i would like it to do.:slight_smile:

We allready have a .Sent folder inside the Users /var/spool/dovecot/private/domainname/username/Maildir.
But whatever we tried, everytime the user logs in with OX GUI, the Folder .Gesendete \Objekte will be created and configured as the default Sent folder.
We want the existing .Sent folder to be used…
Any idea welcome!

thanks
Sascha


#5

I actually switched mailservers. Open-xchange does not play nicely with Outlook and any caldav plugin I found.

I use univention for email, but have NethServer with SOGo as my groupware, authenticating against UCS AD.

Gerald


#6

Existing users can change this in settings→Accounts→E-Mail→Edit→ scroll to bottom

For new users it can be set (https://oxpedia.org/wiki/index.php?title=AppSuite:Configuration_properties) like this:

ucr set ox/cfg/AdminUser.properties/SENT_MAILFOLDER_DE_DE=Sent
systemctl restart open-xchange.service
wait_for_ox_server

Greetings
Daniel


#7

Do you see any way to configure this as the default for all OX Users in one step?

Thanks
Sascha


#8

hi. just tried that but it only has an effect for the ox appsuite not for ox6.
So I would prefer a dovecot based solution instead.
The .sent folder already exists because of a migration from another system.
any ideas?

thanks Sascha


#9

Dovecot should already be configured to advertise Sent as a sent-folder:

mail/dovecot/mailboxes/special/Gesendete Objekte: \Sent
mail/dovecot/mailboxes/special/Sent Messages: \Sent
mail/dovecot/mailboxes/special/Sent: \Sent

Greetings
Daniel


#10

Hi Daniel,

well, looks good here, but still Dovecot does not use the existing Folder:

/var/spool/dovecot/private/bar.de/foo/Maildir# ls -lah
insgesamt 372K
drwxr-xr-x 31 dovemail dovemail 4,0K Mai 15 12:16 .
drwxr-xr-x 4 dovemail dovemail 4,0K Mai 11 06:48 …
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 00:14 .Archives
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 08:01 .Archives.2003
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 07:41 .Archives.2004
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 08:35 .Archives.2005
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 08:46 .Archives.2006
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 08:35 .Archives.2007
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 08:32 .Archives.2008
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 09:33 .Archives.2009
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 07:54 .Archives.2010
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 08:37 .Archives.2011
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 08:10 .Archives.2012
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 08:22 .Archives.2013
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 07:33 .Archives.2014
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 08:01 .Archives.2015
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 07:42 .Archives.2016
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 15 12:15 .Archives.2017
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 00:13 .confirmed-ham
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 00:13 .confirmed-spam
drwxr-xr-x 2 dovemail dovemail 40K Mai 15 12:14 cur
-rw-r–r-- 1 dovemail dovemail 0 Mai 11 00:13 dovecot-acl-list
-rw-r–r-- 1 dovemail dovemail 448 Mai 15 12:14 dovecot.index
-rw-r–r-- 1 dovemail dovemail 28K Mai 15 12:16 dovecot.index.cache
-rw-r–r-- 1 dovemail dovemail 144 Mai 15 12:15 dovecot.index.log
-rw-r–r-- 1 dovemail dovemail 33K Mai 15 12:14 dovecot.index.log.2
-rw-r–r-- 1 dovemail dovemail 291 Mai 10 20:45 dovecot-keywords
-rw-r–r-- 1 dovemail dovemail 2,6K Mai 15 07:22 dovecot.list.index
-rw-r–r-- 1 dovemail dovemail 25K Mai 15 12:16 dovecot.list.index.log
-rw-r–r-- 1 dovemail dovemail 33K Mai 15 07:22 dovecot.list.index.log.2
-rw-r–r-- 1 dovemail dovemail 672 Mai 12 14:29 dovecot.mailbox.log
-rw-r–r-- 1 dovemail dovemail 350 Mai 15 12:12 dovecot-uidlist
-rw-r–r-- 1 dovemail dovemail 8 Mai 12 13:39 dovecot-uidvalidity
-r–r--r-- 1 dovemail dovemail 0 Mai 11 00:13 dovecot-uidvalidity.591390a7
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 16:26 .Drafts
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 15 12:16 .Entw&APw-rfe
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 17:55 .Gesendete Objekte
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 15 12:16 .Junk
-rw-r–r-- 1 dovemail dovemail 3,6K Mai 15 12:14 maildirsize
drwxr-xr-x 2 dovemail dovemail 36K Mai 15 12:12 new
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 12 14:19 .Papierkorb
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 15 10:39 .Sent
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 11 00:14 .Spam
-rw-r–r-- 1 dovemail dovemail 271 Mai 11 17:51 subscriptions
drwxr-xr-x 2 dovemail dovemail 4,0K Mai 15 12:12 tmp
drwxr-xr-x 5 dovemail dovemail 4,0K Mai 12 14:19 .Trash

Maybe the reg entry must be .Sent?
Thanks
Sascha


#11

Hi Sascha,

No - it’s correct like that.
And it does show up in your Maildir-listing - so everything is as it should be.

The thing is: While Dovecot does advertise the \Sent flag for various folders now, it’s still up to the clients to decide which one (if any) to use.

Regarding existing OX users: you could take a look at the MySQL tables localhost_5:user_mail_account and localhost_5:user_setting_mail. I see the string “Gesendete Objekte” in those two. So you can probably manipulate existing users directly here. This is in no way supported by OX or UCS of course.

Greetings
Daniel


#12

Hi Daniel,

that will do!
Mark this as solved!

Thanks for your great help
Sascha