[SOLVED] SOGo and multiple mail accounts

Hi all

After considering to install SOGo I did read about the features of it and found it useful to have, so I installed the app. As I did discover the app I noticed that the promoted Multiple Mail Accounts (see below) where not configurable. But without this feature SOGo isn’t much useful for me.

https://www.sogo.nu/about.html#/features
Multiple Mail Accounts
Configure all your mail accounts (IMAP) from SOGo and forget about login-in to multiple webmail services.

Is there a reason not to have this feature? And is it possible to switch it on in the configuration?
I found the configuration file under /etc/sogo/sogo.conf.

Thanks for some thoughts on this.

1 Like

YES, YES,YES :slight_smile:
Read the docs! and you will have joy! I found the missing part. In the configuration I had to add the following line in the IMAP section:

 SOGoMailAuxiliaryUserAccountsEnabled = YES;

which looks like this afterwards:

 /* IMAP */
  SOGoDraftsFolderName = "Drafts";
  SOGoSentFolderName = "Sent";
  SOGoTrashFolderName = "Trash";
  SOGoJunkFolderName = "Junk";
  SOGoMailAuxiliaryUserAccountsEnabled = YES;
  SOGoIMAPServer = "imap://127.0.0.1:143/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";
  SOGoSieveServer = "sieve://127.0.0.14190/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";

With this you can add multiple mail accounts under settings > e-mail > IMAP-accounts > new mail-account (I have it in German and did freely translate it).

I did test this feature and it seems to behave correct.

Thank you FreedomBox-Team!!!

1 Like

Some more information on my SOGo configuration:
When you want to write an e-mail in SOGo, then your account name will be the sender name. To change this, you need to add this configuration:

SOGoMailCustomFromEnabled

This is is the text from the documentation for this config:
Parameter used to allow or not users to specify
custom “From” addresses from SOGo’s
preferences panel.
Defaults to NO when unset.

This allows you to have your full name as sender under identity (in German: Identitäten)

I moved the configuration mentioned in my previous post (see above) to the following section:

/* General */
SOGoMailAuxiliaryUserAccountsEnabled = YES;
SOGoMailCustomFromEnabled = YES;

1 Like

There is an update coming to the SOGo app in the next FreedomBox release, so your custom config will be overwritten. You should watch out for the update notification.

1 Like

@nbenedek I don’t know if the above mentioned configuration should have been corrected or not. But my custom config has been overwritten by the update on 25.9.3 and I had to correct the config again…

Yes, that’s what I meant. Basically whenever the SOGo app is updated, the config file’s content will be overwitten with the configs deifined here: plinth/modules/sogo/privileged.py · main · FreedomBox / FreedomBox · GitLab. Unfortunately SOGo only accepts configurations from /etc/sogo/sogo.conf, drop-in configs are not possible.

Thanks! This is fine for me :slight_smile:

@David many thanks for the two configuration change suggestions :partying_face:. They work exactly as described and are useful to most FreedomBox users. So, posted a patch to make the change to all the users. As an added bonus, your configuration will no longer be overwritten by FreedomBox (at it also contains the same changes).

2 Likes

Thank you @Sunil for posting the patch! Postfix/Dovecot and SOGo are a dream team! :slight_smile:

1 Like