Re: [SOGo] Mail filter not appearing

2015-06-01 Thread Martin Simovic

> On 01 Jun 2015, at 10:57, Christian Mack  
> wrote:
> 
> Hello
> 
> Am 2015-05-29 um 15:34 schrieb car.cue...@protonmail.com:
>> Thanks again for replying Christian,
>> 
>> Well about this Error:
>> 
>> May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error 
>> occurred
>> when caching value for key 'exam...@mailexample.com+attributes': "SERVER HAS
>> FAILED AND IS DISABLED UNTIL TIMED RETRY"
>> 
>> I read that it can be caused, because some parameters to have them not so 
>> well
>> adjusted:
>> 
>> for example:
>> 
>> WOWorkersCount = 10;
>> // Memcached
>>SOGoMemcachedHost = 127.0.0.1;
>> 
>> 
>> But actually, it seems that this part I have well configured; I am thinking
>> more that this can be caused because I am using one of the minimum
>> digitalOcean VM (512Mb Ram + 768Mb swap)...  What I am not sure is about the
>> consequences of this error.
>> 
> 
> Did you actually start memcached?
> If not, this is your error.
> 
> Consequences will be:
> - SOGo will be really really really slow
> - Your DB accesses will increase
> 
> 
> You do not want it to swap at all!
> Access to swap is 100 to 1000 times slower than to RAM.
> Because of that swap is only useful to prevent data loss, when RAM is
> overloaded.
> Get at least 4 GiB of RAM.
> 

I believe swap is used in this case since it is *cheap* replacement of RAM in 
cloud environment. 4GB RAM on DigitalOcean will cost considerably more than 
512MB …

I was successfully running SOGo with 512MB RAM + 512MB swap for single human 
user (+ 1 machine user only doing email). There were 3 concurrent connections 
from 3 devices for this user, was not using EAS though. Migrated to Amazon EC2 
where minimum instance is 1GB RAM since then …  so no current experience with 
512MB RAM.

Best Regards
Martin.

smime.p7s
Description: S/MIME cryptographic signature


Re: [SOGo] Mail filter not appearing

2015-06-01 Thread Christian Mack
Hello

Am 2015-05-29 um 15:34 schrieb car.cue...@protonmail.com:
> Thanks again for replying Christian,
> 
> Well about this Error:
> 
> May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
> when caching value for key 'exam...@mailexample.com+attributes': "SERVER HAS
> FAILED AND IS DISABLED UNTIL TIMED RETRY"
> 
> I read that it can be caused, because some parameters to have them not so well
> adjusted:
> 
> for example:
> 
>  WOWorkersCount = 10;
> // Memcached
> SOGoMemcachedHost = 127.0.0.1;
> 
> 
> But actually, it seems that this part I have well configured; I am thinking
> more that this can be caused because I am using one of the minimum
> digitalOcean VM (512Mb Ram + 768Mb swap)...  What I am not sure is about the
> consequences of this error.
> 

Did you actually start memcached?
If not, this is your error.

Consequences will be:
- SOGo will be really really really slow
- Your DB accesses will increase


You do not want it to swap at all!
Access to swap is 100 to 1000 times slower than to RAM.
Because of that swap is only useful to prevent data loss, when RAM is
overloaded.
Get at least 4 GiB of RAM.


Kind regards,
Christian Mack

-- 
Christian Mack
Universität Konstanz
Kommunikations-, Informations-, Medienzentrum (KIM)
Abteilung Basisdienste
78457 Konstanz
+49 7531 88-4416



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [SOGo] Mail filter not appearing

2015-05-31 Thread car.cuevas
Interesting way to do the configs...  I'll try this way in the next 
configuration edit and let's see...
 once more thank you very much for your help and tips



in my experiences it depends on what configuration file you edit



