Re: [SOGo] sogosync and html email

2013-03-08 Thread Sven Auhagen
Hi Michael,

sorry for the late answer.

You have to use the BackendCombined option for CalDAV and CardDAV to work too.
Can you make sure that you just activated BackendIMAP, BackendCalDAV and 
BackendCardDAV in backend/combined/config.php?

It has to look like this:

public static function GetBackendCombinedConfig() {
//use a function for it because php does not allow
//assigning variables to the class members (expecting T_STRING)
return array(
//the order in which the backends are loaded.
//login only succeeds if all backend return true on login
//sending mail: the mail is sent with first backend that is able to 
send the mail
'backends' = array(
'i' = array(
'name' = 'BackendIMAP',
'config' = self::$BackendIMAP_config,
),
//'z' = array(
//'name' = 'BackendZarafa',
//'config' = self::$BackendZarafa_config
//),
//'m' = array(
//'name' = 'BackendMaildir',
//'config' = self::$BackendMaildir_config,
//),
//'v' = array(
//   'name' = 'BackendVCardDir',
//'config' = self::$BackendVCardDir_config,
//),
'c' = array(
'name' = 'BackendCalDAV',
'config' = self::$BackendCalDAV_config,
),
//'l' = array(
//'name' = 'BackendLDAP',
//'config' = self::$BackendLDAP_config,
//),
'd' = array(
'name' = 'BackendCardDAV',
'config' = self::$BackendCardDAV_config,
),
),

Best,
Sven

On Mar 6, 2013, at 7:57 AM, Michael mich...@los-pollos.co wrote:

 Hi Sven, Actually I am having a problem with PHP-Push-2; I configured 
 config.php and email works fine but CalDAV and CardDAV doesn't. 
 
 When I set  ('BACKEND_PROVIDER', BackendCombined); 
 
 the devices fail to set up/initialise. 
 
 However when I set define('BACKEND_PROVIDER', BackendIMAP); the devices set 
 up but no calendar or contacts. 
 
 Here is the config.php for caldav and carddav: 
 
 // ** 
 //  BackendCalDAV settings 
 // ** 
 define('CALDAV_SERVER', 'https://sogo.example.com'); 
 define('CALDAV_PORT', '443'); 
 define('CALDAV_PATH', '/SOGo/dav/%u/'); 
 define('CALDAV_PERSONAL', 'personal'); //Personal CalDAV folder 
 
 // ** 
 //  BackendCardDAV settings 
 // ** 
 define('CARDDAV_SERVER', 'https://sogo.example.com'); 
 define('CARDDAV_PORT', '443'); 
 define('CARDDAV_PATH', '/SOGo/dav/%u/'); 
 define('CARDDAV_PRINCIPAL', 'Contacts'); //Personal CardDAV folder 
 
 
 Did you manage to get contacts and calendar working with PHP-Push-2 and SOGo 
 ? 
 
 Regards, Michael.
 
 On 4/03/2013 10:21 PM, Sven Auhagen wrote:
 Hi Michael,
 
 sure. Let me know if you have more questions, I also had the same problems 
 than you :)
 
 Best,
 Sven
 
 On Mar 4, 2013, at 10:08 AM, Michael mich...@los-pollos.co wrote:
 
 Hi Sven, thanks so much for this. I will look into php-push
 
 Regards, Michael.
 
 On 4/03/2013 7:18 PM, Sven Auhagen wrote:
 Hi Michael,
 
 sogosync hasn't been updated in 4 month so the support for HTML emails is 
 not integrated.
 It was released with zpush 2.0.6 I think.
 You either have to merge a new version of zpush with sogoync, basically 
 just copy the files from the latest zpush release into sogosync and save 
 the files config.php and backend/combined/config.php
 before you do it. After the merge copy them back into place.
 Another good alternative which is more up to date is 
 https://github.com/dupondje/PHP-Push-2 .
 It shares the same code but is still maintained.
 
 Best,
 Sven
 
 On Mar 4, 2013, at 8:57 AM, Michael mich...@los-pollos.co wrote:
 
 Hi All, just wondering if anyone can help me with this problem I am 
 having with sogosync and html emails.
 
 I have sogo 2.0.4 and sogosync(latest) up and running and email, contacts 
 and calendar are all downloading. Except HTML emails, the images dont get 
 displayed and the HTML does not get rendered.
 
 I have tried on different devices and the same issue. I also get errors 
 on the iphone - 'The connection to the server failed' even though email 
 is downloaded - I suspect it may be related to the HTML not able to 
 download properly?
 
 I have configured sogosync as per instructions which was very straight 
 forward. I am thinking it may be an apache issue?
 
 here is my apache virtualhost config for sogosync:
 
 NameVirtualHost *:443
 
 VirtualHost *:443
  ServerName autodiscover.example.com
  ServerAdmin webmas...@example.com
 
  SSLEngine on
  SSLCertificateFile

Re: [SOGo] sogosync and html email

2013-03-08 Thread Sven Auhagen
Hi Mark,

I think I have the same settings than you but I can check for you tomorrow, 
when I have access to my server.
Do you get any output in the log file for PHP push that indicates what is wrong?

Best,
Sven

On Mar 9, 2013, at 12:06 AM, Mark Madere s...@expandingcommunication.com 
wrote:

 Sven,
 
 I managed to get calDAV working with BackendCombined but I cannot make 
 CardDAV work.  Can you share your settings?  mine are below.
 
 Thanks,
 Mark
 
 in config.php:
 ...
define('CALDAV_SERVER', 'http://localhost');
define('CALDAV_PORT', '80');
define('CALDAV_PATH', '/SOGo/dav/%u/Calendar/');
define('CALDAV_PERSONAL', '');
 ...
define('CARDDAV_SERVER', 'http://localhost');
define('CARDDAV_PORT', '80');
define('CARDDAV_PATH', '/SOGo/dav/%u/Contacts/');
define('CARDDAV_PRINCIPAL', 'personal'); //Personal CardDAV folder
 ...
 
 in backend/combined/config.php
 ...
'backends' = array(
'i' = array(
'name' = 'BackendIMAP',
'config' = self::$BackendIMAP_config,
),
//'z' = array(
//'name' = 'BackendZarafa',
//'config' = self::$BackendZarafa_config
//),
//'m' = array(
//'name' = 'BackendMaildir',
//'config' = self::$BackendMaildir_config,
//),
//'v' = array(
//'name' = 'BackendVCardDir',
//'config' = self::$BackendVCardDir_config,
//),
'c' = array(
'name' = 'BackendCalDAV',
'config' = self::$BackendCalDAV_config,
),
//'l' = array(
//'name' = 'BackendLDAP',
//'config' = self::$BackendLDAP_config,
//),
'd' = array(
'name' = 'BackendCardDAV',
'config' = self::$BackendCardDAV_config,
),
),
 ...
'folderbackend' = array(
SYNC_FOLDER_TYPE_INBOX = 'i',
SYNC_FOLDER_TYPE_DRAFTS = 'i',
SYNC_FOLDER_TYPE_WASTEBASKET = 'i',
SYNC_FOLDER_TYPE_SENTMAIL = 'i',
SYNC_FOLDER_TYPE_OUTBOX = 'i',
SYNC_FOLDER_TYPE_TASK = 'c',
SYNC_FOLDER_TYPE_APPOINTMENT = 'c',
SYNC_FOLDER_TYPE_CONTACT = 'd',
SYNC_FOLDER_TYPE_NOTE = 'z',
SYNC_FOLDER_TYPE_JOURNAL = 'z',
SYNC_FOLDER_TYPE_OTHER = 'i',
SYNC_FOLDER_TYPE_USER_MAIL = 'i',
SYNC_FOLDER_TYPE_USER_APPOINTMENT = 'c',
SYNC_FOLDER_TYPE_USER_CONTACT = 'd',
SYNC_FOLDER_TYPE_USER_TASK = 'c',
SYNC_FOLDER_TYPE_USER_JOURNAL = 'z',
SYNC_FOLDER_TYPE_USER_NOTE = 'z',
SYNC_FOLDER_TYPE_UNKNOWN = 'z',
),
 ...
 
 
  Original Message  
 Subject: Re: [SOGo] sogosync and html email 
 Date: Wednesday, March 6, 2013 12:57 AM CST 
 From: Michael mich...@los-pollos.co 
 Reply-To: users@sogo.nu
 To: users@sogo.nu 
 References: 513453f4.5090...@los-pollos.co 
 ebaa2185-bfcb-45be-82bf-00dbcd38d...@voleatech.com 
 51346487.40...@los-pollos.co 
 2c923e29-c075-41d1-9966-38876c028...@voleatech.com
 
 
 
 Hi Sven, Actually I am having a problem with PHP-Push-2; I configured 
 config.php and email works fine but CalDAV and CardDAV doesn't.
 
 When I set  ('BACKEND_PROVIDER', BackendCombined);
 
 the devices fail to set up/initialise.
 
 However when I set define('BACKEND_PROVIDER', BackendIMAP); the 
 devices set up but no calendar or contacts.
 
 Here is the config.php for caldav and carddav:
 
 // **
 //  BackendCalDAV settings
 // **
 define('CALDAV_SERVER', 'https://sogo.example.com');
 define('CALDAV_PORT', '443');
 define('CALDAV_PATH', '/SOGo/dav/%u/');
 define('CALDAV_PERSONAL', 'personal'); //Personal CalDAV folder
 
 // **
 //  BackendCardDAV settings
 // **
 define('CARDDAV_SERVER', 'https://sogo.example.com');
 define('CARDDAV_PORT', '443');
 define('CARDDAV_PATH', '/SOGo/dav/%u/');
 define('CARDDAV_PRINCIPAL', 'Contacts'); //Personal CardDAV folder
 
 
 Did you manage to get contacts and calendar working with PHP-Push-2 and 
 SOGo ?
 
 Regards, Michael.
 
 On 4/03/2013 10:21 PM, Sven Auhagen wrote:
 Hi Michael,
 
 sure. Let me know if you have more questions, I also had the same problems 
 than you :)
 
 Best,
 Sven
 
 On Mar 4, 2013, at 10:08 AM, Michael mich...@los-pollos.co wrote:
 
 Hi Sven, thanks so much for this. I will look into php-push
 
 Regards, Michael.
 
 On 4/03/2013 7:18 PM, Sven Auhagen wrote:
 Hi Michael,
 
 sogosync hasn't been updated in 4 month so the support for HTML emails

