Here is my sogod.conf
-----------------
{

  MySQL4Encoding = "utf8mb4";
  SOGoProfileURL = "mysql://sogo:sogo%23123%21@localhost
:3306/sogo/sogo_user_profile";
  OCSFolderInfoURL = "mysql://sogo:sogo%23123%21@localhost
:3306/sogo/sogo_folder_info";
  OCSSessionsFolderURL = "mysql://sogo:sogo%23123%21@localhost
:3306/sogo/sogo_sessions_folder";
  OCSEMailAlarmsFolderURL = "mysql://
sogo:sogo%23123%21@127.0.0.1:3306/sogo/sogo_alarms_folder";

  OCSCacheFolderURL = "mysql://
sogo:sogo%23123%21@127.0.0.1:3306/sogo/sogo_cache_folder";
  OCSStoreURL = "mysql://sogo:sogo%23123%21@127.0.0.1:3306/sogo/sogo_store";
  OCSAclURL = "mysql://sogo:sogo%23123%21@127.0.0.1:3306/sogo/sogo_acl";

  SOGoLoginModule = Calendar;

  SOGoForceExternalLoginWithEmail = yes;

  SOGoDraftsFolderName = Drafts;
  SOGoSentFolderName = Sent;
  SOGoTrashFolderName = Trash;
  SOGoIMAPServer = imaps://172.16.234.11:993;
  //SOGoSieveServer = sieve://127.0.0.1:4190;
  SOGoSMTPServer = 172.16.234.11;
  SOGoMailDomain = ad.pthl.hk;
  SOGoMailingMechanism = smtp;
  SOGoMailSpoolPath = /var/spool/sogo;
  //NGImap4ConnectionStringSeparator = "/";

  /* Authentication */
  //SOGoPasswordChangeEnabled = YES;

  /* LDAP authentication example */
  SOGoUserSources = (
    {
      type = ldap;
      CNFieldName = cn;
      UIDFieldName = uid;
      IDFieldName = uid; // first field of the DN for direct binds
      bindFields = (uid, mail); // array of fields to use for indirect binds
      baseDN = "ou=people,dc=ad,dc=pthl,dc=hk";
      bindDN = "cn=Manager,dc=ad,dc=pthl,dc=hk";
      bindPassword = "Abc#123!";
      canAuthenticate = YES;
      displayName = "Shared Addresses";
      hostname = ldap://127.0.0.1:389;
      id = public;
      isAddressBook = YES;
    }
  );

  /* EAS optimization */

  WOWorkersCount = 15;
  SOGoMaximumPingInterval = 3540;
  SOGoMaximumSyncInterval = 3540;
  SOGoInternalSyncInterval = 30;

  /* Web Interface */
  SOGoPageTitle = SOGo;
  SOGoVacationEnabled = YES;
  SOGoForwardEnabled = YES;
  SOGoSieveScriptsEnabled = YES;
  SOGoMailAuxiliaryUserAccountsEnabled = YES;
  SOGoTrustProxyAuthentication = NO;
  SOGoXSRFValidationEnabled = YES;

  /* General - SOGoTimeZone *MUST* be defined */
  SOGoLanguage = English;
  SOGoTimeZone = Asia/Shanghai;
  SOGoCalendarDefaultRoles = (
    PublicDAndTViewer,
    ConfidentialDAndTViewer
  );
  SOGoSuperUsernames = (sogo1, sogo2); // This is an array - keep the
parens!
  SxVMemLimit = 768;
  WOPidFile = "/var/run/sogo/sogo.pid";
  SOGoMemcachedHost = 127.0.0.1;

  /* Debug */
 // SOGoDebugRequests = YES;
  //SoDebugBaseURL = YES;
  //ImapDebugEnabled = YES;
  //LDAPDebugEnabled = YES;
  //PGDebugEnabled = YES;
  //MySQL4DebugEnabled = YES;
  //SOGoUIxDebugEnabled = YES;
  //WODontZipResponse = YES;
  SOGoEASDebugEnabled = YES;
  WOLogFile = /var/log/sogo/sogo.log;
}
--------------------------------------

I followed the docs https://sogo.nu/files/docs/SOGoInstallationGuide.html and
installed required packages by

yum install sogo-activesync libwbxml

Here is /etc/httpd/conf.d/SOGo.conf
Alias /SOGo.woa/WebServerResources/ \
      /usr/lib64/GNUstep/SOGo/WebServerResources/
Alias /SOGo/WebServerResources/ \
      /usr/lib64/GNUstep/SOGo/WebServerResources/

