View Issue Details

IDProjectCategoryView StatusLast Update
0003097SOGoWeb Calendarpublic2015-02-18 14:56
Reporterremy Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Platform[Client] MicrosoftOSWindowsOS Version7
Product Version2.2.13 
Summary0003097: collected address book is not automatically created
Description

after an update, the collected address book is not automatically created.

https: //localhost/SOGo/dav/toto@titi.com/Contacts/collected/

Why?

TagsNo tags attached.

Activities

Christian Mack

Christian Mack

2015-02-13 10:33

developer   ~0008182

Did you activate the following preference?
"Preferences" --> "Mail Options" --> "When sending mail, add unknown recipients to my"
And chose "Collected Address Book"?
And used "Save and Close" afterwards?

remy

remy

2015-02-13 10:57

reporter   ~0008183

when I want to activate this function, a message says "Service temporarily unavailable"

there is a preference in sogo.conf to create automatically address book?

remy

remy

2015-02-13 10:57

reporter  

Capture.PNG (20,870 bytes)   
Capture.PNG (20,870 bytes)   
Christian Mack

Christian Mack

2015-02-13 12:12

developer   ~0008185

No, there is no such option in sogo.conf.
You only can make your authentication source visible as address book by setting
isAddressBook = YES;
in SOGoUserSources.
That's the so called gal (= global address list).

This error should not happen.
Could you check which error happens in your sogo.log while enabling that preference?

remy

remy

2015-02-13 12:58

reporter   ~0008187

Feb 13 13:56:11 sogod [7449]: [ERROR] <0x0xb7a5eb30[NGBundleManager]> could not create bundle for path: '/usr/share/GNUstep/Libraries/gnustep-base/Versions/1.20/Resources/SSL.bundle'
Feb 13 13:56:11 sogod [7449]: [ERROR] <0x0xb7ea91f8[SOGoSieveManager]> Sieve connection failed on sieve://localhost:2000
Feb 13 13:56:11 sogod [7449]: 192.6.2.53 "GET /SOGo/so/toto@titi.com/preferences HTTP/1.1" 200 17585/0 0.078 77713 77% 1M
Feb 13 13:56:16 sogod [7449]: [ERROR] <0x0xb804ab40[SOGoSieveManager]> Sieve connection failed on sieve://localhost:2000
Feb 13 13:56:16 sogod [7449]: 192.6.2.53 "POST /SOGo/so/toto@titi.com/preferences HTTP/1.1" 503 49/2170 0.010 - - 20K

Christian Mack

Christian Mack

2015-02-13 13:01

developer   ~0008188

This error indicates a wrong sieve configuration in your sogo.conf.

As long as you don't fix that, you will not be able to store any changes in "Preferences" at all.

Can you connect to your sieve server from the command line with the parameters given in sogo.conf?

remy

remy

2015-02-13 15:44

reporter   ~0008189

How do you connect sieve?

I connect to my server via ssh (debian)

Christian Mack

Christian Mack

2015-02-13 16:03

developer   ~0008190

Obviously you don't know what sieve is :-)
The sieve server is an extension in your IMAP server.
It can sort, forward, reject and drop emails based on rules you specify.
SOGo uses it for its email filter feature and automatic response vacation feature.
You have to configure it first, before you can use it.

If you don't have it configured, then you should ask your IMAP server community how to.
Or you should disable it in sogo.conf by setting:
SOGoSieveScriptsEnabled = NO;

remy

remy

2015-02-16 08:47

reporter   ~0008192

I still have the same error:

Feb 16 09:44:12 sogod [13811]: [ERROR] <0x0xb7fb33e8[SOGoSieveManager]> Sieve connection failed on sieve://localhost:2000

I add in sogo.conf :

SOGoSieveScriptsEnabled = NO;
// SOGoSieveServer = sieve://localhost:2000;

but it does not change.

remy

remy

2015-02-16 08:48

reporter   ~0008193

I understood for sieve.

Sieve is not enabled in my server mail (dovecot)

Christian Mack

Christian Mack

2015-02-16 09:04

developer   ~0008194