edit '/etc/sogo/sogo.conf' require system restart (there are probably another 
way but i don't know of it.)



but if you edit '~sogo/GNUstep/Defaults/(.GNUstepDefaults | sogod.plist)' you 
only need to restart SOGo service



but really one should use the defaults command as sogo system user to 
write/edit the configuration and then restart SOGo service



    sudo -u sogo defaults write sogod SOGoSieveServer 'sieve://127.0.0.1:4190'

    sudo -u sogo defaults write sogod SOGoSieveScriptsEnabled 'YES'



and then once you have working configuration, just dumb it all into 
'/etc/sogo/sogo.conf'



    sudo -u sogo /usr/sbin/sogo-tool dump-defaults > /etc/sogo/sogo.conf



Regards

Christian Jensen







On 31-05-2015 00:39, car.cue...@protonmail.com wrote:

Actually I did a restart of the service, but I guess because of the roundcoube 
did not work, I removed the rouncube and restart the nginx but it didnt work 
until I restarted the whole VM ... Strange :)-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Mail filter not appearing

2015-05-30 Thread Christian M. Jensen

in my experiences it depends on what configuration file you edit

edit '/etc/sogo/sogo.conf' require system restart (there are probably 
another way but i don't know of it.)


but if you edit '~sogo/GNUstep/Defaults/(.GNUstepDefaults | 
sogod.plist)' you only need to restart SOGo service


but really one should use the defaults command as sogo system user to 
write/edit the configuration and then restart SOGo service


sudo -u sogo defaults write sogod SOGoSieveServer 
'sieve://127.0.0.1:4190'

sudo -u sogo defaults write sogod SOGoSieveScriptsEnabled 'YES'

and then once you have working configuration, just dumb it all into 
'/etc/sogo/sogo.conf'


sudo -u sogo /usr/sbin/sogo-tool dump-defaults > /etc/sogo/sogo.conf

Regards
Christian Jensen


On 31-05-2015 00:39, car.cue...@protonmail.com wrote:

Actually I did a restart of the service, but I guess because of the roundcoube
did not work, I removed the rouncube and restart the nginx but it didnt work
until I restarted the whole VM ... Strange :)




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Re: [SOGo] Mail filter not appearing

2015-05-30 Thread car.cuevas
Actually I did a restart of the service, but I guess because of the roundcoube
did not work, I removed the rouncube and restart the nginx but it didnt work
until I restarted the whole VM ... Strange :)
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Mail filter not appearing

2015-05-29 Thread Christian M. Jensen

Pleased to hear you got it working
but yes, always restart or reload a service after the configuration has 
changed


Regards
Christian Jensen

On 29-05-2015 15:42, car.cue...@protonmail.com wrote:

Wow, after a restart of the server the filters start to work ;)  Perfect!!

Thanks a lot





smime.p7s
Description: S/MIME Cryptographic Signature


Re: Re: [SOGo] Mail filter not appearing

2015-05-29 Thread car.cuevas
Thanks again for replying Christian,

Well about this Error:

May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com+attributes': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"

I read that it can be caused, because some parameters to have them not so well
adjusted:

for example:

 WOWorkersCount = 10;
// Memcached
SOGoMemcachedHost = 127.0.0.1;


But actually, it seems that this part I have well configured; I am thinking
more that this can be caused because I am using one of the minimum
digitalOcean VM (512Mb Ram + 768Mb swap)...  What I am not sure is about the
consequences of this error.
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: Re: Re: [SOGo] Mail filter not appearing

2015-05-29 Thread car.cuevas
Wow, after a restart of the server the filters start to work ;)  Perfect!!

Thanks a lot
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: Re: [SOGo] Mail filter not appearing

2015-05-29 Thread car.cuevas
Thank you very much Christian, actually now the option appears in the menu :))
Anyway I think at the moment, when I created the filter they will disappear
from the Filters list, and of course they won't filter any mail..

I'll have to investigate what is this Sieve about, at the beginning I thought
that the RoundCube could be interfering with this (since I guess it is also
used there), so I removed but did not help.. I guess there is something else
there...

-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Mail filter not appearing

2015-05-29 Thread Christian M. Jensen

hi,

you all so have an error!,
I'm only guessing but think it has something to do with memcached not 
being set up correctly


Regards
Christian Jensen


On 29-05-2015 11:11, car.cue...@protonmail.com wrote:

May 29 10:08:12 sogod [16521]: localhost "POST/SOGo/so/
exam...@mailexample.com/Mail/0/folderTrash/unseenCount  HTTP/1.0" 200 13/0
0.639 - - 0
May 29 10:08:12 sogod [16520]: [ERROR] <0x0x7f02b71e2bc0[WOWatchDog]> No child
available to handle incoming request!
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'session:17xV1JuqqSrLyHkvRebp/w==': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com+attributes': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com+attributes': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com+attributes': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com+attributes': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'session:17xV1JuqqSrLyHkvRebp/w==': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com+defaults': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com@+attributes': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com+attributes': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com+attributes': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com+attributes': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'exam...@mailexample.com+settings': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'session:17xV1JuqqSrLyHkvRebp/w==': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"
May 29 10:08:12 sogod [16521]: localhost "POST/SOGo/so/
exam...@mailexample.com/Mail/0/folderJunk/unseenCount  HTTP/1.0" 200 13/0 0.296
- - 0
May 29 10:08:12 sogod [16521]: <0x0x7f02b7276e90[SOGoCache]> an error occurred
when caching value for key 'session:17xV1JuqqSrLyHkvRebp/w==': "SERVER HAS
FAILED AND IS DISABLED UNTIL TIMED RETRY"




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [SOGo] Mail filter not appearing

2015-05-29 Thread Christian M. Jensen

hi,

you need to set the following in your configuration file

//* Sieve Server url including the port number
SOGoSieveServer = sieve://127.0.0.1:4190;
//* enable Sieve scripts in SOGo
SOGoSieveScriptsEnabled = YES;

Regards
Christian Jensen

On 29-05-2015 11:11, car.cue...@protonmail.com wrote:

Hello,

I installed the last version of iRedMail (0.91) within DEBIAN 8 server, along
with:

NGINX 1.6.2
roundcube 1.1.1
dovecot 2.2.13
postfix 2.11.3

I updated the SOGO to the version 2.2.17a, everything seems to be working
except the menu to create the mail filtering in PREFERENCES -> MAIL OPTIONS,
there I can see just LABELS.

The filtering for me it's actually kind of needed (I could do the filters with
roundcube) but I want to get rid of roundcube and just leave SOGO. I dont know
what it's wrong, please can some of you give me some hints of what can be
wrong.

In my /etc/sogo.conf I have the following:

{
 // Official SOGo documents:
 //  - http://www.sogo.nu/english/support/documentation.html
 //  - http://wiki.sogo.nu
 //
 // Mailing list:
 //  - http://www.sogo.nu/english/support/community.html

 // Enable verbose logging. Reference:
 //
http://www.sogo.nu/nc/support/faq/article/how-to-enable-more-verbose-logging-in-sogo.html
 //SOGoDebugRequests = YES;
 //ImapDebugEnabled = YES;
 //LDAPDebugEnabled = YES;
 //MySQL4DebugEnabled = YES;
 //PGDebugEnabled = YES;

 // Performance Tuning
 //
 // The amount of instances of SOGo that will be spawned to handle multiple
 // requests simultaneously. When started from the init script, that amount
 // is overriden by the `PREFORK=` setting in /etc/sysconfig/sogo or
 // /etc/default/sogo. A value of 3 is a reasonable default for low usage.
 // The maximum value depends on the CPU and IO power provided by your
 // machine: a value set too high will actually decrease performances under
 // high load.
 //
 // You should have at least one child per EAS device configured to use
 // "push". You must also have more children than you have EAS devices
 // configured to use "push" - in order to handle normal SOGo requests to
 // its Web or DAV interfaces.
 //
 // Defaults to 1 when unset, increase it if you see below error message in
 // sogo log file: 'No child available to handle incoming request'
 WOWorkersCount = 10;

 // Daemon address and port
 WOPort = 127.0.0.1:2;

 // PID file
 //WOPidFile = /var/run/sogo/sogo.pid;

 // Log file
 WOLogFile = /var/log/sogo/sogo.log;

 // IMAP connection pool.
 // Your performance will slightly increase, as you won't open a new
 // connection for every access to your IMAP server.
 // But you will get a lot of simultaneous open connections to your IMAP
 // server, so make sure he can handle them.
 // For debugging it is reasonable to turn pooling off.
 //NGImap4DisableIMAP4Pooling = NO;

 SOGoProfileURL =
"mysql://sogo:SomePASSWORD@127.0.0.1:3306/sogo/sogo_user_profile";
 OCSFolderInfoURL =
"mysql://sogo:SomePASSWORD@127.0.0.1:3306/sogo/sogo_folder_info";
 OCSSessionsFolderURL =
"mysql://sogo:SomePASSWORD@127.0.0.1:3306/sogo/sogo_sessions_folder";

 // Default language in the web interface
 SOGoLanguage = English;
// Specify which module to show after login: Calendar, Mail, Contacts.
 SOGoLoginModule = Mail;

 // Must login with full email address
 SOGoForceExternalLoginWithEmail = YES;

 // Allow user to change full name and email address.
 SOGoMailCustomFromEnabled = YES;

 // Enable email-based alarms on events and tasks.
 SOGoEnableEMailAlarms = YES;
 OCSEMailAlarmsFolderURL =
"mysql://sogo:SomePASSWORD@127.0.0.1:3306/sogo/sogo_alarms_folder";

 // IMAP server
 //SOGoIMAPServer = "imaps://127.0.0.1:143/?tls=YES";
 // Local connection is considered as secure by Dovecot.
 SOGoIMAPServer = "imap://127.0.0.1:143/";

 // SMTP server
 SOGoMailingMechanism = smtp;
 SOGoSMTPServer = 127.0.0.1;
 //SOGoSMTPAuthenticationType = PLAIN;

 // Enable managesieve service
 //
 // WARNING: Sieve scripts generated by SOGo is not compatible with
Roundcube
 //  webmail, don't use sieve service in both webmails, otherwise
 //  it will be messy.
 //
 //SOGoSieveServer = sieve://127.0.0.1:4190;
 //SOGoSieveScriptsEnabled = YES;
 //SOGoVacationEnabled = YES;
 //SOGoForwardEnabled = YES;

 // Memcached
 SOGoMemcachedHost = 127.0.0.1;

 // Parameter used to set which usernames require administrative privileges
 // over all the users tables. For example, this could be used to post
 // events in the users calendar without requiring the user to configure
 // his/her ACLs. In this case you will need to specify those superuser's
 // usernames like this :
 // SOGoSuperUsernames = ([,, ...]);
 

[SOGo] Mail filter not appearing

2015-05-29 Thread car.cuevas
Hello,

I installed the last version of iRedMail (0.91) within DEBIAN 8 server, along
with:

NGINX 1.6.2
roundcube 1.1.1
dovecot 2.2.13
postfix 2.11.3

I updated the SOGO to the version 2.2.17a, everything seems to be working
except the menu to create the mail filtering in PREFERENCES -> MAIL OPTIONS,
there I can see just LABELS.

The filtering for me it's actually kind of needed (I could do the filters with
roundcube) but I want to get rid of roundcube and just leave SOGO. I dont know
what it's wrong, please can some of you give me some hints of what can be
wrong.

In my /etc/sogo.conf I have the following:

{
// Official SOGo documents:
//  - http://www.sogo.nu/english/support/documentation.html
//  - http://wiki.sogo.nu
//
// Mailing list:
//  - http://www.sogo.nu/english/support/community.html

// Enable verbose logging. Reference:
//
http://www.sogo.nu/nc/support/faq/article/how-to-enable-more-verbose-logging-in-sogo.html
//SOGoDebugRequests = YES;
//ImapDebugEnabled = YES;
//LDAPDebugEnabled = YES;
//MySQL4DebugEnabled = YES;
//PGDebugEnabled = YES;

// Performance Tuning
//
// The amount of instances of SOGo that will be spawned to handle multiple
// requests simultaneously. When started from the init script, that amount
// is overriden by the `PREFORK=` setting in /etc/sysconfig/sogo or
// /etc/default/sogo. A value of 3 is a reasonable default for low usage.
// The maximum value depends on the CPU and IO power provided by your
// machine: a value set too high will actually decrease performances under
// high load.
//
// You should have at least one child per EAS device configured to use
// "push". You must also have more children than you have EAS devices
// configured to use "push" - in order to handle normal SOGo requests to
// its Web or DAV interfaces.
//
// Defaults to 1 when unset, increase it if you see below error message in
// sogo log file: 'No child available to handle incoming request'
WOWorkersCount = 10;

// Daemon address and port
WOPort = 127.0.0.1:2;

// PID file
//WOPidFile = /var/run/sogo/sogo.pid;

// Log file
WOLogFile = /var/log/sogo/sogo.log;

// IMAP connection pool.
// Your performance will slightly increase, as you won't open a new
// connection for every access to your IMAP server.
// But you will get a lot of simultaneous open connections to your IMAP
// server, so make sure he can handle them.
// For debugging it is reasonable to turn pooling off.
//NGImap4DisableIMAP4Pooling = NO;

SOGoProfileURL =
"mysql://sogo:SomePASSWORD@127.0.0.1:3306/sogo/sogo_user_profile";
OCSFolderInfoURL =
"mysql://sogo:SomePASSWORD@127.0.0.1:3306/sogo/sogo_folder_info";
OCSSessionsFolderURL =
"mysql://sogo:SomePASSWORD@127.0.0.1:3306/sogo/sogo_sessions_folder";

// Default language in the web interface
SOGoLanguage = English;
// Specify which module to show after login: Calendar, Mail, Contacts.
SOGoLoginModule = Mail;

// Must login with full email address
SOGoForceExternalLoginWithEmail = YES;

// Allow user to change full name and email address.
SOGoMailCustomFromEnabled = YES;

// Enable email-based alarms on events and tasks.
SOGoEnableEMailAlarms = YES;
OCSEMailAlarmsFolderURL =
"mysql://sogo:SomePASSWORD@127.0.0.1:3306/sogo/sogo_alarms_folder";

// IMAP server
//SOGoIMAPServer = "imaps://127.0.0.1:143/?tls=YES";
// Local connection is considered as secure by Dovecot.
SOGoIMAPServer = "imap://127.0.0.1:143/";

// SMTP server
SOGoMailingMechanism = smtp;
SOGoSMTPServer = 127.0.0.1;
//SOGoSMTPAuthenticationType = PLAIN;

// Enable managesieve service
//
// WARNING: Sieve scripts generated by SOGo is not compatible with
Roundcube
//  webmail, don't use sieve service in both webmails, otherwise
//  it will be messy.
//
//SOGoSieveServer = sieve://127.0.0.1:4190;
//SOGoSieveScriptsEnabled = YES;
//SOGoVacationEnabled = YES;
//SOGoForwardEnabled = YES;

// Memcached
SOGoMemcachedHost = 127.0.0.1;

// Parameter used to set which usernames require administrative privileges
// over all the users tables. For example, this could be used to post
// events in the users calendar without requiring the user to configure
// his/her ACLs. In this case you will need to specify those superuser's
// usernames like this :
// SOGoSuperUsernames = ([,, ...]);
//SOGoSuperUsernames = ();

SOGoTimeZone = "Europe/Prague";

SOGoFirstDayOfWeek = 1;

SOGoRefreshViewCheck = every_5_minutes;
SOGoMailReplyPlacement = below;

SOGoAppointmentSendEMailNotifications = YES;
SOGoFoldersSendEMailNotifications = YES;
SOGoACLsSendEMailNotifications = YES;

// NOTE: PostgreSQL cannot update view in iRedMail
SOGoPasswordChangeEnabled =