<Directory /usr/lib64/GNUstep/SOGo/>
    AllowOverride None

    <IfVersion < 2.4>
        Order deny,allow
        Allow from all
    </IfVersion>
    <IfVersion >= 2.4>
        Require all granted
    </IfVersion>

    <IfModule expires_module>
      ExpiresActive On
      ExpiresDefault "access plus 1 year"
    </IfModule>
</Directory>


ProxyRequests Off
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On



ProxyPass /Microsoft-Server-ActiveSync \
 http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync \
 retry=60 connectiontimeout=5 timeout=3600

ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0

<Proxy http://127.0.0.1:20000/SOGo>
<IfModule headers_module>
  RequestHeader set "x-webobjects-server-port" "80"
  SetEnvIf Host (.*) HTTP_HOST=$1
  RequestHeader set "x-webobjects-server-name" "%{HTTP_HOST}e" env=HTTP_HOST
  RequestHeader set "x-webobjects-server-url" "http://%{HTTP_HOST}e";
env=HTTP_HOST

  RequestHeader unset "x-webobjects-remote-user"

  RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
</IfModule>

  AddDefaultCharset UTF-8

  Order allow,deny
  Allow from all
</Proxy>

<IfModule rewrite_module>
  RewriteEngine On
  RewriteRule ^/.well-known/caldav/?$ /SOGo/dav [R=301]
  RewriteRule ^/.well-known/carddav/?$ /SOGo/dav [R=301]
</IfModule>
-----------------

I started httpd, sogod, memcached, I can login on webpage by http://<IP>/SOGo
and see calendar, contacts, and emails.

But when I configure emails through exchange protocol,
---
protocol:    Exchange( the rest options are imap and pop3)
account name:    x...@yyy.com ( the same as I login on webpage)
password:   *****

serveraddress: mail.xxx.com (this record exists on DNS, with PTR, A).
----

 it raises an error "exchange rpc server is unavailable".

    What did I do wrong?

Thanks,

On Mon, Apr 29, 2019 at 10:56 PM lists <users@sogo.nu> wrote:

> Hi,
>
> I'm unsure on using thunderbird with activesync, normally you would use
> outlook (or a mobile device) to test this.
>
> But in principle: when using activesync, openchange and samba are not
> required, you just need to install the sogo activesync package. (that
> should be in the docs)
>
> EAS works beautifully here.
>
> MJ
>
> On 29-4-2019 11:00, luckydog xf (luckydo...@gmail.com) wrote:
> > I followed the latest docs and it's ok via web page. But when I
> > configure client like Thunderbird ,
> >
> > Type: exchange
> > username: x...@xxx.com <mailto:x...@xxx.com>
> > password: XXXX
> > exchange server: <mail server's DNS record>
> >
> > it raises an error, "exchange rpc server is unavailable".
> >
> > So what did I do wrong? An old doc says openchange and samba need to be
> > configured. But it does not  mention in latest doc.
> >
> > I want to user could use mail APP to receive email, calendar,
> > contact.etc with their smartphone. So EAS must be configured.
> >
> > Thanks guys.
> >
> >
> > On Mon, Apr 29, 2019 at 3:28 PM luckydog xf <luckydo...@gmail.com
> > <mailto:luckydo...@gmail.com>> wrote:
> >
> >     Sorry, hit 'send' to fast, the subject should be 'is the latest doc
> >     completed for ActiveSync'?
> >
> >
> >
> >     On Mon, Apr 29, 2019 at 3:27 PM luckydog xf <luckydo...@gmail.com
> >     <mailto:luckydo...@gmail.com>> wrote:
> >
> >         Hi, list,
> >
> >
> >         I have configured SOGo with LDAP and MariaDB, it works. But for
> >         Microsoft ActiveySync, it never works.
> >
> >         I read and followed this doc,
> >
> https://sogo.nu/files/docs/SOGoInstallationGuide.html#_microsoft_enterprise_activesync
> >
> >         I found a outdated docs which include openchange and samba
> >         installation, see below.
> >
> https://sogo.nu/files/docs/SOGoNativeOutlookConfigurationGuide.html
> >
> >         It occurs to me that it said RPC is N/A when I configure email
> >         via MS exchange,
> >
> >         So is the Active Sync partial in the 1st link ?  I didn't see
> >         openchange and samba are included there.
> >
> >         Thanks,
> >
> >
> >
> >
> >
> > --
> > users@sogo.nu
> > https://inverse.ca/sogo/lists
> --
> users@sogo.nu
> https://inverse.ca/sogo/lists
>
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to