Did you stop and start sogod after changing SOGoSieveScriptsEnabled?
Because this setting is not read on a restart :-(

remy

remy

2015-02-16 10:09

reporter   ~0008195

yes, I stop and start

remy

remy

2015-02-16 10:10

reporter   ~0008196

you can see the current configuration with a command line?

Christian Mack

Christian Mack

2015-02-16 10:59

developer   ~0008197

Last edited: 2015-02-16 10:59

No, not since the transition from GNUstep defaults to sogo.conf file.
Before there was
sogo-tool dump-defaults
But that only queries the GNUstep defaults, which are (should be) now empty.

You only can check your sogo.conf for errors with
plparse /etc/sogo/sogo.conf

remy

remy

2015-02-16 13:30

reporter   ~0008198

plparse /etc/sogo/sogo.conf
Parsing '/etc/sogo/sogo.conf' - a dictionary

No erreur in file ...

Christian Mack

Christian Mack

2015-02-16 14:16

developer   ~0008199

Never had that.
Is file /etc/sogo/sogo.conf readable by sogo user?

remy

remy

2015-02-16 14:22

reporter   ~0008200

Yes
-rw-r----- 1 root sogo 5330 16 févr. 14:47 sogo.conf

if I change in file /etc/sogo/sogo.conf port 2000 of the line sieveserver by 4190.

I see in the log that the port has changed.

The config file is properly updated.

but I do not understand why I get the message "service unavailable" in the web interface

remy

remy

2015-02-16 14:38

reporter   ~0008201

I realize that I not save any all preferences. :(

Christian Mack

Christian Mack

2015-02-16 14:43

developer   ~0008202

Ah...what a misunderstanding.
I thought you still got the "Sieve connection failed on sieve://localhost:2000" error.
But that is not the case.
You stil get the "service temporarily unavailable" error.

Do you see any other errors in sogo.log now?

remy

remy

2015-02-16 14:47

reporter   ~0008203

i seen this post:
http://www.sogo.nu/bugs/view.php?id=2746

remy

remy

2015-02-16 14:51

reporter   ~0008204

i still get the "service temporarily unavailable" error,

and

i still get "Sieve connection failed on sieve://localhost:2000" in log

sorry my Google Translate language is bad.

:)

remy

remy

2015-02-16 14:55

reporter   ~0008205

But I just realized that I can save no preference.

Not just "When sending mail, add unknown recipients to my" ...

Christian Mack

Christian Mack

2015-02-16 15:04

developer   ~0008207

That was a bug in 2.2.4.
Aren't you on 2.2.16?

remy

remy

2015-02-16 15:19

reporter   ~0008208

no, i am on 2.2.15

Christian Mack

Christian Mack

2015-02-16 15:30

developer   ~0008209

That is OK too.
Bug 0002746 is fixed in your version.

Did you perhaps misspell "SOGoSieveScriptsEnabled = NO;" ?
All options are case sensitive!

Is there another SOGoSieveScriptsEnabled setting in your sogo.conf?

francis

francis

2015-02-17 11:32

administrator   ~0008212

Try to disable everything related to Sieve:

<pre>
SOGoVacationEnabled = NO;
SOGoForwardEnabled = NO;
SOGoSieveScriptsEnabled = NO;
</pre>

remy

remy

2015-02-17 14:21

reporter   ~0008213

My apologies !!
there were two line with "SOGoSieveScriptsEnabled."

Now I can save my preference!

To return to the collected address book when I check the "add outgoing messages addresses in" in thunderbird, this is not checked in sogo web interface.

this is normal?
there is no option to turn this preference for all users? or Modify the default value?

Christian Mack

Christian Mack

2015-02-17 15:46

developer   ~0008214

Yes, this is normal.
With that you can set this feature per used client.

There is no global option to enables this, but you can use sogo-tool to set it for a user (or all existing users).
The corresponding user preferences are:
SOGoMailAddOutgoingAddresses
SOGoSelectedAddressBook

Example
Activating storing unknown addresses on send for user User1
<pre>
/usr/sbin/sogo-tool user-preferences set defaults User1 SOGoMailAddOutgoingAddresses '{"SOGoMailAddOutgoingAddresses": "1"}'
</pre>

Setting address book for storing unknown addresses for user User1 to "Special Address Book" (UID=2404-50781180-7-7848CA80)
<pre>
/usr/sbin/sogo-tool user-preferences set defaults User1 SOGoSelectedAddressBook '{"SOGoSelectedAddressBook": "2404-50781180-7-7848CA80"}'
</pre>

These commands has to be executed as user sogo.

The UID of an address book can be seen in the web interface as last part of the CardDAV-URL of the corresponding address book.
Special address books are "personal" and "collected"

remy

remy

2015-02-17 15:51

reporter   ~0008215

Okay, but when I create a user box will still unchecked ?

remy

remy

2015-02-17 16:29

reporter   ~0008216

all users?
I tested
/ usr / sbin / sogo-tool user-preferences set defaults all SOGoMailAddOutgoingAddresses {"SOGoMailAddOutgoingAddresses": "1"} '

but it does not work! how to indicate "all users"?

ludovic

ludovic

2015-02-17 16:30

reporter   ~0008217

You cannot.

Christian Mack

Christian Mack

2015-02-17 16:49

developer   ~0008218

Last edited: 2015-02-17 16:50

"ALL" is not a valid user ID.
But you can put those commands in a for loop going through all users.
You can get all users by using sogo-tool backup first.
Backup creates one file per user, named with the users ID in the given directory.
This has the additional advantage, that even if you make a mistake, you always can go back with a restore.

So something like this will work:
<pre>
/usr/sbin/sogo-tool backup ./backupdir ALL
for FILE in ls ./backupdir/*
do
USER_ID=basename $FILE
/usr/sbin/sogo-tool user-preferences set defaults ${USER_ID} SOGoMailAddOutgoingAddresses '{"SOGoMailAddOutgoingAddresses": "1"}'
/usr/sbin/sogo-tool user-preferences set defaults ${USER_ID} SOGoSelectedAddressBook '{"SOGoSelectedAddressBook": "collected"}'
done
</pre>

remy

remy

2015-02-18 14:53

reporter   ~0008219

Thank you for your help and your time !!
You have successfully answered my questions and solved my problem.

Issue History

Date Modified Username Field Change
2015-02-10 10:46 remy New Issue
2015-02-13 10:33 Christian Mack Note Added: 0008182
2015-02-13 10:57 remy Note Added: 0008183
2015-02-13 10:57 remy File Added: Capture.PNG
2015-02-13 12:12 Christian Mack Note Added: 0008185
2015-02-13 12:58 remy Note Added: 0008187
2015-02-13 13:01 Christian Mack Note Added: 0008188
2015-02-13 15:44 remy Note Added: 0008189
2015-02-13 16:03 Christian Mack Note Added: 0008190
2015-02-16 08:47 remy Note Added: 0008192
2015-02-16 08:48 remy Note Added: 0008193
2015-02-16 09:04 Christian Mack Note Added: 0008194
2015-02-16 10:09 remy Note Added: 0008195
2015-02-16 10:10 remy Note Added: 0008196
2015-02-16 10:59 Christian Mack Note Added: 0008197
2015-02-16 10:59 Christian Mack Note Edited: 0008197
2015-02-16 13:30 remy Note Added: 0008198
2015-02-16 14:16 Christian Mack Note Added: 0008199
2015-02-16 14:22 remy Note Added: 0008200
2015-02-16 14:38 remy Note Added: 0008201
2015-02-16 14:43 Christian Mack Note Added: 0008202
2015-02-16 14:47 remy Note Added: 0008203
2015-02-16 14:51 remy Note Added: 0008204
2015-02-16 14:55 remy Note Added: 0008205
2015-02-16 15:04 Christian Mack Note Added: 0008207
2015-02-16 15:19 remy Note Added: 0008208
2015-02-16 15:30 Christian Mack Note Added: 0008209
2015-02-17 11:32 francis Note Added: 0008212
2015-02-17 14:21 remy Note Added: 0008213
2015-02-17 15:46 Christian Mack Note Added: 0008214
2015-02-17 15:51 remy Note Added: 0008215
2015-02-17 16:29 remy Note Added: 0008216
2015-02-17 16:30 ludovic Note Added: 0008217
2015-02-17 16:49 Christian Mack Note Added: 0008218
2015-02-17 16:50 Christian Mack Note Edited: 0008218
2015-02-18 14:53 remy Note Added: 0008219
2015-02-18 14:56 ludovic Status new => closed
2015-02-18 14:56 ludovic Assigned To => ludovic
2015-02-18 14:56 ludovic Resolution open => no change required