1

Topic: SOGo: set a default email signature for all mailboxes

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 2021020901 (Backend: mariadb, Date: 2021-02-10 13:36:19) iRedMail Easy
- Linux/BSD distribution name and version: Ubuntu 20.04
====

Hi,

I'm trying to set a default email signature for all users. Therefore I've found this command:

sogo-tool user-preferences set defaults 'myuser@example.com' SOGoMailSignature '{"SOGoMailSignature":"Greetings from iRedMail"}'

It runs without error and the following command:

sogo-tool user-preferences get defaults 'myuser@example.com' SOGoMailSignature

also returns:

<0x0x55c718b5e890[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
<0x0x55c718b5e890[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
SOGoMailSignature: "Greetings from iRedMail"

But I cannot see the signature when writing a new email. Also I cannot see it in the SOGo web settings (settings->e-mail->IMAP).

Any idea what's wrong?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: SOGo: set a default email signature for all mailboxes

It might be caused by cache (memcached), does it work after waited for some minutes?

3

Re: SOGo: set a default email signature for all mailboxes

Apparantly SOGoMailSignature is deprecated: https://www.sogo.nu/bugs/view.php?id=5259

4

Re: SOGo: set a default email signature for all mailboxes

Works like this:

sogo-tool user-preferences set defaults 'user@example.net' SOGoMailIdentities '{"SOGoMailIdentities": [{"email": "user@example.net", "isDefault": 1, "fullName": "The Test User", "signature": "Greetings from iRedMail"}]}'

5

Re: SOGo: set a default email signature for all mailboxes

Thanks for sharing.