it's my bad, I type a WRONG server name.
After I fixed the server name, I used wireshark/tcpdump to capture packets,
turns out outlook requests https( port 443).
172.16.232.24.49264 > 172.16.234.11.https: Flags [S], cksum 0x001f
(correct), seq 3855978681, win 8192, options [mss 1460,nop,nop,sackOK],
length 0
But I didn't congure https, does anyone share me that how to configure
https?
On Tue, Apr 30, 2019 at 11:36 AM luckydog xf <[email protected]> wrote:
> I use outlook 2016, here is my conf:
>
> 1. Add an Email Account -->Manual setup or addtional server types -->
> outlook.com or Exachange ActiveSync compatible service.
> 2. Your name : test
> email address: [email protected]
>
> mail server: mail.ad.pthl.hk
> user name : test
> password: <password>
>
> ---------------
>
> it raised :
>
> Log onto Exchange ActiveSync mail server (EAS): The server cannot be found.
>
> I traced /etc/sogo/sogod.conf and /etc/httpd/logs/access_log, nothing is
> up.
>
>
> On Tue, Apr 30, 2019 at 8:16 AM luckydog xf <[email protected]> wrote:
>
>> 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%[email protected]:3306/sogo/sogo_alarms_folder";
>>
>> OCSCacheFolderURL = "mysql://
>> sogo:sogo%23123%[email protected]:3306/sogo/sogo_cache_folder";
>> OCSStoreURL = "mysql://
>> sogo:sogo%23123%[email protected]:3306/sogo/sogo_store";
>> OCSAclURL = "mysql://sogo:sogo%23123%[email protected]: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: [email protected] ( 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 <[email protected]> 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 ([email protected]) wrote:
>>> > I followed the latest docs and it's ok via web page. But when I
>>> > configure client like Thunderbird ,
>>> >
>>> > Type: exchange
>>> > username: [email protected] <mailto:[email protected]>
>>> > 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 <[email protected]
>>> > <mailto:[email protected]>> 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 <[email protected]
>>> > <mailto:[email protected]>> 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,
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > [email protected]
>>> > https://inverse.ca/sogo/lists
>>> --
>>> [email protected]
>>> https://inverse.ca/sogo/lists
>>>
>>
--
[email protected]
https://inverse.ca/sogo/lists