diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbb3a13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +*.log +*spec-20* +*.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..364429d --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-sogo +# $Id: Makefile,v 1.1 2023/01/03 11:51:25 jpp Exp $ +NAME := smeserver-sogo +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index c9a41f7..5d682f5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ -# smeserver-sogo +# smeserver-sogo -SMEServer Koozali developed git repo for smeserver-sogo smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-sogo smecontribs + +## Wiki +
https://wiki.koozali.org/Sogo +
https://wiki.koozali.org/Sogo-repo +
https://wiki.koozali.org/Zarafa_migration_to_SOGo + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-sogo&product=SME%20Contribs&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED) + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
diff --git a/additional/CHANGELOG.git b/additional/CHANGELOG.git new file mode 100644 index 0000000..074d93b --- /dev/null +++ b/additional/CHANGELOG.git @@ -0,0 +1,407 @@ +commit ac62e87df3b5600ebe2d48520633168348b2bf8b +Author: Stephane de Labrusse +Date: Fri Apr 28 14:32:32 2017 +0200 + + typo on imap_max_line_length + +commit 4306b3f6f07b5584fc98123a86d469859a177393 +Author: Stephane de Labrusse +Date: Fri Apr 28 14:26:07 2017 +0200 + + add ownership on /etc/sogo/sieve.creds + +commit 9335d675b231596dcc23eb69e82ae0ea1114a610 +Author: Stephane de Labrusse +Date: Fri Apr 28 14:19:01 2017 +0200 + + spec file + +commit 9083ef66943e4a4d09821865eb2cdbd99f71aa7c +Author: Stephane de Labrusse +Date: Fri Apr 28 14:13:42 2017 +0200 + + Increase maximum IMAP command line length + +commit 8e3545c0a9a387ddf681033390ad7b421383c764 +Author: Stephane de Labrusse +Date: Fri Apr 28 14:09:50 2017 +0200 + + adjusted sogo cron.d, sieve credentials are in /etc/sogo/sieve.creds + +commit 4363cf125c222fde64b056cdfba6fd529b629d8c +Author: Stephane de Labrusse +Date: Fri Mar 24 15:31:11 2017 +0100 + + add junk as a db + +commit 32a05f1cfc9d83ec0932935a8ea98c725a4f7fb5 +Author: Stephane de Labrusse +Date: Fri Mar 24 15:16:18 2017 +0100 + + * Fri Mar 24 2017 stephane de Labrusse - 1.4-2.sme + - Add custom settings to avoid battery drain when using active sync [SME: 10168] + - Thank to Michael McCarn + - the sogo.conf template is rewritten by fragments + - Correction of the backup creation [SME: 9908] + - Thank to Nicola Tiana + +commit ce57c5f887930720cf351cb3b2d590ae339809eb +Author: Stephane de Labrusse +Date: Fri Mar 24 14:31:45 2017 +0100 + + * Fri Mar 24 2017 stephane de Labrusse - 1.4-1.sme + - Add custom settings to avoid battery drain when using active sync + - Thank to Michael McCarn + - the sogo.conf template is rewritten by fragments + +commit ba8f5671c23faa62c89f5eb27ad655ae38c86507 +Author: Stephane de Labrusse +Date: Fri Jul 22 06:25:00 2016 +0200 + + * Sun Jul 24 2016 stephane de Labrusse - 1.3-19.sme + - remove the email of cron for expire-autoreply + +commit a0e13399f179c4b00c0a498ac80167ff4f34bd23 +Author: Stephane de Labrusse +Date: Fri Jan 8 03:10:43 2016 +0100 + + * Sat Jan 16 2016 stephane de Labrusse - 1.3-18.sme + - the template-end is created in the sogo.conf to allow the end user to add his settings + +commit e1ec299c9fc915f9d33f991d10bda6f3e6c941d1 +Author: Stephane de Labrusse +Date: Thu Oct 8 00:31:36 2015 +0200 + + * Wed Oct 7 2015 stephane de Labrusse - 1.3-17.sme + - /etc/e-smith/sql/init/32sogo_upgrade_2.3 is now executable + - actions sogo_upgrade_2.3 is rewritten, thank to daniel Berteaud + +commit a98a54b9e472ac0e6a18924dc8c2124f402082c9 +Author: Stephane de Labrusse +Date: Thu Oct 8 00:16:53 2015 +0200 + + * Wed Oct 7 2015 stephane de Labrusse - 1.3-16.sme + - /etc/e-smith/sql/init/32sogo_upgrade_2.3 is now executable + +commit 2aa247e63f04b36feafba10d592a5f5ff4284932 +Author: Stephane de Labrusse +Date: Wed Oct 7 23:30:21 2015 +0200 + + * Wed Oct 7 2015 stephane de Labrusse - 1.3-16.sme + - /etc/e-smith/sql/init/32sogo_upgrade_2.3 is now executable + +commit 561d13fe49f3283088db8655e47b67720e3ca8d8 +Author: Stephane de Labrusse +Date: Sat Aug 22 14:39:17 2015 +0200 + + * Sat Aug 22 2015 stephane de Labrusse - 1.3-15.sme + - Added sogo-modify to mysql.init + +commit 6497e7c6fb4e18d9f120440aa5c10fb47ccf2036 +Author: Stephane de Labrusse +Date: Wed Jul 8 22:46:34 2015 +0200 + + * Wed Jul 8 2015 stephane de Labrusse - 1.3-14.sme + - Upgrade to sogo 2.3.0, alteration table needed + - thank to ian case + +commit cac187ac7a85071845ae2a77bc0b16a1464e18f0 +Author: Stephane de Labrusse +Date: Sat Feb 21 14:51:19 2015 +0100 + + * Sat Feb 21 2015 stephane de Labrusse - 1.3-12.sme + - Remove a sogo user when a SME Server user is removed + +commit ed4937c430e4d35053f4c9ac287e684ae7e331a7 +Author: Stephane de Labrusse +Date: Sat Feb 21 13:09:45 2015 +0100 + + * Sat Feb 21 2015 stephane de Labrusse - 1.3-11.sme + - Fix the qpsmtpd fix_headers_case plugin + +commit b8f6c829d0103f9e268fcaf277c2aa1831951f59 +Author: Stephane de Labrusse +Date: Tue Jan 6 19:07:20 2015 +0100 + + * Tue Jan 6 2015 stephane de Labrusse - 1.3-10.sme + - Added bindFields parameters to SOGoUserSources based on suggestion of Nicola Tiana in [SME: 7578] + - According to SOGo installation guide, the value of bindFields has to be in an array for recent version + - Thanks to Mats Schuh + +commit b9833df4f392eb52a3dff452371bf8fea3b5085a +Merge: 9c31722 3cd5476 +Author: Stephane de Labrusse +Date: Tue Jan 6 18:54:51 2015 +0100 + + Merge branch 'sme9' of github.com:stephdl/smeserver-sogo into sme9 + +commit 3cd547600d0e60fb85783fdfee611a69b5db4249 +Merge: ef293de aec9529 +Author: Stephane de Labrusse +Date: Tue Jan 6 18:52:56 2015 +0100 + + Merge pull request #1 from mats-ng/sme9 + + Update 10defaults + +commit aec9529ab365836f278845f069ac6451a6b181c7 +Author: mats-ng +Date: Tue Jan 6 16:42:05 2015 +0100 + + Update 10defaults + + added bindFields parameters to SOGoUserSources based on suggestion of Nicola Tiana in [SME: 7578]. According to SOGo installation guide, the value of bindFields has to be in an array for recent versions of SOGo (ie. put in parenthesis), otherwise a warning would have been triggered in sogo.log ([LDAPSource]> WARNING: using old bindFields format - please update it) + +commit 9c3172214d11bc5cf602efc52d58c34b124d82b7 +Author: Stephane de Labrusse +Date: Tue Dec 30 16:13:13 2014 +0100 + + * Tue Dec 30 2014 stephane de Labrusse - 1.3-9.sme + - stop cron email confirmation to the sogo user account [SME: 8756] + - code done by Mats Schuh + +commit ef293debb802316cf0b891ab14c3871b2339a6f9 +Author: Stephane de Labrusse +Date: Mon Dec 29 23:05:04 2014 +0100 + + date corrected + +commit 95b3a62c0f637eb06c7fef6cd8c8e9274ff507c6 +Author: Stephane de Labrusse +Date: Mon Dec 29 22:55:45 2014 +0100 + + * Mon Dec 01 2014 stephane de Labrusse - 1.3-8.sme + - Sogo must be an admin of dovecot for expire-autoreply [SME: 8753] + - Thanks to Mats Schuh + +commit 00cf777ca79d824a21e7139760fe77aedaf628b6 +Author: Stephane de Labrusse +Date: Sun Nov 2 08:48:53 2014 +0100 + + added event to sogo-modify + +commit 0d5903b0890fb961b6f04a6981fd40b2c1e2b32b +Author: Stephane de Labrusse +Date: Sat Nov 1 15:30:00 2014 +0100 + + removed 80srvSOGo + +commit 35442e5d0e64e87fbfadafd7ed493d854a158ec6 +Author: Stephane de Labrusse +Date: Sat Nov 1 14:50:47 2014 +0100 + + removed 80srvSOGo + +commit 3dd08722320c2420dc8621da59bad0351a7da030 +Author: Stephane de Labrusse +Date: Sat Nov 1 14:48:33 2014 +0100 + + removed 80srvSOGo + +commit de8850c88da872b0160ccb349a2c44cc73aff124 +Author: Stephane de Labrusse +Date: Sun Sep 21 14:24:27 2014 +0200 + + SOGoRefreshViewCheck = "every_10_minutes"; + +commit 67d5c5bccc9de45ebbfe09f08fa0ab869527fad8 +Author: Stephane de Labrusse +Date: Sun Sep 21 14:18:14 2014 +0200 + + SOGoRefreshViewCheck = "every_10_minutes"; + +commit 1e7a1bfe0688c05adfc6831fb56d91bc21c5de81 +Author: Stephane de Labrusse +Date: Sun Aug 31 18:55:23 2014 +0200 + + added a . separator for imap instead of / + +commit cdd4a1aef6b92f46d04ab995567ef8c4424bf8d8 +Author: Stephane de Labrusse +Date: Thu Aug 21 23:14:30 2014 +0200 + + removed a db + +commit 87dfe8e098eae8ca35b1867c2d5430a115a30d26 +Author: Stephane de Labrusse +Date: Sun Aug 17 22:05:35 2014 +0200 + + put db in uppercase + +commit f3ea8e9c00e557e561cd66090ed40b7fc1bfed7d +Author: Stephane de Labrusse +Date: Sun Aug 17 21:35:28 2014 +0200 + + spec updated + +commit 04dbb9abd75bd9d63b9d559d815a06b1d8cf4382 +Author: Stephane de Labrusse +Date: Sun Aug 17 19:49:32 2014 +0200 + + added event + +commit b080e610d35a0348dd7ab24e67de308bf04a8558 +Author: Stephane de Labrusse +Date: Sun Aug 17 17:35:21 2014 +0200 + + wip + +commit 5513e63dae261ccd66c0a12adb315413f4438847 +Author: Stephane de Labrusse +Date: Wed Aug 13 23:22:11 2014 +0200 + + wip + +commit 929dfbd87da3cc191cf449e6f7ffee5fdd8f1381 +Author: Stephane de Labrusse +Date: Wed Aug 13 22:40:08 2014 +0200 + + wip + +commit 94ee3924c60b0d5d5bdb5e5bf91124b37c0ddc77 +Author: Stephane de Labrusse +Date: Wed Aug 13 22:06:08 2014 +0200 + + wip + +commit 4ba9064a5f7a693789618198b1f2ec676cf2ca41 +Author: Stephane de Labrusse +Date: Wed Aug 13 21:59:15 2014 +0200 + + wip + +commit 8c3ff55ed3eb46e531383263d249c706553578be +Author: Stephane de Labrusse +Date: Wed Aug 13 18:46:54 2014 +0200 + + wip + +commit 8d0a22f9e50a4d8cfd4ad67808c9d34bd0820b85 +Author: Stephane de Labrusse +Date: Wed Aug 13 01:26:48 2014 +0200 + + wip + +commit b37e737d3e3465ee6a438ae8182a5c8ea0d347a3 +Author: Stephane de Labrusse +Date: Wed Aug 13 00:58:43 2014 +0200 + + wip + +commit 6d4f53dc3ef58b0af76be5f6f9a3589dcac691ad +Author: Stephane de Labrusse +Date: Wed Aug 13 00:31:48 2014 +0200 + + wip + +commit 85b2d9d9be852a8871b861e8ab9b4a3bffa19bcd +Author: Stephane de Labrusse +Date: Wed Aug 13 00:11:28 2014 +0200 + + wip + +commit e5bccd4dce71458f5e17a548d89b9409b4abcabb +Author: Stephane de Labrusse +Date: Tue Aug 12 23:49:56 2014 +0200 + + wip + +commit dac8fc703e365fdfa51a0e84c28c10110d699e0e +Author: Stephane de Labrusse +Date: Mon Aug 11 23:43:27 2014 +0200 + + wip + +commit 934045c926a7875e5eb895965cbb7aedd8825548 +Author: Stephane de Labrusse +Date: Mon Aug 11 23:17:21 2014 +0200 + + wip + +commit a1f6d558edbecbed73f9e8316ce5a303db19de48 +Author: Stephane de Labrusse +Date: Mon Aug 11 22:52:11 2014 +0200 + + wip + +commit ec1c05e4f89b57af1af5620d1600b67b6a09d4d4 +Author: Stephane de Labrusse +Date: Mon Aug 11 22:16:38 2014 +0200 + + wip + +commit 09b81dd1a3249c0e6187dbeffcb50792b9e17b01 +Author: Stephane de Labrusse +Date: Sat Aug 9 02:44:16 2014 +0200 + + wip + +commit d6c8173185b6ec3123a90b368e718b6621bbd563 +Author: Stephane de Labrusse +Date: Thu May 8 19:20:09 2014 +0200 + + #modified: createlinks + #modified: smeserver-sogo.spec + +commit 364665700e7e1ffccd5a51501d545c662a9e28dd +Author: Stephane de Labrusse +Date: Thu May 8 18:26:21 2014 +0200 + + add post-upgrade to createlinks + +commit d783de91b8cbf7f736096ad7e1203c79a1708208 +Author: Stephane de Labrusse +Date: Thu May 8 18:01:25 2014 +0200 + + remove CREATE TABLE IF NOT EXISTS `sogo_sessions_folder` ( + `c_uid` varchar(255) NOT NULL, + `c_defaults` text, + `c_settings` text, + PRIMARY KEY (`c_uid`) + ) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +commit d91cde1438ef5b0329ece8342fd86af42e6315b5 +Author: Stephane de Labrusse +Date: Thu May 8 17:21:43 2014 +0200 + + modified: smeserver-sogo.spec + +commit 81687ece85c0f341a7cdcafdb800ffbf28d8b583 +Author: Stephane de Labrusse +Date: Thu May 8 17:03:10 2014 +0200 + + modified: root/var/lib/sogo/smeserver/sogo_mysql_create_database.sql + +commit 5ab1ae360fedb61ed332a6651780126b51ee5ded +Author: Stephane de Labrusse +Date: Thu May 8 15:31:00 2014 +0200 + + minor modification of arch detection + +commit e3010d415fbcaa153944a3dadb55ed2e0adb29a3 +Author: Stephane de Labrusse +Date: Thu May 8 15:21:02 2014 +0200 + + * Thu May 08 2014 stephane de Labrusse - 1.1-1 + - First release For SME Server 9 Thanks for all previous valorous developers + - removed expand-template for bootstrap-console-save in createlink + - added an architecture detection for template the file + - /etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess + +commit bce112728ff7436f0cd9e6748d1197582ba83ee3 +Author: Stephane de Labrusse +Date: Thu May 8 12:13:35 2014 +0200 + + removed the bootstrap-console-save for /etc/httpd/conf/httpd.conf in createlinks + +commit 0e8be442f08629337058aa6b381c8aaec6d2c45c +Author: Stephane de Labrusse +Date: Thu May 8 12:11:01 2014 +0200 + + initial release + +commit 487e3b51f8eb356459e92785bdcbbcde30272730 +Author: Stephane de Labrusse +Date: Thu May 8 02:55:12 2014 -0700 + + Initial commit diff --git a/additional/LICENSE b/additional/LICENSE new file mode 100644 index 0000000..22fbe5d --- /dev/null +++ b/additional/LICENSE @@ -0,0 +1,339 @@ +GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + {description} + Copyright (C) {year} {fullname} + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + {signature of Ty Coon}, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. \ No newline at end of file diff --git a/additional/README.md b/additional/README.md new file mode 100644 index 0000000..c7d4847 --- /dev/null +++ b/additional/README.md @@ -0,0 +1,2 @@ +smeserver-sogo +============== diff --git a/additional/smeserver-sogo.spec b/additional/smeserver-sogo.spec new file mode 100644 index 0000000..963744f --- /dev/null +++ b/additional/smeserver-sogo.spec @@ -0,0 +1,255 @@ +# $Id$ +%define name smeserver-sogo +%define version 1.5 +%define release 1 + +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +Summary: SME Server SOGo Groupware +Group: Networking/Daemons +License: GPLv3+ +URL: http://www.smeserver.org +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +Epoch: 9 +BuildRequires: e-smith-devtools +Requires: smeserver-release >= 9 +Requires: e-smith-ldap +Requires: sogo >= 2.3.0 +Requires: sogo-tool +Requires: memcached +Requires: sogo-activesync +Requires: sope49-gdl1-mysql +Requires: sogo-ealarms-notify +Requires: python-memcached +Requires: smeserver-dovecot-extras +%description +SME Server module for SOGo groupware. + +%prep +##my bad to remove a bad folder if exists [1.3-6.sme] +/bin/rm -rf /var/service/tinydns/root/data/ &> /dev/null + +%setup -q + +%build +[ -x createlinks ] && ./createlinks + +%install +rm -rf $RPM_BUILD_ROOT +rm -f %{name}-%{version}-filelist + +(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) + +/sbin/e-smith/genfilelist \ + --dir /var/lib/sogo/GNUstep 'attr(0755,sogo,sogo)' \ + --dir /var/lib/sogo/GNUstep/Defaults 'attr(0755,sogo,sogo)' \ + $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post + +if [ $1 == 1 ]; then #first install + /etc/e-smith/events/actions/initialize-default-databases &> /dev/null + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/30sogo_mysql_create_database + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/31sogo_mysql_update_privileges + /sbin/e-smith/expand-template \ + /var/lib/sogo/smeserver/sogo_mysql_update_privileges.sql + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/31sogo_upgrade + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/32sogo_upgrade_2.3 + /sbin/service mysql.init start + /sbin/e-smith/signal-event sogo-modify +elif [ $1 -gt 1 ]; then #update + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/31sogo_upgrade + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/32sogo_upgrade_2.3 + /sbin/service mysql.init start + /etc/e-smith/events/actions/initialize-default-databases &> /dev/null || : + /sbin/e-smith/signal-event sogo-modify || : +fi + +# set sogo password +/bin/cat /etc/openldap/ldap.pw | /usr/bin/passwd sogo --stdin &> /dev/null || : + + +%postun +if [ $1 = 1 ]; then + /etc/e-smith/events/actions/initialize-default-databases &> /dev/null || : + /sbin/e-smith/signal-event sogo-modify || : +fi + + + +%files -f %{name}-%{version}-%{release}-filelist + + +%changelog +* Wed Apr 28 2017 Stephane de Labrusse - 1.5-1.sme +- Increase maximum IMAP command line length +- Adjusted sogo cron.d, sieve credentials are in /etc/sogo/sieve.creds + +* Fri Mar 24 2017 stephane de Labrusse - 1.4-2.sme +- Add custom settings to avoid battery drain when using active sync [SME: 10168] +- Thank to Michael McCarn +- the sogo.conf template is rewritten by fragments +- Correction of the backup creation [SME: 9908] +- Thank to Nicola Tiana + +* Sun Jul 24 2016 stephane de Labrusse - 1.3-19.sme +- remove the email of cron for expire-autoreply + +* Sat Jan 16 2016 stephane de Labrusse - 1.3-18.sme +- the template-end is created in the sogo.conf to allow the end user to add his settings + +* Wed Oct 7 2015 stephane de Labrusse - 1.3-17.sme +- /etc/e-smith/sql/init/32sogo_upgrade_2.3 is now executable +- actions sogo_upgrade_2.3 is rewritten, thank to daniel Berteaud + +* Sat Aug 22 2015 stephane de Labrusse - 1.3-15.sme +- Added sogo-modify to mysql.init + +* Wed Jul 8 2015 stephane de Labrusse - 1.3-14.sme +- Upgrade to sogo 2.3.0, alteration table needed +- thank to ian case + +* Sat Feb 21 2015 stephane de Labrusse - 1.3-12.sme +- Remove a sogo user when a SME Server user is removed + +* Sat Feb 21 2015 stephane de Labrusse - 1.3-11.sme +- Fix the qpsmtpd fix_headers_case plugin + +* Tue Jan 6 2015 stephane de Labrusse - 1.3-10.sme +- Added bindFields parameters to SOGoUserSources based on suggestion of Nicola Tiana in [SME: 7578] +- According to SOGo installation guide, the value of bindFields has to be in an array for recent version +- Thanks to Mats Schuh + +* Tue Dec 30 2014 stephane de Labrusse - 1.3-9.sme +- stop cron email confirmation to the sogo user account [SME: 8756] +- code done by Mats Schuh + +* Mon Dec 29 2014 stephane de Labrusse - 1.3-8.sme +- Sogo must be an admin of dovecot for expire-autoreply [SME: 8753] +- Thanks to Mats Schuh + +* Sat Nov 01 2014 stephane de Labrusse - 1.3-7.sme +- removed a bad file 80srvSOGo in the template path of /var/service/tinydns/root/data +- added restart and event-template to tinydns with sogo-modify + +* Sun Sep 21 2014 stephane de Labrusse - 1.3-5.sme +- SOGoMailMessageCheck has been replaced by SOGoRefreshViewCheck + +* Sun Aug 31 2014 stephane de Labrusse - 1.3-4.sme +- Added . separator for imap, instead of / by default + +* Sun Aug 17 2014 stephane de Labrusse - 1.3-3.sme +- a bit of clean and new code inspired from ipasserelle-groupware. Thanks to daniel berteaud +- added sieve and acl support (come with smeserver-dovecot-extras) +- added a panel in the server-manager with options +- added active-sync support +- added sogo notifications + + +* Thu May 08 2014 stephane de Labrusse - 1.1-2 +- First release For SME Server 9 Thanks for all previous valorous developers +- removed expand-template for bootstrap-console-save in createlink +- added an architecture detection for template the file +- /etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess + +* Wed Dec 11 2013 Davide Principi - 1.0.1-1 +- Fixed sogo.conf syntax. Refs #2339 + +* Mon Dec 9 2013 Davide Principi - 1.0.0-1 +- Release 1.0.0. Refs #2339 +- Require sogo >= 2.1.1b-1 + +* Mon Dec 9 2013 Davide Principi - 0.9.1-1 +- Release 0.9.1 +- Fixes bug #2372 + +* Mon Dec 2 2013 Davide Principi - 0.9-1 +- sogo home directory moved to /var/lib/sogo to fix #2369 + +* Fri Apr 26 2013 Davide Principi - 0.8-2 +- Create symlink to new SOGo 2.0.x homedir, to support fresh installations + +* Thu Oct 18 2012 Giacomo Sanchiettti - 0.8-1 +- Add support for vacation auto-disable feature +- Add memcached requires (previously on sogo package) + +* Fri Sep 14 2012 Alessio Fattorini - 0.7-1 +- Enable notification for calendar modifications (refs #1398) +- Customize From header (refs #1339) +- Support SharedFolder (refs #1432) + +* Fri Mar 9 2012 Alessio Fattorini - 0.6.1 +- Removed bindFields (bug #845) +- Fixed backup by sogo-tool (bug #839) +- Upgrade SOGo db to 1.3.12 + +* Wed Nov 30 2011 Alessio Fattorini - 0.6 +- change GNUstep path + +* Wed Sep 7 2011 Alessio Fattorini - 0.5.9-2 +- Add CardDAV external access (bug #423) + +* Wed Jul 20 2011 Alessio Fattorini - 0.5.9-1 +- Disable sieve support for NethService 8.0 +- Correct postun + +* Mon May 16 2011 Giacomo Sanchietti - 0.5.8-1 +- Add sieve support +- Add configurable prefork option +- Enable session folders +- Update to SOGo 1.3.4 + +* Thu Aug 5 2010 Federico Simoncelli - 0.5.6-1 +- add configurable option for ACLsSendEMailNotifications +- add EnablePublicAccess +- change MailingMechanism to SMTP +- redirect http requests for sogo to SOGo + +* Mon Aug 2 2010 Federico Simoncelli - 0.5.5-1 +- upgrade to sogo 1.3.0 + +* Tue Mar 30 2010 Federico Simoncelli - 0.5.4-1 +- escape curly brackets in sogo logrotate template + +* Fri Mar 19 2010 Federico Simoncelli - 0.5.3-1 +- add logrotate for sogo log files +- nethesis smesetup (post/postun) scripts + +* Tue Mar 16 2010 Federico Simoncelli - 0.5.2-2 +- rej files cleanup + +* Tue Mar 16 2010 Daniel Berteaud - 0.5.2-1 +- enable groups for ACL +- configure admin users from the db +- disable bogus notifications (acl and folders) +- configure sent and draft imap folders from DB +- redirect webmail when imp is disabled (Stephen Noble) +- proxypass port from the db (Federico Simoncelli) + +* Fri Mar 12 2010 Daniel Berteaud - 0.5.1-1 +- anonymous bind is sufficient to authenticate users +- limit sogo daemon bind to the loopback interface +- SOGo protected with SSL +- memcached bind to loopback, port from TCPPort +- templates expansion from post-upgrade to bootstrap-console-save +- read the ldap port from db +- split the local ldap directory in two parts: users and groups +- notifications sent by email will have the correct URL + +* Thu Feb 18 2010 Federico Simoncelli - 0.5.0-1 +- first release + + diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..9b7fd51 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +contribs10 diff --git a/createlinks b/createlinks new file mode 100755 index 0000000..35f057a --- /dev/null +++ b/createlinks @@ -0,0 +1,56 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); + +#action needed in case we have a systemd unit +$event = "smeserver-sogo-update"; +templates2events("/etc/systemd/system-preset/49-koozali.preset",$event); +event_link("systemd-default", $event, "10"); +event_link("systemd-reload", $event, "50"); + +#service_link_enhanced("memcached", "S55", "7"); +#service_link_enhanced("sogod", "S85", "7"); + +templates2events("/etc/e-smith/sql/init/30sogo_mysql_create_database", qw(sogo-modify smeserver-sogo-update post-install bootstrap-console-save)); +templates2events("/etc/e-smith/sql/init/31sogo_mysql_update_privileges", qw(sogo-modify smeserver-sogo-update post-install bootstrap-console-save)); +templates2events("/etc/e-smith/sql/init/31sogo_upgrade", qw(sogo-modify smeserver-sogo-update post-install post-upgrade)); +templates2events("/etc/e-smith/sql/init/32sogo_upgrade_2.3", qw(sogo-modify smeserver-sogo-update post-install post-upgrade)); + +templates2events("/var/lib/sogo/smeserver/sogo_mysql_update_privileges.sql", qw(sogo-modify smeserver-sogo-update post-install bootstrap-console-save)); + +templates2events("/var/service/tinydns/root/data", qw( email-update sogo-modify smeserver-sogo-update)); +templates2events("/etc/httpd/conf/httpd.conf", qw( email-update sogo-modify smeserver-sogo-update)); +templates2events("/etc/sogo/sogo.conf", qw( email-update sogo-modify smeserver-sogo-update bootstrap-console-save)); +templates2events("/etc/sysconfig/memcached", qw( email-update sogo-modify smeserver-sogo-update bootstrap-console-save)); +templates2events("/etc/logrotate.d/sogo", qw( email-update sogo-modify smeserver-sogo-update bootstrap-console-save)); +templates2events("/etc/sysconfig/sogo", qw( email-update sogo-modify smeserver-sogo-update bootstrap-console-save)); +templates2events("/etc/rc.d/init.d/masq",qw( email-update sogo-modify smeserver-sogo-update)); +templates2events("/etc/cron.d/sogo",qw( email-update sogo-modify smeserver-sogo-update)); +templates2events("/etc/dovecot/master.users",qw( email-update sogo-modify smeserver-sogo-update)); +templates2events("/etc/dovecot/dovecot.conf",qw( sogo-modify smeserver-sogo-update)); +templates2events("/etc/sogo/sieve.creds",qw(sogo-modify smeserver-sogo-update post-install bootstrap-console-save)); + +safe_symlink("sigusr1", "root/etc/e-smith/events/sogo-modify/services2adjust/httpd-e-smith"); +safe_symlink("restart", "root/etc/e-smith/events/sogo-modify/services2adjust/sogod"); +safe_symlink("restart", "root/etc/e-smith/events/sogo-modify/services2adjust/dovecot"); +safe_symlink("restart", "root/etc/e-smith/events/sogo-modify/services2adjust/memcached"); +safe_symlink("adjust", "root/etc/e-smith/events/sogo-modify/services2adjust/masq"); +safe_symlink("restart", "root/etc/e-smith/events/sogo-modify/services2adjust/tinydns"); +safe_symlink("start", "root/etc/e-smith/events/sogo-modify/services2adjust/mysql.init"); + +safe_symlink("sigusr1", "root/etc/e-smith/events/smeserver-sogo-update/services2adjust/httpd-e-smith"); +safe_symlink("restart", "root/etc/e-smith/events/smeserver-sogo-update/services2adjust/sogod"); +safe_symlink("restart", "root/etc/e-smith/events/smeserver-sogo-update/services2adjust/dovecot"); +safe_symlink("restart", "root/etc/e-smith/events/smeserver-sogo-update/services2adjust/memcached"); +safe_symlink("adjust", "root/etc/e-smith/events/smeserver-sogo-update/services2adjust/masq"); +safe_symlink("restart", "root/etc/e-smith/events/smeserver-sogo-update/services2adjust/tinydns"); +safe_symlink("start", "root/etc/e-smith/events/smeserver-sogo-update/services2adjust/mysql.init"); + + +for my $event (qw(pre-backup)) +{ + event_link("sogo-backup", $event, "80"); +} +event_link("sogo-delete-user", "user-delete", "10"); + +panel_link("sogo", "manager"); diff --git a/root/etc/cron.hourly/sogo-sessions b/root/etc/cron.hourly/sogo-sessions new file mode 100644 index 0000000..d88779f --- /dev/null +++ b/root/etc/cron.hourly/sogo-sessions @@ -0,0 +1,6 @@ +#!/bin/bash + +TIME=$(/sbin/e-smith/db configuration getprop sogod SessionDuration || echo 1440) + +# Remove old SOGo sessions entries +su -l -s /bin/bash sogo -c "/usr/sbin/sogo-tool expire-sessions $TIME" diff --git a/root/etc/e-smith/db/configuration/defaults/apple-carddav/TCPPort b/root/etc/e-smith/db/configuration/defaults/apple-carddav/TCPPort new file mode 100644 index 0000000..c76f480 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/apple-carddav/TCPPort @@ -0,0 +1 @@ +8843 diff --git a/root/etc/e-smith/db/configuration/defaults/apple-carddav/access b/root/etc/e-smith/db/configuration/defaults/apple-carddav/access new file mode 100644 index 0000000..a48cf0d --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/apple-carddav/access @@ -0,0 +1 @@ +public diff --git a/root/etc/e-smith/db/configuration/defaults/apple-carddav/status b/root/etc/e-smith/db/configuration/defaults/apple-carddav/status new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/apple-carddav/status @@ -0,0 +1 @@ +enabled diff --git a/root/etc/e-smith/db/configuration/defaults/apple-carddav/type b/root/etc/e-smith/db/configuration/defaults/apple-carddav/type new file mode 100644 index 0000000..24e1098 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/apple-carddav/type @@ -0,0 +1 @@ +service diff --git a/root/etc/e-smith/db/configuration/defaults/dovecot/ImapMaxLineLenght b/root/etc/e-smith/db/configuration/defaults/dovecot/ImapMaxLineLenght new file mode 100644 index 0000000..c873496 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/dovecot/ImapMaxLineLenght @@ -0,0 +1 @@ +2048 diff --git a/root/etc/e-smith/db/configuration/defaults/memcached/TCPPort b/root/etc/e-smith/db/configuration/defaults/memcached/TCPPort new file mode 100644 index 0000000..4cddae9 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/memcached/TCPPort @@ -0,0 +1 @@ +11211 diff --git a/root/etc/e-smith/db/configuration/defaults/memcached/access b/root/etc/e-smith/db/configuration/defaults/memcached/access new file mode 100644 index 0000000..3e18ebf --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/memcached/access @@ -0,0 +1 @@ +private diff --git a/root/etc/e-smith/db/configuration/defaults/memcached/status b/root/etc/e-smith/db/configuration/defaults/memcached/status new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/memcached/status @@ -0,0 +1 @@ +enabled diff --git a/root/etc/e-smith/db/configuration/defaults/memcached/type b/root/etc/e-smith/db/configuration/defaults/memcached/type new file mode 100644 index 0000000..24e1098 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/memcached/type @@ -0,0 +1 @@ +service diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/ACLsSendEMailNotifications b/root/etc/e-smith/db/configuration/defaults/sogod/ACLsSendEMailNotifications new file mode 100644 index 0000000..5e35d1b --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/ACLsSendEMailNotifications @@ -0,0 +1 @@ +NO diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/ActiveSync b/root/etc/e-smith/db/configuration/defaults/sogod/ActiveSync new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/ActiveSync @@ -0,0 +1 @@ +disabled diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/AdminUsers b/root/etc/e-smith/db/configuration/defaults/sogod/AdminUsers new file mode 100644 index 0000000..7fbe952 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/AdminUsers @@ -0,0 +1 @@ +admin diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/DraftsFolder b/root/etc/e-smith/db/configuration/defaults/sogod/DraftsFolder new file mode 100644 index 0000000..2c19063 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/DraftsFolder @@ -0,0 +1 @@ +Drafts diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/EnableEMailAlarms b/root/etc/e-smith/db/configuration/defaults/sogod/EnableEMailAlarms new file mode 100644 index 0000000..5e35d1b --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/EnableEMailAlarms @@ -0,0 +1 @@ +NO diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/LdapTCPPort b/root/etc/e-smith/db/configuration/defaults/sogod/LdapTCPPort new file mode 100644 index 0000000..6bb2f4e --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/LdapTCPPort @@ -0,0 +1 @@ +389 diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/MailAuxiliaryUserAccountsEnabled b/root/etc/e-smith/db/configuration/defaults/sogod/MailAuxiliaryUserAccountsEnabled new file mode 100644 index 0000000..f033a50 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/MailAuxiliaryUserAccountsEnabled @@ -0,0 +1 @@ +YES diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/PublicAccess b/root/etc/e-smith/db/configuration/defaults/sogod/PublicAccess new file mode 100644 index 0000000..5e35d1b --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/PublicAccess @@ -0,0 +1 @@ +NO diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/SOGoInternalSyncInterval b/root/etc/e-smith/db/configuration/defaults/sogod/SOGoInternalSyncInterval new file mode 100644 index 0000000..abdfb05 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/SOGoInternalSyncInterval @@ -0,0 +1 @@ +60 diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumPingInterval b/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumPingInterval new file mode 100644 index 0000000..917f4b7 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumPingInterval @@ -0,0 +1 @@ +3540 diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumSyncInterval b/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumSyncInterval new file mode 100644 index 0000000..917f4b7 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumSyncInterval @@ -0,0 +1 @@ +3540 diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumSyncResponseSize b/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumSyncResponseSize new file mode 100644 index 0000000..c873496 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumSyncResponseSize @@ -0,0 +1 @@ +2048 diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumSyncWindowSize b/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumSyncWindowSize new file mode 100644 index 0000000..29d6383 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/SOGoMaximumSyncWindowSize @@ -0,0 +1 @@ +100 diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/SentFolder b/root/etc/e-smith/db/configuration/defaults/sogod/SentFolder new file mode 100644 index 0000000..52665cf --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/SentFolder @@ -0,0 +1 @@ +Sent diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/SessionDuration b/root/etc/e-smith/db/configuration/defaults/sogod/SessionDuration new file mode 100644 index 0000000..68abbd9 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/SessionDuration @@ -0,0 +1 @@ +1440 diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/SpamFolder b/root/etc/e-smith/db/configuration/defaults/sogod/SpamFolder new file mode 100644 index 0000000..c2c4c54 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/SpamFolder @@ -0,0 +1 @@ +Junk diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/TCPPort b/root/etc/e-smith/db/configuration/defaults/sogod/TCPPort new file mode 100644 index 0000000..b92677e --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/TCPPort @@ -0,0 +1 @@ +20000 diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/TrashFolder b/root/etc/e-smith/db/configuration/defaults/sogod/TrashFolder new file mode 100644 index 0000000..21a4eb7 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/TrashFolder @@ -0,0 +1 @@ +Trash diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/WOWatchDogRequestTimeout b/root/etc/e-smith/db/configuration/defaults/sogod/WOWatchDogRequestTimeout new file mode 100644 index 0000000..4dc663e --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/WOWatchDogRequestTimeout @@ -0,0 +1 @@ +3600 diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/WOWorkersCount b/root/etc/e-smith/db/configuration/defaults/sogod/WOWorkersCount new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/WOWorkersCount @@ -0,0 +1 @@ +10 diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/status b/root/etc/e-smith/db/configuration/defaults/sogod/status new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/status @@ -0,0 +1 @@ +enabled diff --git a/root/etc/e-smith/db/configuration/defaults/sogod/type b/root/etc/e-smith/db/configuration/defaults/sogod/type new file mode 100644 index 0000000..24e1098 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/sogod/type @@ -0,0 +1 @@ +service diff --git a/root/etc/e-smith/db/configuration/migrate/SOGoPassword b/root/etc/e-smith/db/configuration/migrate/SOGoPassword new file mode 100644 index 0000000..7d0b86e --- /dev/null +++ b/root/etc/e-smith/db/configuration/migrate/SOGoPassword @@ -0,0 +1,33 @@ +{ + my $sogodrec = $DB->get('sogod') + || $DB->new_record('sogod', {type => 'service'}); + my $sogod_pw = $sogodrec->prop('DbPassword'); + if (not $sogod_pw or length($sogod_pw) < 57) + { + use MIME::Base64 qw(encode_base64); + + $sogod_pw = "not set due to error"; + if ( open( RANDOM, "/dev/urandom" ) ) + { + my $buf; + # 57 bytes is a full line of Base64 coding, and contains + # 456 bits of randomness - given a perfectly random /dev/random + if ( read( RANDOM, $buf, 57 ) != 57 ) + { + warn("Short read from /dev/random: $!"); + } + else + { + $sogod_pw = encode_base64($buf); + chomp $sogod_pw; + $sogod_pw =~ s/\//\./g; # SOGo hates passwords with slashes + } + close RANDOM; + } + else + { + warn "Could not open /dev/urandom: $!"; + } + $sogodrec->set_prop('DbPassword', $sogod_pw); + } +} diff --git a/root/etc/e-smith/db/configuration/migrate/SogoIsDovecotAdmin b/root/etc/e-smith/db/configuration/migrate/SogoIsDovecotAdmin new file mode 100644 index 0000000..e06bca5 --- /dev/null +++ b/root/etc/e-smith/db/configuration/migrate/SogoIsDovecotAdmin @@ -0,0 +1,6 @@ +{ +##we want that sogo be an admin in dovecot for expire-autoreply + use esmith::ConfigDB; + my $DB = esmith::ConfigDB->open or die ("can not open db configuration : $!"); + $DB->set_prop('dovecot','AdminIsMaster','enabled'); +} diff --git a/root/etc/e-smith/events/actions/sogo-backup b/root/etc/e-smith/events/actions/sogo-backup new file mode 100755 index 0000000..be3d99a --- /dev/null +++ b/root/etc/e-smith/events/actions/sogo-backup @@ -0,0 +1,4 @@ +mkdir /home/e-smith/sogo &> /dev/null +/usr/sbin/sogo-tool backup /tmp/backup ALL &> /dev/null +tar cvzf /home/e-smith/sogo/backup.tgz -C /tmp/ backup &> /dev/null +rm -rf /tmp/backup &> /dev/null diff --git a/root/etc/e-smith/events/actions/sogo-delete-user b/root/etc/e-smith/events/actions/sogo-delete-user new file mode 100644 index 0000000..7ea545c --- /dev/null +++ b/root/etc/e-smith/events/actions/sogo-delete-user @@ -0,0 +1,16 @@ +#!/bin/bash + +EVENT=$1 +USER=$2 + +if [ -z "$EVENT" ]; then + echo "event name is missing" + exit 1 +fi +if [ -z "$USER" ]; then + echo "user account is missing" + exit 1 +fi + +su -l -s /bin/bash sogo -c "/usr/sbin/sogo-tool remove $USER" > /dev/null 2>&1 + diff --git a/root/etc/e-smith/events/actions/sogo_upgrade b/root/etc/e-smith/events/actions/sogo_upgrade new file mode 100755 index 0000000..73082ed --- /dev/null +++ b/root/etc/e-smith/events/actions/sogo_upgrade @@ -0,0 +1,99 @@ +#!/usr/bin/perl -w +#---------------------------------------------------------------------- +# copyright (C) 2010 Nethesis srl +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +#---------------------------------------------------------------------- + +use strict; +use DBI; +use esmith::ConfigDB; +use esmith::util; + +# Exit early if there is nothing to do +die("sogo db must exist") unless ( -d "/var/lib/mysql/sogo/"); +die("sogo db must exist") unless ( -f "/var/lib/mysql/sogo/sogo_folder_info.frm"); + +# This is a translation of the script 'sql-update-1.2.2_to_1.3.0-mysql.sh' +# that is safe to run multiple times, and which can be run on a 1.2.2 +# installation without barfing. + +my $conf = esmith::ConfigDB->open_ro + or die "Can't open configuration database: $!\n"; + +our $username = 'sogo'; +our $password = $conf->get_prop("sogod", "DbPassword") || ''; +our $database = 'sogo'; +our $dbi_options = { PrintError => 0, ChopBlanks => 1, AutoCommit => 1 }; + +my $db_handle = DBI->connect("DBI:mysql:$database", + $username, $password, $dbi_options) || + die ("Connection error: $DBI::errstr"); + +my $folders_sth = $db_handle->prepare(qq{ + SELECT SUBSTRING_INDEX(c_quick_location, '/', -1) + FROM sogo_folder_info WHERE c_folder_type = 'Appointment'; +}) || die ("Unable to prepare query: $DBI::errstr"); + +$folders_sth->execute() || die ("Unable to execute query: $DBI::errstr"); + +while (my @folders_row = $folders_sth->fetchrow_array()) { + $db_handle->do(qq{ + ALTER TABLE $folders_row[0] ADD COLUMN c_category VARCHAR(255); + }); +} + +# This is a translation of the script 'sql-update-1.3.3_to_1.3.4-mysql.sh' +# that is safe to run multiple times, and which can be run on a 1.2.2 or 1.3.2 +# installation without barfing. + +my $contacts_sth = $db_handle->prepare(qq{ + SELECT SUBSTRING_INDEX(c_quick_location, '/', -1) + FROM sogo_folder_info where c_folder_type = 'Contact'; +}) || die ("Unable to prepare query: $DBI::errstr"); + +$contacts_sth->execute() || die ("Unable to execute query: $DBI::errstr"); + +while (my @contacts_row = $contacts_sth->fetchrow_array()) { + $db_handle->do(qq{ + ALTER TABLE $contacts_row[0] ADD COLUMN c_categories VARCHAR(255); + }); +} + +# This is a translation of the script sql-update-1.3.11_to_1.3.12-mysql.sh +# that is safe to run multiple times, and which can be run on a 1.2.2 or 1.3.9 +# installation without barfing. +$db_handle->do(qq{ + ALTER TABLE sogo_sessions_folder ADD PRIMARY KEY (c_id); +}); + +# This is a translation of the script sql-update-1.3.16_to_1.3.17-mysql.sh +# This script only works with mysql +# updates c_cycleinfo to mediumtext +# + +my $tables_sth = $db_handle->prepare(qq{ + SELECT SUBSTRING_INDEX(c_quick_location, '/', -1) + FROM sogo_folder_info where c_path3 = 'Calendar'; +}) || die ("Unable to prepare query: $DBI::errstr"); + +$tables_sth->execute() || die ("Unable to execute query: $DBI::errstr"); + +while (my @table_row = $tables_sth->fetchrow_array()) { + $db_handle->do(qq{ + ALTER TABLE $table_row[0] MODIFY c_cycleinfo mediumtext; + }); +} + diff --git a/root/etc/e-smith/events/actions/sogo_upgrade_2.3 b/root/etc/e-smith/events/actions/sogo_upgrade_2.3 new file mode 100644 index 0000000..d6efa44 --- /dev/null +++ b/root/etc/e-smith/events/actions/sogo_upgrade_2.3 @@ -0,0 +1,21 @@ +#! /bin/sh + +# This script updates c_partstates to mediumtext +# adds c_description to Calendar quick tables +# http://www.sogo.nu/bugs/view.php?id=3175 +# the field length was actually changed in v2.2.18 + +for TABLE in $(/usr/bin/mysql sogo -s -e "select SUBSTRING_INDEX(c_quick_location, '/', -1) from sogo_folder_info where c_path3 = 'Calendar';"); do +/usr/bin/mysql sogo -e "ALTER TABLE $TABLE MODIFY c_partstates mediumtext;" +/usr/bin/mysql sogo < + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Състояние + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/da/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..181aa65 --- /dev/null +++ b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/de/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..dc4a3af --- /dev/null +++ b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/el/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..85e7b48 --- /dev/null +++ b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..b003bff --- /dev/null +++ b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/es/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..7da4b3e --- /dev/null +++ b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Estado + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/et/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..b14e6ce --- /dev/null +++ b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Olek + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..9f269c8 --- /dev/null +++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Logiciel de groupe de travail SOGo + + + FORM_TITLE + Réglages de SOGo + + + STATUS_DESC + Vous pouvez désactiver le service + + + STATUS + État + + + SEND_ACL_MAIL_DESC + Quand un utilisateur donne des droits (sur un agenda ou un carnet d'adresses), SOGo peut prévenir automatiquement les personnes concernées que de nouvelles données sont disponibles, en leurs envoyant un courriel. Voulez-vous activer cette fonctionnalité ? + + + SEND_ACL_MAIL + Notification de modifications dans les droits d'accès + + + AUX_ACCOUNTS_DESC + Si cette fonctionnalité est activée, les utilisateurs peuvent s'abonner aux comptes IMAP externes. Ils pourront configurer tous leurs comptes de messagerie depuis l'interface Web. Aimeriez-vous activer cette fonctionnalité ? + + + AUX_ACCOUNTS + Comptes externes + + + PUBLIC_ACCESS_DESC + Si cette fonctionnalité est activée, les utilisateurs peuvent partager publiquement certaines ressources (sans authentification). Aimeriez-vous activer cette fonctionnalité ? + + + PUBLIC_ACCESS + Accès public + + + ACTIVE_SYNC_ACCESS_DESC + Si cette fonctionnalité est activée, les utilisateurs peuvent utiliser le service de synchronisation active. Aimeriez-vous activer cette fonctionnalité ? + + + ACTIVE_SYNC_ACCESS + Synchronisation active + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + Si cette fonctionnalité est activée, les utilisateurs peuvent recevoir des alarmes par courriel avant que leurs rendez-vous soient inscrits dans l'agenda. Aimeriez-vous activer cette fonctionnalité ? + + + SEND_EMAIL_ALARM + Alertes par courriel avant rendez-vous + + + diff --git a/root/etc/e-smith/locale/he/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..98641ef --- /dev/null +++ b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + מצב + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..f718c50 --- /dev/null +++ b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Állapot + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/id/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..076348a --- /dev/null +++ b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/it/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..fc37e0b --- /dev/null +++ b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Stato + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..e5a91c3 --- /dev/null +++ b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + 状態 + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..6cf7846 --- /dev/null +++ b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..5bf92bd --- /dev/null +++ b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..22c79d5 --- /dev/null +++ b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Stan + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..297b518 --- /dev/null +++ b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..342dfa9 --- /dev/null +++ b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..6de7a06 --- /dev/null +++ b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Stare + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..4d55dd6 --- /dev/null +++ b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Состояние + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..d654c29 --- /dev/null +++ b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..89d3ce6 --- /dev/null +++ b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Status + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/th/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..3c09a79 --- /dev/null +++ b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + สถานะ + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..af8a398 --- /dev/null +++ b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + Durum + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..411c9e7 --- /dev/null +++ b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + 状态 + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/sogo b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..5b1a0a8 --- /dev/null +++ b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/sogo @@ -0,0 +1,60 @@ + + + Groupware + Sogo Groupware + + + FORM_TITLE + Settings of SOGo + + + STATUS_DESC + You can desactivate the service + + + STATUS + 狀態 + + + SEND_ACL_MAIL_DESC + When a user gives rights (on a calendar or address book), SOGo can automatically prevent those concerned that new data are available, by sending them an email. Do you want to enable this feature? + + + SEND_ACL_MAIL + Notification of changes in access rights + + + AUX_ACCOUNTS_DESC + If this feature is enabled, users can subscribe to external IMAP accounts. They will be able to manage all their email accounts from the web interface. Would you like to enable this feature? + + + AUX_ACCOUNTS + External Accounts + + + PUBLIC_ACCESS_DESC + If this feature is enabled, users can publicly share some resources (no authentication). Would you like to enable this feature? + + + PUBLIC_ACCESS + Public access + + + ACTIVE_SYNC_ACCESS_DESC + If this feature is enabled, users can use the active-sync service. Would you like to enable this feature? + + + ACTIVE_SYNC_ACCESS + Active Sync + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + If this feature is enabled, users can receive alarms via email before their appointments noted in the agenda. Would you like to activate this feature ? + + + SEND_EMAIL_ALARM + Email alerts before appointment + + + diff --git a/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/30sogo_mysql_create_database b/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/30sogo_mysql_create_database new file mode 100644 index 0000000..6a29f37 --- /dev/null +++ b/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/30sogo_mysql_create_database @@ -0,0 +1 @@ +PERMS=0540 diff --git a/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/31sogo_mysql_update_privileges b/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/31sogo_mysql_update_privileges new file mode 100644 index 0000000..6a29f37 --- /dev/null +++ b/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/31sogo_mysql_update_privileges @@ -0,0 +1 @@ +PERMS=0540 diff --git a/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/31sogo_upgrade b/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/31sogo_upgrade new file mode 100644 index 0000000..6a29f37 --- /dev/null +++ b/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/31sogo_upgrade @@ -0,0 +1 @@ +PERMS=0540 diff --git a/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/32sogo_upgrade_2.3 b/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/32sogo_upgrade_2.3 new file mode 100644 index 0000000..6a29f37 --- /dev/null +++ b/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/32sogo_upgrade_2.3 @@ -0,0 +1 @@ +PERMS=0540 diff --git a/root/etc/e-smith/templates.metadata/etc/sogo/sieve.creds b/root/etc/e-smith/templates.metadata/etc/sogo/sieve.creds new file mode 100644 index 0000000..afa8950 --- /dev/null +++ b/root/etc/e-smith/templates.metadata/etc/sogo/sieve.creds @@ -0,0 +1,3 @@ +UID="root" +GID="sogo" +PERMS=0640 diff --git a/root/etc/e-smith/templates.metadata/etc/sogo/sogo.conf b/root/etc/e-smith/templates.metadata/etc/sogo/sogo.conf new file mode 100644 index 0000000..afa8950 --- /dev/null +++ b/root/etc/e-smith/templates.metadata/etc/sogo/sogo.conf @@ -0,0 +1,3 @@ +UID="root" +GID="sogo" +PERMS=0640 diff --git a/root/etc/e-smith/templates/etc/cron.d/sogo/10base b/root/etc/e-smith/templates/etc/cron.d/sogo/10base new file mode 100644 index 0000000..4200696 --- /dev/null +++ b/root/etc/e-smith/templates/etc/cron.d/sogo/10base @@ -0,0 +1,22 @@ +# Sogod cronjobs + +# Vacation messages expiration +# The credentials file should contain the sieve admin credentials (username:passwd) +0 0 * * * sogo /usr/sbin/sogo-tool update-autoreply -p /etc/sogo/sieve.creds + +# Session cleanup - runs every minute +# - Ajust the nbMinutes parameter to suit your needs +# Example: Sessions without activity since 60 minutes will be dropped: +#* * * * * sogo /usr/sbin/sogo-tool expire-sessions 60 + +# Email alarms - runs every minutes +# If you need to use SMTP AUTH for outgoing mails, specify credentials to use +# with '-p /path/to/credentialsFile' (same format as the sieve credentials) +* * * * * sogo /usr/sbin/sogo-ealarms-notify > /dev/null 2>&1 + +# Daily backups +# - writes to ~sogo/backups/ by default +# - will keep 31 days worth of backups by default +# - runs once a day by default, but can run more frequently +# - make sure to set the path to sogo-backup.sh correctly +#30 0 * * * sogo /usr/share/doc/sogo/sogo-backup.sh diff --git a/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/95imap_max_line_length b/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/95imap_max_line_length new file mode 100644 index 0000000..5711f9f --- /dev/null +++ b/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/95imap_max_line_length @@ -0,0 +1,7 @@ +# +# Increase maximum IMAP command line length +# +# Maximum IMAP command line length in bytes. Some clients generate very long +# command lines with huge mailboxes, so you may need to raise this if you get +# "Too long argument" or "IMAP command line too large" errors often. +imap_max_line_length = {${'dovecot'}{'ImapMaxLineLenght'} || '2048'}k diff --git a/root/etc/e-smith/templates/etc/dovecot/master.users/20sogo b/root/etc/e-smith/templates/etc/dovecot/master.users/20sogo new file mode 100644 index 0000000..e01736f --- /dev/null +++ b/root/etc/e-smith/templates/etc/dovecot/master.users/20sogo @@ -0,0 +1 @@ +sogo diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/30sogo_mysql_create_database b/root/etc/e-smith/templates/etc/e-smith/sql/init/30sogo_mysql_create_database new file mode 100644 index 0000000..d9b8a9e --- /dev/null +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/30sogo_mysql_create_database @@ -0,0 +1,3 @@ +#! /bin/sh + +exec mysql < /var/lib/sogo/smeserver/sogo_mysql_create_database.sql diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/31sogo_mysql_update_privileges b/root/etc/e-smith/templates/etc/e-smith/sql/init/31sogo_mysql_update_privileges new file mode 100644 index 0000000..6eb28c6 --- /dev/null +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/31sogo_mysql_update_privileges @@ -0,0 +1,3 @@ +#! /bin/sh + +exec mysql < /var/lib/sogo/smeserver/sogo_mysql_update_privileges.sql diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/31sogo_upgrade b/root/etc/e-smith/templates/etc/e-smith/sql/init/31sogo_upgrade new file mode 100644 index 0000000..643584f --- /dev/null +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/31sogo_upgrade @@ -0,0 +1,3 @@ +#! /bin/sh + +exec /etc/e-smith/events/actions/sogo_upgrade diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/32sogo_upgrade_2.3 b/root/etc/e-smith/templates/etc/e-smith/sql/init/32sogo_upgrade_2.3 new file mode 100644 index 0000000..6c2a714 --- /dev/null +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/32sogo_upgrade_2.3 @@ -0,0 +1,4 @@ +#! /bin/sh + +exec /etc/e-smith/events/actions/sogo_upgrade_2.3 + diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35SSL00ListenAppleWorkAround b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35SSL00ListenAppleWorkAround new file mode 100644 index 0000000..1f74ac9 --- /dev/null +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35SSL00ListenAppleWorkAround @@ -0,0 +1,15 @@ +{ + +my $applePort = ${'apple-carddav'}{'TCPPort'} || "8843"; +my $sogoStatus = $sogod{'status'} || "enabled"; +my $appleStatus = ${'apple-carddav'}{'status'} || "enabled"; + +if (($sogoStatus eq 'enabled') && ($appleStatus eq 'enabled')){ + $OUT .=<<"EOF"; + +Listen 0.0.0.0:$applePort + +EOF +} + +} diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80NameVirtualHostsAppleWorkArround b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80NameVirtualHostsAppleWorkArround new file mode 100644 index 0000000..aea9c7a --- /dev/null +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80NameVirtualHostsAppleWorkArround @@ -0,0 +1,15 @@ +{ + +my $applePort = ${'apple-carddav'}{'TCPPort'} || "8843"; +my $sogoStatus = $sogod{'status'} || "enabled"; +my $appleStatus = ${'apple-carddav'}{'status'} || "enabled"; + +if (($sogoStatus eq 'enabled') && ($appleStatus eq 'enabled')){ + $OUT .=<<"EOF"; + +NameVirtualHost 0.0.0.0:$applePort + +EOF +} + +} diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess new file mode 100644 index 0000000..8281376 --- /dev/null +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess @@ -0,0 +1,72 @@ +# SOGo Groupware +{ + $sogoStatus = $sogod{'status'} || "disabled"; + $webmailStatus = $imp{'status'} || "disabled"; + $activeSync = $sogod{'ActiveSync'} || 'disabled'; + $OUT = ""; +} + + + +SetEnvIf Host (.*) REQUEST_HOST=$1 +ProxyPass /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo +ProxyPassReverse /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo + +# iOS auto discovery +RedirectMatch ^/principals/users/(.*)$ /SOGo/dav/$1 +RedirectMatch ^/principals/$ /SOGo/dav/ +RedirectMatch ^/.well-known/(caldav|carddav)$ /SOGo/dav/ + +{ +if ($activeSync =~ m/^enabled|on|1|yes$/i){ + $OUT .=<<"HERE"; +ProxyPass /Microsoft-Server-ActiveSync http://127.0.0.1:$sogod{'TCPPort'}/SOGo/Microsoft-Server-ActiveSync retry=60 connectiontimeout=5 timeout=3600 +HERE +} +else { + $OUT .= "# ActiveSync is disabled\n"; +} +} + + +# order deny,allow +# deny from all +# allow from all + Require all granted + SSLRequireSSL on + AddDefaultCharset UTF-8 + RequestHeader set "x-webobjects-server-url" "https://%\{REQUEST_HOST\}e/SOGo" + + +{ +use Config; +my $arch = $Config{selectminbits}; + + if ($arch eq "32"){ + $OUT .= qq( + Alias /.woa/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/ + Alias /SOGo.woa/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/ + Alias /SOGo/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/ + AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/lib/GNUstep/SOGo/\$1.SOGo/Resources/\$2\ + + + );} + + elsif ($arch eq "64"){ + $OUT .= qq( + Alias /.woa/WebServerResources/ /usr/lib64/GNUstep/SOGo/WebServerResources/ + Alias /SOGo.woa/WebServerResources/ /usr/lib64/GNUstep/SOGo/WebServerResources/ + Alias /SOGo/WebServerResources/ /usr/lib64/GNUstep/SOGo/WebServerResources/ + AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/lib64/GNUstep/SOGo/\$1.SOGo/Resources\$2 + + + );} +} + + AllowOverride None + Options +ExecCGI -Includes +# Order allow,deny +# Allow from all + Require all granted + + diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAppleWorkArround b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAppleWorkArround new file mode 100644 index 0000000..75739a1 --- /dev/null +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAppleWorkArround @@ -0,0 +1,43 @@ +{ + +my $sogoPort = $sogod{'TCPPort'} || "20000"; +my $applePort = ${'apple-carddav'}{'TCPPort'} || "8843"; +my $sogoStatus = $sogod{'status'} || "enabled"; +my $appleStatus = ${'apple-carddav'}{'status'} || "enabled"; + +if (($sogoStatus eq 'enabled') && ($appleStatus eq 'enabled')){ + $OUT .=<<"EOF"; + + + ServerName $SystemName.$DomainName + SSLEngine On + ProxyRequests Off + SetEnv proxy-nokeepalive 1 + ProxyPreserveHost On + ProxyPassInterpolateEnv On + RewriteEngine On + RedirectMatch ^/principals/users/(.*)\$ /\$1 + RedirectMatch ^/principals/\$ / + RedirectMatch ^/.well-known/(caldav|carddav)\$ / + RewriteRule /SOGo/dav(.*) /\$1 [L,R] + ProxyPass / http://127.0.0.1:$sogoPort/SOGo/dav/ interpolate + + + RequestHeader set "x-webobjects-server-port" "$applePort" + RequestHeader set "x-webobjects-server-name" "$SystemName.$DomainName:$applePort" + RequestHeader set "x-webobjects-server-url" "https://$SystemName.$DomainName:$applePort" + RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0" + RequestHeader set "x-webobjects-remote-host" "127.0.0.1" + AddDefaultCharset UTF-8 +# Order allow,deny +# Allow from all + Require all granted + + + +EOF +} +else{ + $OUT .= ""; +} +} diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/61SogoSSL b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/61SogoSSL new file mode 100644 index 0000000..3ef5aa8 --- /dev/null +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/61SogoSSL @@ -0,0 +1,20 @@ +{ +my $sslport = $modSSL{'TCPPort'} || '443'; + +if ($port ne $sslport){ + + ## Redirect Web Address to Secure Address + $OUT .= " RewriteEngine on\n"; + $OUT .= " RewriteRule ^/SOGo(/.*|\$) https://%{HTTP_HOST}/SOGo\$1 \[L,R\]\n"; + +} +$OUT .= " RewriteRule ^/sogo(/.*|\$) https://%{HTTP_HOST}/SOGo\$1 \[L,R\]\n"; + +$sogoStatus = $sogod{'status'} || "disabled"; +$webmailStatus = $imp{'status'} || "disabled"; + +if (($webmailStatus eq 'disabled') and ($sogoStatus eq 'enabled')) { + $OUT .= " RewriteRule ^/webmail(/.*|\$) https://%{HTTP_HOST}/SOGo\$1 \[L,R\]\n"; +} + +} diff --git a/root/etc/e-smith/templates/etc/logrotate.d/sogo/10default b/root/etc/e-smith/templates/etc/logrotate.d/sogo/10default new file mode 100644 index 0000000..afb037f --- /dev/null +++ b/root/etc/e-smith/templates/etc/logrotate.d/sogo/10default @@ -0,0 +1,6 @@ +/var/log/sogo/*.log \{ + missingok + rotate 5 + notifempty + copytruncate +\} diff --git a/root/etc/e-smith/templates/etc/sogo/sieve.creds/10base b/root/etc/e-smith/templates/etc/sogo/sieve.creds/10base new file mode 100644 index 0000000..d7fe327 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sieve.creds/10base @@ -0,0 +1,4 @@ +{ + my $pwd = esmith::util::LdapPassword (); + $OUT.="sogo:$pwd"; +} diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/01start b/root/etc/e-smith/templates/etc/sogo/sogo.conf/01start new file mode 100644 index 0000000..41968a6 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/01start @@ -0,0 +1 @@ +\{ diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/10mysql b/root/etc/e-smith/templates/etc/sogo/sogo.conf/10mysql new file mode 100644 index 0000000..70764f4 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/10mysql @@ -0,0 +1,4 @@ + OCSFolderInfoURL = "mysql://sogo:{$sogod{'DbPassword'}}@localhost/sogo/sogo_folder_info"; + OCSSessionsFolderURL = "mysql://sogo:{$sogod{'DbPassword'}}@localhost/sogo/sogo_sessions_folder"; + SOGoProfileURL = "mysql://sogo:{$sogod{'DbPassword'}}@localhost/sogo/sogo_user_profile"; + OCSEMailAlarmsFolderURL = "mysql://sogo:{$sogod{'DbPassword'}}@localhost/sogo/sogo_alarms_folder"; diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/15memcached b/root/etc/e-smith/templates/etc/sogo/sogo.conf/15memcached new file mode 100644 index 0000000..bb80fe5 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/15memcached @@ -0,0 +1,2 @@ + SOGoMemcachedHost = 127.0.0.1; + SOGoCacheCleanupInterval = 1800; diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/20email b/root/etc/e-smith/templates/etc/sogo/sogo.conf/20email new file mode 100644 index 0000000..aaca284 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/20email @@ -0,0 +1,13 @@ + SOGoMailSpoolPath = "/var/spool/sogo"; + SOGoIMAPServer = "imap://localhost:{$imap{'TCPPort'} || '143'}"; + SOGoMailDomain = {$DomainName}; + SOGoMailingMechanism = smtp; + SOGoSMTPServer = localhost; + SOGoMailListViewColumnsOrder = ( + Flagged, Attachment, Subject, From, Unread, Date, Size + ); + SOGoTrashFolderName = {($sogod{'TrashFolder'} || "Trash")}; + SOGoDraftsFolderName = {($sogod{'DraftsFolder'} || "Drafts")}; + SOGoSentFolderName = {($sogod{'SentFolder'} || "Sent")}; + SOGoJunkFolderName = "{$dovecot{SpamFolder} || "Junk"}"; + SOGoMailCustomFromEnabled = YES; diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/25Notifications b/root/etc/e-smith/templates/etc/sogo/sogo.conf/25Notifications new file mode 100644 index 0000000..8b6fa59 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/25Notifications @@ -0,0 +1,6 @@ + SOGoACLsSendEMailNotifications = {uc($sogod{'ACLsSendEMailNotifications'} || "NO")}; + SOGoAppointmentSendEMailNotifications = YES; + SOGoAppointmentSendEMailReceipts = YES; + SOGoEnableEMailAlarms = {($sogod{'EnableEMailAlarms'} || "NO")}; + SOGoAuthenticationMethod = LDAP; + SOGoFoldersSendEMailNotifications = NO; diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/30DefaultPreferences b/root/etc/e-smith/templates/etc/sogo/sogo.conf/30DefaultPreferences new file mode 100644 index 0000000..e083ef5 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/30DefaultPreferences @@ -0,0 +1,5 @@ + SOGoRefreshViewCheck = "every_10_minutes"; + SOGoFirstDayOfWeek = "1"; + SOGoFirstWeekOfYear = "First4DayWeek"; + SOGoCalendarDefaultReminder = "-PT15M"; + diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/35ExternalAccesses b/root/etc/e-smith/templates/etc/sogo/sogo.conf/35ExternalAccesses new file mode 100644 index 0000000..9559650 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/35ExternalAccesses @@ -0,0 +1,2 @@ + SOGoMailAuxiliaryUserAccountsEnabled = {uc($sogod{'MailAuxiliaryUserAccountsEnabled'} || "YES")}; + SOGoEnablePublicAccess = {uc($sogod{'PublicAccess'} || "NO")}; diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/40Sieve b/root/etc/e-smith/templates/etc/sogo/sogo.conf/40Sieve new file mode 100644 index 0000000..f96d2f3 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/40Sieve @@ -0,0 +1,12 @@ +{ + if (($sieve{'status'} || 'disabled') eq 'enabled'){ + my $sieveport = $sieve{'TCPPort'} || '4190'; + $OUT .=<<"HERE"; + SOGoSieveServer = "sieve://localhost:$sieveport"; + SOGoVacationEnabled = YES; + SOGoForwardEnabled = YES; + SOGoSieveScriptsEnabled = YES; + NGImap4ConnectionStringSeparator = "."; +HERE + } +} diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/45Admins b/root/etc/e-smith/templates/etc/sogo/sogo.conf/45Admins new file mode 100644 index 0000000..9b83a6b --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/45Admins @@ -0,0 +1,3 @@ + SOGoSuperUsernames = ( + {($sogod{'AdminUsers'} || 'admin')} + ); diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/50TimeZone b/root/etc/e-smith/templates/etc/sogo/sogo.conf/50TimeZone new file mode 100644 index 0000000..f4457df --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/50TimeZone @@ -0,0 +1 @@ + SOGoTimeZone = {$TimeZone}; diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/55Authentication b/root/etc/e-smith/templates/etc/sogo/sogo.conf/55Authentication new file mode 100644 index 0000000..6254001 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/55Authentication @@ -0,0 +1,31 @@ + SOGoUserSources = ( + + \{ + CNFieldName = cn; + IDFieldName = uid; + UIDFieldName = uid; + baseDN = "ou=Users,{ esmith::util::ldapBase($DomainName); }"; + bindFields = (uid); + canAuthenticate = YES; + displayName = "Users"; + hostname = localhost; + id = users; + isAddressBook = YES; + port = {$sogod{'LdapTCPPort'} || '389'}; + type = ldap; + \}, + \{ + CNFieldName = cn; + IDFieldName = cn; + UIDFieldName = cn; + baseDN = "ou=Groups,{ esmith::util::ldapBase($DomainName); }"; + bindFields = (cn); + canAuthenticate = YES; + displayName = "Groups"; + hostname = localhost; + id = groups; + isAddressBook = YES; + port = {$sogod{'LdapTCPPort'} || '389'}; + type = ldap; + \} + ); diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/60ActiveSync b/root/etc/e-smith/templates/etc/sogo/sogo.conf/60ActiveSync new file mode 100644 index 0000000..84e3d2d --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/60ActiveSync @@ -0,0 +1,11 @@ + + + /* 70 Active Sync options and tuning */ + SOGoMaximumPingInterval = {$sogod{'SOGoMaximumPingInterval'} || '3540'}; + SOGoMaximumSyncInterval = {$sogod{'SOGoMaximumSyncInterval'} || '3540'}; + SOGoInternalSyncInterval = {$sogod{'SOGoInternalSyncInterval'} || '60'}; + SOGoMaximumSyncResponseSize = {$sogod{'SOGoMaximumSyncResponseSize'} || '2048'}; + SOGoMaximumSyncWindowSize = {$sogod{'SOGoMaximumSyncWindowSize'} || '100'}; + + WOWorkersCount = {$sogod{WOWorkersCount} || "10"}; + WOWatchDogRequestTimeout = {$sogod{'WOWatchDogRequestTimeout'} || '3600'}; diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/70Various b/root/etc/e-smith/templates/etc/sogo/sogo.conf/70Various new file mode 100644 index 0000000..421c354 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/70Various @@ -0,0 +1,6 @@ + NGUseUTF8AsURLEncoding = YES; + WOMessageUseUTF8 = YES; + WOParsersUseUTF8 = YES; + WOPort = 127.0.0.1:{$sogod{'TCPPort'}}; + WOUseRelativeURLs = YES; + SxVMemLimit = {$sogod{'SxVMemLimit'} || '384'}; diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/template-begin b/root/etc/e-smith/templates/etc/sogo/sogo.conf/template-begin new file mode 100644 index 0000000..d69b983 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/template-begin @@ -0,0 +1,5 @@ +/* +{ + $OUT = Text::Template::_load_text("/etc/e-smith/templates-default/template-begin"); + $OUT =~ s/^#/ * /gm +} */ diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/template-end b/root/etc/e-smith/templates/etc/sogo/sogo.conf/template-end new file mode 100644 index 0000000..dbea7aa --- /dev/null +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/template-end @@ -0,0 +1 @@ +\} diff --git a/root/etc/e-smith/templates/etc/sysconfig/memcached/all b/root/etc/e-smith/templates/etc/sysconfig/memcached/all new file mode 100644 index 0000000..49e10a1 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sysconfig/memcached/all @@ -0,0 +1,6 @@ +PORT="{($memcached{'TCPPort'} || '11211')}" +USER="nobody" +MAXCONN="1024" +CACHESIZE="64" +OPTIONS="-l 127.0.0.1" + diff --git a/root/etc/e-smith/templates/etc/sysconfig/sogo/10base b/root/etc/e-smith/templates/etc/sysconfig/sogo/10base new file mode 100644 index 0000000..d47e588 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sysconfig/sogo/10base @@ -0,0 +1,2 @@ +PREFORK={($sogod{'WOWorkersCount'} || "10")} +USER=sogo diff --git a/root/etc/e-smith/templates/var/lib/sogo/smeserver/sogo_mysql_update_privileges.sql b/root/etc/e-smith/templates/var/lib/sogo/smeserver/sogo_mysql_update_privileges.sql new file mode 100644 index 0000000..2510a81 --- /dev/null +++ b/root/etc/e-smith/templates/var/lib/sogo/smeserver/sogo_mysql_update_privileges.sql @@ -0,0 +1,22 @@ +CONNECT mysql; + +REPLACE INTO user (host, user, password) + VALUES ( + 'localhost', + 'sogo', + password('{$sogod{DbPassword}}') + ); + +REPLACE INTO db (host, db, user, select_priv, insert_priv, update_priv, + delete_priv, create_priv, drop_priv, alter_priv, index_priv, + references_priv) + VALUES ( + 'localhost', + 'sogo', + 'sogo', + 'Y', 'Y', 'Y', 'Y', + 'Y', 'Y', 'Y', 'Y', + 'Y' + ); + +FLUSH PRIVILEGES; diff --git a/root/etc/e-smith/templates/var/service/qpsmtpd/config/peers/local/75FixSOGoHeadersCase b/root/etc/e-smith/templates/var/service/qpsmtpd/config/peers/local/75FixSOGoHeadersCase new file mode 100644 index 0000000..0390592 --- /dev/null +++ b/root/etc/e-smith/templates/var/service/qpsmtpd/config/peers/local/75FixSOGoHeadersCase @@ -0,0 +1 @@ +fix_headers_case diff --git a/root/etc/e-smith/templates/var/service/tinydns/root/data/80srvSOGo b/root/etc/e-smith/templates/var/service/tinydns/root/data/80srvSOGo new file mode 100644 index 0000000..a068ea4 --- /dev/null +++ b/root/etc/e-smith/templates/var/service/tinydns/root/data/80srvSOGo @@ -0,0 +1,11 @@ +{ + +return "" unless (-x '/usr/bin/make-srv'); + +$OUT .= "# SRV Records for SOGo\n"; +$OUT .= `/usr/bin/make-srv -service _caldavs._tcp.$DomainName -target $SystemName.$DomainName -port 443`; +$OUT .= `/usr/bin/make-srv -service _carddavs._tcp.$DomainName -target $SystemName.$DomainName -port 443`; +$OUT .= `/usr/bin/make-srv -service _caldav._tcp.$DomainName -target $SystemName.$DomainName -port 443`; +$OUT .= `/usr/bin/make-srv -service _carddav._tcp.$DomainName -target $SystemName.$DomainName -port 443`; + +} diff --git a/root/etc/e-smith/web/functions/sogo b/root/etc/e-smith/web/functions/sogo new file mode 100644 index 0000000..732c5d6 --- /dev/null +++ b/root/etc/e-smith/web/functions/sogo @@ -0,0 +1,78 @@ +#!/usr/bin/perl -wT + +# vim: ft=xml ts=4 sw=4 et: +#---------------------------------------------------------------------- +# heading : Collaboration +# description : Groupware +# navigation : 2000 3000 +#---------------------------------------------------------------------- +#---------------------------------------------------------------------- +# copyright (C) 2011 Firewall-Services +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +#---------------------------------------------------------------------- + +use strict; +use esmith::FormMagick::Panel::sogo; + +my $fm = esmith::FormMagick::Panel::sogo->new(); + +$fm->display(); + +__DATA__ +
+ + + STATUS_DESC + + + + SEND_ACL_MAIL_DESC + + + + SEND_APPOINTEMENT_EMAIL_ALARM_DESC + + + + + AUX_ACCOUNTS_DESC + + + + PUBLIC_ACCESS_DESC + + + + ACTIVE_SYNC_ACCESS_DESC + + + + + +
diff --git a/root/usr/lib/systemd/system/sogod.service.d/50koozali.conf b/root/usr/lib/systemd/system/sogod.service.d/50koozali.conf new file mode 100644 index 0000000..4d4830c --- /dev/null +++ b/root/usr/lib/systemd/system/sogod.service.d/50koozali.conf @@ -0,0 +1,6 @@ +[Unit] +After=wan.service +After=networking.service +[Install] +WantedBy=sme-server.target + diff --git a/root/usr/share/perl5/vendor_perl/Apache/FilterChangeLength.pm b/root/usr/share/perl5/vendor_perl/Apache/FilterChangeLength.pm new file mode 100644 index 0000000..b09a1d9 --- /dev/null +++ b/root/usr/share/perl5/vendor_perl/Apache/FilterChangeLength.pm @@ -0,0 +1,52 @@ +package Apache::FilterChangeLength; + +use strict; +use warnings FATAL => 'all'; + +use Apache2::RequestRec (); + +use APR::Table (); +use APR::Bucket (); +use APR::Brigade (); + +use base qw(Apache2::Filter); + +use Apache2::Const -compile => qw(OK); +use APR::Const -compile => ':common'; + +sub handler { + my ($filter, $bb) = @_; + my $ctx = $filter->ctx; + my $data = exists $ctx->{data} ? $ctx->{data} : ''; + $ctx->{invoked}++; + my ($bdata, $seen_eos) = flatten_bb($bb); + $data .= $bdata if $bdata; + + if ($seen_eos) { + my $len = length $data; + $filter->r->headers_out->set('Content-Length', $len); + $filter->print($data) if $data; + } + else { + # store context for all but the last invocation + $ctx->{data} = $data; + $filter->ctx($ctx); + } + + return Apache2::Const::OK; +} + +sub flatten_bb { + my ($bb) = shift; + my $seen_eos = 0; + + my @data; + for (my $b = $bb->first; $b; $b = $bb->next($b)) { + $seen_eos++, last if $b->is_eos; + $b->read(my $bdata); + push @data, $bdata; + } + return (join('', @data), $seen_eos); +} + +1; diff --git a/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/sogo.pm b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/sogo.pm new file mode 100644 index 0000000..0f35b57 --- /dev/null +++ b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/sogo.pm @@ -0,0 +1,84 @@ +#!/usr/bin/perl -w + +#---------------------------------------------------------------------- +# copyright (C) 2011 Firewall-Services +# 2014 Stephane de Labrusse +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +#---------------------------------------------------------------------- +package esmith::FormMagick::Panel::sogo; + +use strict; + +use esmith::FormMagick; +use esmith::AccountsDB; +use esmith::ConfigDB; +use esmith::cgi; +use esmith::util; +use Exporter; +use Carp qw(verbose); + +our @ISA = qw(esmith::FormMagick Exporter); + +our @EXPORT = qw( + get_prop + apply +); + + +our $accountdb = esmith::AccountsDB->open(); +our $configdb = esmith::ConfigDB->open(); + +sub new { + shift; + my $self = esmith::FormMagick->new(); + $self->{calling_package} = (caller)[0]; + bless $self; + return $self; +} + +sub get_prop{ + my ($fm, $prop, $default) = @_; + return $configdb->get_prop("sogod", $prop) || $default; +} + +sub apply { + my ($self) = @_; + my $q = $self->{cgi}; + + $configdb->set_prop('sogod', 'status', $q->param("status")); + $configdb->set_prop('sogod', 'ACLsSendEMailNotifications', $q->param("aclSendMail")); + $configdb->set_prop('sogod', 'MailAuxiliaryUserAccountsEnabled', $q->param("auxAccounts")); + $configdb->set_prop('sogod', 'PublicAccess', $q->param("publicAccess")); + $configdb->set_prop('sogod', 'ActiveSync', $q->param("activeSync")); + $configdb->set_prop('sogod', 'EnableEMailAlarms', $q->param("enableEMailAlarms")); + + my $sogo_status = $configdb->get_prop('sogod','status'); + + if ($sogo_status eq 'disabled') { + unless ( system ('/etc/init.d/sogod stop >/dev/null 2>&1') == 0 ){ + return $self->error('ERROR_OCCURED', 'First'); + } + } + + elsif ($sogo_status eq 'enabled') { + unless ( system ("/sbin/e-smith/signal-event", "sogo-modify") == 0 ){ + return $self->error('ERROR_OCCURED', 'First'); + } + } + return $self->success('SUCCESS','First'); + +} + +1; diff --git a/root/usr/share/qpsmtpd/plugins/fix_headers_case b/root/usr/share/qpsmtpd/plugins/fix_headers_case new file mode 100644 index 0000000..147c272 --- /dev/null +++ b/root/usr/share/qpsmtpd/plugins/fix_headers_case @@ -0,0 +1,52 @@ +#!/usr/bin/perl -wT +=head1 NAME + +fix_headers_case + +=head1 DESCRIPTION + +SOGo adds lower case headers, which some mail servers do not like. +This plugin just rewrite them to have the first letter uppercase + +=head1 AUTHOR + +Daniel Berteaud + +=head1 LICENSE + +GNU GPL (GNU General Public License) + + +=cut + + +sub register { + my ($self, $qp, %arg) = @_; + $self->register_hook("data_post", "fix_headers_case"); +} + + +sub fix_headers_case { + my ($self, $transaction) = @_; + my $mailer = $self->get_header($transaction,'User-Agent') or return DECLINED; + $mailer =~ m/^SOGoMail/ or return DECLINED; + $self->log(LOGINFO, "SOGo mailer detected, going to fix headers case"); + foreach my $header (qw/From To Cc Subject Message-ID Content-Type Date Content-Length Content-Transfer-Encoding/){ + my $value = $self->get_header($transaction,$header) or next; + $self->set_header($transaction, $header, $value); + } + return DECLINED; +} + +sub get_header { + my ($self, $transaction, $header) = @_; + my $ret = $transaction->header->get($header) or return; + return $ret; +} + +sub set_header { + my ($self, $transaction, $header, $value) = @_; + my $ret = $transaction->header->delete($header) or return; + $ret = $transaction->header->add($header, $value) or return; + return $ret; +} diff --git a/root/var/lib/sogo/GNUstep/Defaults/.GNUstepDefaults b/root/var/lib/sogo/GNUstep/Defaults/.GNUstepDefaults new file mode 100644 index 0000000..134567b --- /dev/null +++ b/root/var/lib/sogo/GNUstep/Defaults/.GNUstepDefaults @@ -0,0 +1,6 @@ +{ + NSGlobalDomain = { + }; + sogod = { + }; +} diff --git a/root/var/lib/sogo/smeserver/sogo_mysql_create_database.sql b/root/var/lib/sogo/smeserver/sogo_mysql_create_database.sql new file mode 100644 index 0000000..7630b5b --- /dev/null +++ b/root/var/lib/sogo/smeserver/sogo_mysql_create_database.sql @@ -0,0 +1,37 @@ +-- SOGo Database Creation + +CREATE DATABASE IF NOT EXISTS `sogo`; + +CONNECT `sogo`; + +CREATE TABLE IF NOT EXISTS `sogo_folder_info` ( + `c_folder_id` bigint(20) unsigned NOT NULL auto_increment, + `c_path` varchar(255) NOT NULL, + `c_path1` varchar(255) NOT NULL, + `c_path2` varchar(255) default NULL, + `c_path3` varchar(255) default NULL, + `c_path4` varchar(255) default NULL, + `c_foldername` varchar(255) NOT NULL, + `c_location` varchar(2048) NOT NULL, + `c_quick_location` varchar(2048) default NULL, + `c_acl_location` varchar(2048) default NULL, + `c_folder_type` varchar(255) NOT NULL, + PRIMARY KEY (`c_path`), + UNIQUE KEY `c_folder_id` (`c_folder_id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +CREATE TABLE IF NOT EXISTS `sogo_user_profile` ( + `c_uid` varchar(255) NOT NULL, + `c_defaults` text, + `c_settings` text, + PRIMARY KEY (`c_uid`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +CREATE TABLE IF NOT EXISTS`sogo_alarms_folder` ( +`c_path` varchar(255) NOT NULL, +`c_name` varchar(255) NOT NULL, +`c_uid` varchar(255) NOT NULL, +`c_recurrence_id` int(11) default NULL, +`c_alarm_number` int(11) NOT NULL, +`c_alarm_date` int(11) NOT NULL +)ENGINE=MyISAM DEFAULT CHARSET=latin1; diff --git a/root/var/lib/sogo/smeserver/sogo_mysql_update_privileges.sql b/root/var/lib/sogo/smeserver/sogo_mysql_update_privileges.sql new file mode 100644 index 0000000..a62dfad --- /dev/null +++ b/root/var/lib/sogo/smeserver/sogo_mysql_update_privileges.sql @@ -0,0 +1 @@ +-- sogo_mysql_privileges.sql template diff --git a/smeserver-sogo.spec b/smeserver-sogo.spec new file mode 100644 index 0000000..5e13ca8 --- /dev/null +++ b/smeserver-sogo.spec @@ -0,0 +1,278 @@ +# $Id$ +%define name smeserver-sogo +%define version 1.6 +%define release 4 + +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +Summary: SME Server SOGo Groupware +Group: Networking/Daemons +License: GPLv3+ +URL: http://www.smeserver.org +Source0: %{name}-%{version}.tar.gz + +BuildArch: noarch +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +Epoch: 9 +BuildRequires: e-smith-devtools +Requires: smeserver-release >= 10 +Requires: e-smith-ldap +Requires: sogo >= 5.8.0 +Requires: sogo-tool +Requires: memcached +Requires: sogo-activesync +Requires: sope49-gdl1-mysql +Requires: sogo-ealarms-notify +Requires: python-memcached +Requires: smeserver-dovecot-extras +%description +SME Server module for SOGo groupware. + +%prep +##my bad to remove a bad folder if exists [1.3-6.sme] +/bin/rm -rf /var/service/tinydns/root/data/ &> /dev/null + +%setup -q + +%build +[ -x createlinks ] && ./createlinks + +%install +rm -rf $RPM_BUILD_ROOT +rm -f %{name}-%{version}-filelist + +(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) + +/sbin/e-smith/genfilelist \ + --dir /var/lib/sogo/GNUstep 'attr(0755,sogo,sogo)' \ + --dir /var/lib/sogo/GNUstep/Defaults 'attr(0755,sogo,sogo)' \ + --ignoredir "/var/lib/sogo" \ + $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post + +if [ $1 == 1 ]; then #first install + /etc/e-smith/events/actions/initialize-default-databases &> /dev/null + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/30sogo_mysql_create_database + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/31sogo_mysql_update_privileges + /sbin/e-smith/expand-template \ + /var/lib/sogo/smeserver/sogo_mysql_update_privileges.sql + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/31sogo_upgrade + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/32sogo_upgrade_2.3 + /sbin/service mysql.init start + /sbin/e-smith/signal-event sogo-modify +elif [ $1 -gt 1 ]; then #update + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/31sogo_upgrade + /sbin/e-smith/expand-template \ + /etc/e-smith/sql/init/32sogo_upgrade_2.3 + /sbin/service mysql.init start + /etc/e-smith/events/actions/initialize-default-databases &> /dev/null || : + /sbin/e-smith/signal-event sogo-modify || : +fi + +# set sogo password +/bin/cat /etc/openldap/ldap.pw | /usr/bin/passwd sogo --stdin &> /dev/null || : + + +%postun +if [ $1 = 1 ]; then + /etc/e-smith/events/actions/initialize-default-databases &> /dev/null || : + /sbin/e-smith/signal-event sogo-modify || : +fi + + + +%files -f %{name}-%{version}-%{release}-filelist + + +%changelog +* Sat Sep 07 2024 cvs2git.sh aka Brian Read 1.6-4.sme +- Roll up patches and move to git repo [SME: 12338] + +* Sat Sep 07 2024 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Fri Sep 06 2024 Terry Fage 1.6-3.sme +- add update locale 2024-09-06.patch + +* Mon Jan 09 2023 Brian Read 1.6-2.sme +- Expand Koozali preset for systemd startup [SME: 11629] +- Remove rc.d/rc7.d entries for memcached and sogod + +* Sat Jan 07 2023 Brian Read - 1.6-1.sme +- Initial import to SME10 tree [SME: 11629] +- Changes to spec file to avoid clash between sogo rpm directories and this rpm. +- Update permissions to Apache 2.4 +- Add systemd dropin +- Add -update event to createlinks + +* Fri Apr 28 2017 Stephane de Labrusse - 1.5-1.sme +- Increase maximum IMAP command line length +- Adjusted sogo cron.d, sieve credentials are in /etc/sogo/sieve.creds + +* Fri Mar 24 2017 stephane de Labrusse - 1.4-2.sme +- Add custom settings to avoid battery drain when using active sync [SME: 10168] +- Thank to Michael McCarn +- the sogo.conf template is rewritten by fragments +- Correction of the backup creation [SME: 9908] +- Thank to Nicola Tiana + +* Sun Jul 24 2016 stephane de Labrusse - 1.3-19.sme +- remove the email of cron for expire-autoreply + +* Sat Jan 16 2016 stephane de Labrusse - 1.3-18.sme +- the template-end is created in the sogo.conf to allow the end user to add his settings + +* Wed Oct 7 2015 stephane de Labrusse - 1.3-17.sme +- /etc/e-smith/sql/init/32sogo_upgrade_2.3 is now executable +- actions sogo_upgrade_2.3 is rewritten, thank to daniel Berteaud + +* Sat Aug 22 2015 stephane de Labrusse - 1.3-15.sme +- Added sogo-modify to mysql.init + +* Wed Jul 8 2015 stephane de Labrusse - 1.3-14.sme +- Upgrade to sogo 2.3.0, alteration table needed +- thank to ian case + +* Sat Feb 21 2015 stephane de Labrusse - 1.3-12.sme +- Remove a sogo user when a SME Server user is removed + +* Sat Feb 21 2015 stephane de Labrusse - 1.3-11.sme +- Fix the qpsmtpd fix_headers_case plugin + +* Tue Jan 6 2015 stephane de Labrusse - 1.3-10.sme +- Added bindFields parameters to SOGoUserSources based on suggestion of Nicola Tiana in [SME: 7578] +- According to SOGo installation guide, the value of bindFields has to be in an array for recent version +- Thanks to Mats Schuh + +* Tue Dec 30 2014 stephane de Labrusse - 1.3-9.sme +- stop cron email confirmation to the sogo user account [SME: 8756] +- code done by Mats Schuh + +* Mon Dec 29 2014 stephane de Labrusse - 1.3-8.sme +- Sogo must be an admin of dovecot for expire-autoreply [SME: 8753] +- Thanks to Mats Schuh + +* Sat Nov 01 2014 stephane de Labrusse - 1.3-7.sme +- removed a bad file 80srvSOGo in the template path of /var/service/tinydns/root/data +- added restart and event-template to tinydns with sogo-modify + +* Sun Sep 21 2014 stephane de Labrusse - 1.3-5.sme +- SOGoMailMessageCheck has been replaced by SOGoRefreshViewCheck + +* Sun Aug 31 2014 stephane de Labrusse - 1.3-4.sme +- Added . separator for imap, instead of / by default + +* Sun Aug 17 2014 stephane de Labrusse - 1.3-3.sme +- a bit of clean and new code inspired from ipasserelle-groupware. Thanks to daniel berteaud +- added sieve and acl support (come with smeserver-dovecot-extras) +- added a panel in the server-manager with options +- added active-sync support +- added sogo notifications + + +* Thu May 08 2014 stephane de Labrusse - 1.1-2 +- First release For SME Server 9 Thanks for all previous valorous developers +- removed expand-template for bootstrap-console-save in createlink +- added an architecture detection for template the file +- /etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess + +* Wed Dec 11 2013 Davide Principi - 1.0.1-1 +- Fixed sogo.conf syntax. Refs #2339 + +* Mon Dec 9 2013 Davide Principi - 1.0.0-1 +- Release 1.0.0. Refs #2339 +- Require sogo >= 2.1.1b-1 + +* Mon Dec 9 2013 Davide Principi - 0.9.1-1 +- Release 0.9.1 +- Fixes bug #2372 + +* Mon Dec 2 2013 Davide Principi - 0.9-1 +- sogo home directory moved to /var/lib/sogo to fix #2369 + +* Fri Apr 26 2013 Davide Principi - 0.8-2 +- Create symlink to new SOGo 2.0.x homedir, to support fresh installations + +* Thu Oct 18 2012 Giacomo Sanchiettti - 0.8-1 +- Add support for vacation auto-disable feature +- Add memcached requires (previously on sogo package) + +* Fri Sep 14 2012 Alessio Fattorini - 0.7-1 +- Enable notification for calendar modifications (refs #1398) +- Customize From header (refs #1339) +- Support SharedFolder (refs #1432) + +* Fri Mar 9 2012 Alessio Fattorini - 0.6.1 +- Removed bindFields (bug #845) +- Fixed backup by sogo-tool (bug #839) +- Upgrade SOGo db to 1.3.12 + +* Wed Nov 30 2011 Alessio Fattorini - 0.6 +- change GNUstep path + +* Wed Sep 7 2011 Alessio Fattorini - 0.5.9-2 +- Add CardDAV external access (bug #423) + +* Wed Jul 20 2011 Alessio Fattorini - 0.5.9-1 +- Disable sieve support for NethService 8.0 +- Correct postun + +* Mon May 16 2011 Giacomo Sanchietti - 0.5.8-1 +- Add sieve support +- Add configurable prefork option +- Enable session folders +- Update to SOGo 1.3.4 + +* Thu Aug 5 2010 Federico Simoncelli - 0.5.6-1 +- add configurable option for ACLsSendEMailNotifications +- add EnablePublicAccess +- change MailingMechanism to SMTP +- redirect http requests for sogo to SOGo + +* Mon Aug 2 2010 Federico Simoncelli - 0.5.5-1 +- upgrade to sogo 1.3.0 + +* Tue Mar 30 2010 Federico Simoncelli - 0.5.4-1 +- escape curly brackets in sogo logrotate template + +* Fri Mar 19 2010 Federico Simoncelli - 0.5.3-1 +- add logrotate for sogo log files +- nethesis smesetup (post/postun) scripts + +* Tue Mar 16 2010 Federico Simoncelli - 0.5.2-2 +- rej files cleanup + +* Tue Mar 16 2010 Daniel Berteaud - 0.5.2-1 +- enable groups for ACL +- configure admin users from the db +- disable bogus notifications (acl and folders) +- configure sent and draft imap folders from DB +- redirect webmail when imp is disabled (Stephen Noble) +- proxypass port from the db (Federico Simoncelli) + +* Fri Mar 12 2010 Daniel Berteaud - 0.5.1-1 +- anonymous bind is sufficient to authenticate users +- limit sogo daemon bind to the loopback interface +- SOGo protected with SSL +- memcached bind to loopback, port from TCPPort +- templates expansion from post-upgrade to bootstrap-console-save +- read the ldap port from db +- split the local ldap directory in two parts: users and groups +- notifications sent by email will have the correct URL + +* Thu Feb 18 2010 Federico Simoncelli - 0.5.0-1 +- first release + +