Re: [SOGo] sogosync and html email

2013-03-04 Thread Sven Auhagen
Hi Michael,

sogosync hasn't been updated in 4 month so the support for HTML emails is not 
integrated.
It was released with zpush 2.0.6 I think.
You either have to merge a new version of zpush with sogoync, basically just 
copy the files from the latest zpush release into sogosync and save the files 
config.php and backend/combined/config.php
before you do it. After the merge copy them back into place.
Another good alternative which is more up to date is 
https://github.com/dupondje/PHP-Push-2 .
It shares the same code but is still maintained.

Best,
Sven

On Mar 4, 2013, at 8:57 AM, Michael mich...@los-pollos.co wrote:

 Hi All, just wondering if anyone can help me with this problem I am having 
 with sogosync and html emails.
 
 I have sogo 2.0.4 and sogosync(latest) up and running and email, contacts and 
 calendar are all downloading. Except HTML emails, the images dont get 
 displayed and the HTML does not get rendered.
 
 I have tried on different devices and the same issue. I also get errors on 
 the iphone - 'The connection to the server failed' even though email is 
 downloaded - I suspect it may be related to the HTML not able to download 
 properly?
 
 I have configured sogosync as per instructions which was very straight 
 forward. I am thinking it may be an apache issue?
 
 here is my apache virtualhost config for sogosync:
 
 NameVirtualHost *:443
 
 VirtualHost *:443
  ServerName autodiscover.example.com
  ServerAdmin webmas...@example.com
 
  SSLEngine on
  SSLCertificateFile /etc/ssl/certs/ssl.example.com.crt
  SSLCertificateKeyFile /etc/ssl/private/ssl.example.com.key
 
 
  # Force all requests to lowercase. Different MUAs, mobile devices etc
  # request the Autodiscover URL in different cases.
  RewriteEngine On
  RewriteMap lc int:tolower
  RewriteCond %{REQUEST_URI} [A-Z]
  RewriteRule (.*) ${lc:$1} [R=301,L]
 
  DocumentRoot /var/www/autodiscover/
  Directory /
   Options +FollowSymLinks -Indexes
   AllowOverride Options Indexes Limit FileInfo AuthConfig
  /Directory
 
  Alias /autodiscover/autodiscover.xml 
 /var/www/autodiscover/autodiscover/autodiscover.php
 
  ErrorLog /var/www/autodiscover/logs/error.log
  CustomLog /var/www/autodiscover/logs/access.log combined
 /VirtualHost
 
 
 Any help is very much appreciated!
 
 -- 
 Regards Michael.
 
 -- 
 users@sogo.nu
 https://inverse.ca/sogo/lists

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

Re: [SOGo] sogosync and html email

2013-03-04 Thread Sven Auhagen
Hi Michael,

sure. Let me know if you have more questions, I also had the same problems than 
you :)

Best,
Sven

On Mar 4, 2013, at 10:08 AM, Michael mich...@los-pollos.co wrote:

 Hi Sven, thanks so much for this. I will look into php-push
 
 Regards, Michael.
 
 On 4/03/2013 7:18 PM, Sven Auhagen wrote:
 Hi Michael,
 
 sogosync hasn't been updated in 4 month so the support for HTML emails is 
 not integrated.
 It was released with zpush 2.0.6 I think.
 You either have to merge a new version of zpush with sogoync, basically just 
 copy the files from the latest zpush release into sogosync and save the 
 files config.php and backend/combined/config.php
 before you do it. After the merge copy them back into place.
 Another good alternative which is more up to date is 
 https://github.com/dupondje/PHP-Push-2 .
 It shares the same code but is still maintained.
 
 Best,
 Sven
 
 On Mar 4, 2013, at 8:57 AM, Michael mich...@los-pollos.co wrote:
 
 Hi All, just wondering if anyone can help me with this problem I am having 
 with sogosync and html emails.
 
 I have sogo 2.0.4 and sogosync(latest) up and running and email, contacts 
 and calendar are all downloading. Except HTML emails, the images dont get 
 displayed and the HTML does not get rendered.
 
 I have tried on different devices and the same issue. I also get errors on 
 the iphone - 'The connection to the server failed' even though email is 
 downloaded - I suspect it may be related to the HTML not able to download 
 properly?
 
 I have configured sogosync as per instructions which was very straight 
 forward. I am thinking it may be an apache issue?
 
 here is my apache virtualhost config for sogosync:
 
 NameVirtualHost *:443
 
 VirtualHost *:443
  ServerName autodiscover.example.com
  ServerAdmin webmas...@example.com
 
  SSLEngine on
  SSLCertificateFile /etc/ssl/certs/ssl.example.com.crt
  SSLCertificateKeyFile /etc/ssl/private/ssl.example.com.key
 
 
  # Force all requests to lowercase. Different MUAs, mobile devices 
 etc
  # request the Autodiscover URL in different cases.
  RewriteEngine On
  RewriteMap lc int:tolower
  RewriteCond %{REQUEST_URI} [A-Z]
  RewriteRule (.*) ${lc:$1} [R=301,L]
 
  DocumentRoot /var/www/autodiscover/
  Directory /
   Options +FollowSymLinks -Indexes
   AllowOverride Options Indexes Limit FileInfo AuthConfig
  /Directory
 
  Alias /autodiscover/autodiscover.xml 
 /var/www/autodiscover/autodiscover/autodiscover.php
 
  ErrorLog /var/www/autodiscover/logs/error.log
  CustomLog /var/www/autodiscover/logs/access.log combined
 /VirtualHost
 
 
 Any help is very much appreciated!
 
 -- 
 Regards Michael.
 
 -- 
 users@sogo.nu
 https://inverse.ca/sogo/lists
 
 -- 
 Regards Michael.
 -- 
 users@sogo.nu
 https://inverse.ca/sogo/lists

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

Re: [SOGo] Openchange_provision error

2013-02-22 Thread Sven Auhagen
You are on the right way.
After joining the samba DC to the domain you have to transfer master control 
over to this DC to actually provision.
Use samba-tool fsmo OPTION
I think what you need is SchemaMasterRole but I am not sure.

Best,
Sven

On Feb 22, 2013, at 5:00 PM, d.bor...@effegidi.it wrote:

 i've tried changing samba domain join from RODC to DC. by these way my first
 problem seem to solved, but i cannot go on with openchange provision because 
 it
 expects local samba is master.. here's the error message:
 
 Add Exchange attributes to Samba schema
 schema_data_add: we are not master: reject request
 
 [!] error while provisioning the Exchange schema classes (53): 
 schema_data_add:
 we are not master: reject request
 [+] Step 3: Exchange Samba with Exchange configuration objects
 [!] error while provisioning the Exchange configuration objects (16):
 objectclass msExchOrganizationContainer is not a valid objectClass in schema
 
 thanks,
 daniele.
 -- 
 users@sogo.nu
 https://inverse.ca/sogo/lists

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