Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
1,185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.81 KB | None | 0 0
  1. {
  2. // A sample /etc/sogo/sogo.conf for iRedMail with SQL backends.
  3. //
  4. // - Official SOGo document: http://sogo.nu/support/index.html#/documentation
  5. // - Mailing list: http://sogo.nu/support/index.html#/community
  6. //
  7.  
  8. // Daemon address and port
  9. WOPort = 127.0.0.1:20000;
  10.  
  11. // PID file
  12. //WOPidFile = /var/run/sogo/sogo.pid;
  13.  
  14. // Log file
  15. //WOLogFile = /var/log/sogo/sogo.log;
  16.  
  17. // Enable verbose logging. Reference:
  18. // http://www.sogo.nu/nc/support/faq/article/how-to-enable-more-verbose-logging-in-sogo.html
  19. //SOGoDebugRequests = YES;
  20. //SOGoEASDebugEnabled = YES;
  21. //ImapDebugEnabled = YES;
  22. //LDAPDebugEnabled = YES;
  23. //MySQL4DebugEnabled = YES;
  24. //PGDebugEnabled = YES;
  25.  
  26. // set the maximum allowed size for content being sent to SOGo, this can
  27. // also limit the file attachment size being uploaded to SOGo when
  28. // composing a mail. Default is 0 or disabled (unlimit).
  29. // The value is in kilobyte.
  30. //WOMaxUploadSize = 0;
  31.  
  32. // Define the URL to online help for SOGo. When set, an additional icon
  33. // will appear near the logout button in SOGo's web interface. The URL
  34. // will always be open in a blank target.
  35. //SOGoHelpURL = '';
  36.  
  37. // Performance Tuning
  38. //
  39. // The amount of instances of SOGo that will be spawned to handle multiple
  40. // requests simultaneously. When started from the init script, that amount
  41. // is overriden by the `PREFORK=` setting in /etc/sysconfig/sogo or
  42. // /etc/default/sogo. A value of 3 is a reasonable default for low usage.
  43. // The maximum value depends on the CPU and IO power provided by your
  44. // machine: a value set too high will actually decrease performances under
  45. // high load.
  46. //
  47. // You should have at least one child per EAS device configured to use
  48. // "push". You must also have more children than you have EAS devices
  49. // configured to use "push" - in order to handle normal SOGo requests to
  50. // its Web or DAV interfaces.
  51. //
  52. // Defaults to 1 when unset, increase it if you see below error message in
  53. // sogo log file: 'No child available to handle incoming request'
  54. //
  55. // WARNING:
  56. // - on RHEL/CentOS, this setting is controlled by parameter
  57. // 'PREFORK=' defined in /etc/sysconfig/sogo.
  58. // - on Debian/Ubuntu, this setting is controlled by parameter
  59. // 'PREFORK=' defined in /etc/default/sogo.
  60. WOWorkersCount = 10;
  61.  
  62. // Parameter used to set the maximum amount of time, in seconds, SOGo will
  63. // wait before replying to a Ping command.
  64. // If not set, it defaults to 10 seconds.
  65. SOGoMaximumPingInterval = 3540;
  66.  
  67. // Parameter used to set the maximum amount of time, in seconds, SOGo will
  68. // wait before replying to a Sync command.
  69. // If not set, it defaults to 30 seconds.
  70. SOGoMaximumSyncInterval = 3540;
  71.  
  72. // Parameter used to set the maximum amount of time, in seconds, SOGo will
  73. // wait before doing an internal check for data changes (add, delete, and
  74. // update). This parameter must be lower than SOGoMaximumSyncInterval and
  75. // SOGoMaximumPingInterval.
  76. // If not set, it defaults to 10 seconds.
  77. SOGoInternalSyncInterval = 30;
  78.  
  79. // Specifies the number of minutes after which a busy child process will be
  80. // killed by the parent process.
  81. // Defaults to 10 (minutes).
  82. WOWatchDogRequestTimeout = 60;
  83.  
  84. // Overwrite the maximum number of items returned during a Sync operation.
  85. // Defaults to 0, which means no overwrite is performed.
  86. // Setting this parameter to a value greater than 512 will have unexpected
  87. // behaviour with various ActiveSync clients.
  88. SOGoMaximumSyncWindowSize = 100;
  89.  
  90. // Overwrite the maximum response size during a Sync operation.
  91. // The value is in kilobytes. Setting this to 512 means the response size
  92. // will be of 524288 bytes or less (or a bit greater if needed for syncing
  93. // one item). Note that if you set the value too low and a mail message
  94. // (or any other object like calendar events, tasks and contacts) surpasses
  95. // it, it will still be synced but only this item will be.
  96. // Defaults to 0, which means no overwrite is performed.
  97. //
  98. // Say you have these five mails and you set the limit to 512KB:
  99. // 1. 250 KB
  100. // 2. 250 KB
  101. // 3. 25 KB
  102. // 4. 750 KB
  103. // 5. 10 KB
  104. // Sync iteration no. 1 will pick message 1, 2 and 3.
  105. // Sync iteration no. 2 will pick message 4.
  106. // Sync iteration no. 3 will pick message 5.
  107. SOGoMaximumSyncResponseSize = 2048;
  108.  
  109. // The maximum amount of memory (in megabytes) that a child can use.
  110. // Reaching that value will force children processes to restart, in order
  111. // to preserve system memory.
  112. //
  113. // Error message when it reaches the value:
  114. // "terminating app, vMem size limit (xxx MB) has been reached (currently xxx MB)"
  115. //
  116. // Defaults to 384.
  117. //SxVMemLimit = 1024;
  118.  
  119. // Enable XSRF (also known as CSRF) protection.
  120. SOGoXSRFValidationEnabled = YES;
  121.  
  122. // IMAP connection pool.
  123. // Your performance will slightly increase, as you won't open a new
  124. // connection for every access to your IMAP server.
  125. // But you will get a lot of simultaneous open connections to your IMAP
  126. // server, so make sure he can handle them.
  127. // For debugging it is reasonable to turn pooling off.
  128. //NGImap4DisableIMAP4Pooling = NO;
  129.  
  130. SOGoProfileURL = "mysql://sogo:EikoCfQ6kGq7AE91oT1Tmzhvzrpion@127.0.0.1:3306/sogo/sogo_user_profile";
  131. OCSFolderInfoURL = "mysql://sogo:EikoCfQ6kGq7AE91oT1Tmzhvzrpion@127.0.0.1:3306/sogo/sogo_folder_info";
  132. OCSSessionsFolderURL = "mysql://sogo:EikoCfQ6kGq7AE91oT1Tmzhvzrpion@127.0.0.1:3306/sogo/sogo_sessions_folder";
  133. OCSEMailAlarmsFolderURL = "mysql://sogo:EikoCfQ6kGq7AE91oT1Tmzhvzrpion@127.0.0.1:3306/sogo/sogo_alarms_folder";
  134. // With 3 parameters below, SOGo requires only 9 SQL tables in total
  135. // instead of creating 4 SQL tables for each user.
  136. OCSCacheFolderURL = "mysql://sogo:EikoCfQ6kGq7AE91oT1Tmzhvzrpion@127.0.0.1:3306/sogo/sogo_cache_folder";
  137. OCSStoreURL = "mysql://sogo:EikoCfQ6kGq7AE91oT1Tmzhvzrpion@127.0.0.1:3306/sogo/sogo_store";
  138. OCSAclURL = "mysql://sogo:EikoCfQ6kGq7AE91oT1Tmzhvzrpion@127.0.0.1:3306/sogo/sogo_acl";
  139.  
  140. // Default language in the web interface
  141. SOGoLanguage = English;
  142.  
  143. // Specify which module to show after login: Calendar, Mail, Contacts.
  144. SOGoLoginModule = Mail;
  145.  
  146. // Must login with full email address
  147. SOGoForceExternalLoginWithEmail = YES;
  148.  
  149. // Allow user to change full name and email address.
  150. SOGoMailCustomFromEnabled = YES;
  151.  
  152. // IMAP server
  153. //SOGoIMAPServer = "imaps://127.0.0.1:143/?tls=YES";
  154. // Local connection is considered as secure by Dovecot.
  155. SOGoIMAPServer = "imap://127.0.0.1:143/";
  156.  
  157. // Allow user to add other IMAP accounts that will be visible from the SOGo
  158. // Webmail interface.
  159. // Default is NO.
  160. //SOGoMailAuxiliaryUserAccountsEnabled = YES;
  161.  
  162. // SMTP server
  163. SOGoSMTPServer = 127.0.0.1;
  164. SOGoMailingMechanism = smtp;
  165. //SOGoSMTPAuthenticationType = PLAIN;
  166.  
  167. // Enable managesieve service
  168. //
  169. // WARNING: Sieve scripts generated by SOGo is not compatible with Roundcube
  170. // webmail, don't use sieve service in both webmails, otherwise
  171. // it will be messy.
  172. //
  173. //SOGoSieveServer = sieve://127.0.0.1:4190;
  174. //SOGoSieveScriptsEnabled = YES;
  175. //SOGoVacationEnabled = YES;
  176. //SOGoForwardEnabled = YES;
  177. SOGoSieveFolderEncoding = UTF-8;
  178.  
  179. // Memcached
  180. SOGoMemcachedHost = 127.0.0.1;
  181.  
  182. // Parameter used to set which usernames require administrative privileges
  183. // over all the users tables. For example, this could be used to post
  184. // events in the users calendar without requiring the user to configure
  185. // his/her ACLs. In this case you will need to specify those superuser's
  186. // usernames like this :
  187. // SOGoSuperUsernames = (<username1>[,<username2>, ...]);
  188. //SOGoSuperUsernames = ();
  189.  
  190. SOGoTimeZone = "America/New_York";
  191.  
  192. SOGoFirstDayOfWeek = 1;
  193.  
  194. SOGoRefreshViewCheck = every_5_minutes;
  195. SOGoMailReplyPlacement = below;
  196.  
  197. // Disable gravatar
  198. SOGoExternalAvatarsEnabled = NO;
  199. SOGoGravatarEnabled = NO;
  200.  
  201. //
  202. // Notifications
  203. //
  204. // Enable email-based alarms on events and tasks.
  205. SOGoEnableEMailAlarms = YES;
  206.  
  207. // Notify meeting participants
  208. SOGoAppointmentSendEMailNotifications = YES;
  209.  
  210. // Notify if a calendar or an address book has been created.
  211. SOGoFoldersSendEMailNotifications = YES;
  212.  
  213. // Notify involved users of a calendar or address book’s ACLs.
  214. SOGoACLsSendEMailNotifications = YES;
  215.  
  216. // Notify when a modification is being done to his/her own calendar by someone else.
  217. SOGoNotifyOnExternalModifications = YES;
  218.  
  219. // NOTE: PostgreSQL cannot update view in iRedMail
  220. SOGoPasswordChangeEnabled = YES;
  221.  
  222. // Authentication using SQL
  223.  
  224. SOGoUserSources = (
  225. {
  226. type = sql;
  227. id = users;
  228. viewURL = "mysql://sogo:EikoCfQ6kGq7AE91oT1Tmzhvzrpion@127.0.0.1:3306/sogo/users";
  229. canAuthenticate = YES;
  230.  
  231. // The algorithm used for password encryption when changing
  232. // passwords without Password Policies enabled.
  233. // Possible values are: plain, crypt, md5-crypt, ssha, ssha512.
  234. userPasswordAlgorithm = ssha512;
  235. prependPasswordScheme = YES;
  236.  
  237. // Use `vmail.mailbox` as per-domain address book.
  238. isAddressBook = YES;
  239. displayName = "Domain Address Book";
  240. SOGoEnableDomainBasedUID = YES;
  241. DomainFieldName = "domain";
  242. },
  243.  
  244. //{
  245. // displayName = "Global Address Book";
  246. // type = sql;
  247. // id = global_address_book;
  248. // viewURL = "mysql://sogo:EikoCfQ6kGq7AE91oT1Tmzhvzrpion@127.0.0.1:3306/sogo/users";
  249. // canAuthenticate = NO;
  250. // isAddressBook = YES;
  251. //}
  252. );
  253.  
  254.  
  255. // Authentication using LDAP
  256. /* LDAP backend
  257. SOGoUserSources = (
  258. {
  259. // Used for user authentication
  260. type = ldap;
  261. id = users;
  262. canAuthenticate = YES;
  263. isAddressBook = NO;
  264. displayName = "LDAP Authentication";
  265.  
  266. hostname = "PH_LDAP_URI";
  267. baseDN = "PH_LDAP_BASEDN";
  268. bindDN = "PH_LDAP_BINDDN";
  269. bindPassword = "PH_LDAP_BINDPW";
  270. filter = "objectClass=mailUser AND accountStatus=active AND enabledService=mail AND enabledService=sogo";
  271. scope = SUB;
  272.  
  273. // The algorithm used for password encryption when changing
  274. // passwords without Password Policies enabled.
  275. // Possible values are: plain, crypt, md5-crypt, ssha, ssha512.
  276. userPasswordAlgorithm = ssha512;
  277.  
  278. CNFieldName = cn;
  279. IDFieldName = mail;
  280. bindFields = (mail);
  281. // value of UIDFieldName must be unique on entire server
  282. UIDFieldName = mail;
  283. IMAPLoginFieldName = mail;
  284. SearchFieldNames = (cn, sn, displayName, telephoneNumber, mail, shadowAddress);
  285. },
  286. {
  287. // Used for global address book
  288. type = ldap;
  289. id = global_addressbook;
  290. canAuthenticate = NO;
  291. isAddressBook = YES;
  292. displayName = "Global Address Book";
  293.  
  294. // Listing of this LDAP source is only possible when performing a
  295. // search (respecting the SOGoSearchMinimumWordLength parameter)
  296. // or when explicitely typing a single dot.
  297. // Defaults to YES when unset.
  298. //
  299. // WARNING: if you have many accounts in this address book, it may
  300. // reach server-side query size limit, or cause
  301. // performance issue.
  302. listRequiresDot = NO;
  303.  
  304. hostname = "PH_LDAP_URI";
  305. baseDN = "PH_LDAP_BASEDN";
  306. bindDN = "PH_LDAP_BINDDN";
  307. bindPassword = "PH_LDAP_BINDPW";
  308. filter = "((enabledService=mail AND accountStatus=active AND enabledService=displayedInGlobalAddressBook) AND ((objectClass=mailUser AND enabledService=sogo) OR (objectClass=mailList) OR (objectClass=mailAlias)))";
  309. scope = SUB;
  310.  
  311. IDFieldName = mail;
  312. bindFields = (mail);
  313. CNFieldName = cn;
  314. // value of UID field must be unique on whole server.
  315. UIDFieldName = mail;
  316. IMAPLoginFieldName = mail;
  317. SearchFieldNames = (cn, sn, displayName, telephoneNumber, mail, shadowAddress);
  318. }
  319. );
  320. LDAP backend */
  321. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement