Skip to content

Commit

Permalink
Set default Sieve port to 4190
Browse files Browse the repository at this point in the history
Fixes #4826
  • Loading branch information
cgx committed Sep 25, 2019
1 parent 3100ac1 commit 0de722d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
10 changes: 7 additions & 3 deletions Documentation/SOGoInstallationGuide.asciidoc
Expand Up @@ -1351,7 +1351,7 @@ otherwise the CAS server will complain:
----
ERROR [org.jasig.cas.CentralAuthenticationServiceImpl] - ServiceTicket
[ST-31740-hoV1brhhwMNfnBkSMVUw-ocas] with service [imap://myimapserver
does not match supplied service [sieve://mysieveserver:2000]
does not match supplied service [sieve://mysieveserver:4190]
----
Finally, when using imapproxy to speed up the imap accesses, the
Expand Down Expand Up @@ -1895,8 +1895,8 @@ URL, such as:
[options="compact"]
* `sieve://127.0.0.1`
* `sieve://127.0.0.1:2000`
* `sieve://127.0.0.1:2000/?tls=YES`
* `sieve://127.0.0.1:4190`
* `sieve://127.0.0.1:4190/?tls=YES`
Note that TLS is supported but SSL is not.
Expand Down Expand Up @@ -3073,6 +3073,10 @@ current version of SOGo from the previous release.
[cols="100a"]
|=======================================================================
h|4.1.0
|The default port for the SOGoSieveServer default is now 4190 (previously
2000). You need to explicitly set the port if you use a different port.
h|4.0.0
|Run the shell script `sql-update-3.2.10_to_4.0.0.sh` or
`sql-update-3.2.10_to_4.0.0-mysql.sh` (if you are using MySQL).
Expand Down
5 changes: 3 additions & 2 deletions NEWS
@@ -1,4 +1,4 @@
4.0.9 (2019-XX-XX)
4.1.0 (2019-XX-XX)
------------------

New features
Expand All @@ -13,9 +13,10 @@ Enhancements
- [web] improve constrat of text in toolbar with input fields
- [web] updated Angular Material to version 1.1.20
- [core] now dynamically detect and use the IMAP separator (#1490)
- [core] default Sieve port is now 4190 (#4826)

Bug fixes
- [web] properly handle Windows-1256 charaset (#4781)
- [web] properly handle Windows-1256 charset (#4781)
- [web] fixed saving value of receipt action for main IMAP account
- [web] fixed search results in Calendar module when targeting all events
- [web] properly encode URL of cards from exteral sources
Expand Down
10 changes: 5 additions & 5 deletions SoObjects/SOGo/SOGoSieveManager.m
@@ -1,6 +1,6 @@
/* SOGoSieveManager.m - this file is part of SOGo
*
* Copyright (C) 2010-2016 Inverse inc.
* Copyright (C) 2010-2019 Inverse inc.
*
* Author: Inverse <info@inverse.ca>
*
Expand Down Expand Up @@ -673,10 +673,10 @@ - (NGSieveClient *) clientForAccount: (SOGoMailAccount *) theAccount
// sieveServer might have the following format:
//
// sieve://localhost
// sieve://localhost:2000
// sieve://localhost:2000/?tls=YES
// sieve://localhost:4190
// sieve://localhost:4190/?tls=YES
//
// Values such as "localhost" or "localhost:2000" are NOT supported.
// Values such as "localhost" or "localhost:4190" are NOT supported.
//
// We first try to get the user's preferred Sieve server
sieveServer = [[[user mailAccounts] objectAtIndex: 0] objectForKey: @"sieveServerName"];
Expand Down Expand Up @@ -710,7 +710,7 @@ - (NGSieveClient *) clientForAccount: (SOGoMailAccount *) theAccount
if ([url port])
sievePort = [[url port] intValue];
else
sievePort = 2000;
sievePort = 4190;

sieveQuery = [cUrl query] ? [cUrl query] : [url query];
if (sieveQuery)
Expand Down

0 comments on commit 0de722d

Please sign in to comment.