Browse Source

Merge pull request #170 from jsravn/master

Some minor tweaks
Luke Cyca 10 years ago
parent
commit
b1b3b61324

+ 1
- 1
README.textile View File

@@ -174,7 +174,7 @@ Set up SPF and reverse DNS "as per this post":http://sealedabstract.com/code/nsa
174 174
 h3. 7. Miscellaneous Configuration
175 175
 
176 176
 * Sign in to the ZNC web interface and set things up to your liking.
177
-* You'll probably want to sign into your ownCloud installation and check out the settings there, too.
177
+* Sign into ownCloud to set it up. You should select postgresql as the configuration backend.
178 178
 
179 179
 h2. How To Use Your New Personal Cloud
180 180
 

+ 0
- 4
roles/mailserver/tasks/dspam.yml View File

@@ -29,7 +29,3 @@
29 29
     - 90-plugin.conf
30 30
   notify: restart dovecot
31 31
 
32
-- name: Put sieve rules into each user directory
33
-  copy: src=dot_dovecot.sieve dest=/decrypted/{{ item.domain }}/{{ item.account }}/.dovecot.sieve owner=vmail group=dovecot
34
-  with_items: mail_virtual_users
35
-  notify: restart dovecot

+ 3
- 3
roles/mailserver/templates/usr_share_z-push_config.php.j2 View File

@@ -128,7 +128,7 @@
128 128
     //   SYNC_FILTERTYPE_ALL (default, no limitation)
129 129
     //   SYNC_FILTERTYPE_1DAY, SYNC_FILTERTYPE_3DAYS, SYNC_FILTERTYPE_1WEEK, SYNC_FILTERTYPE_2WEEKS,
130 130
     //   SYNC_FILTERTYPE_1MONTH, SYNC_FILTERTYPE_3MONTHS, SYNC_FILTERTYPE_6MONTHS
131
-    define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_ALL);
131
+    define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_3MONTHS);
132 132
 
133 133
     // Interval in seconds before checking if there are changes on the server when in Ping.
134 134
     // It means the highest time span before a change is pushed to a mobile. Set it to
@@ -233,8 +233,8 @@
233 233
     //  BackendVCardDir settings
234 234
     // **********************
235 235
     define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
236
-    
237
-    
236
+
237
+
238 238
 /**********************************************************************************
239 239
  *  Search provider settings
240 240
  *

+ 6
- 0
roles/tarsnap/files/tarsnap.sh View File

@@ -54,12 +54,18 @@ else
54 54
 	BACKUP="$YEAR$MOY$DOM-$TIME-daily"
55 55
 fi
56 56
 
57
+# Stop postgres
58
+monit stop postgres
59
+
57 60
 # Do backups
58 61
 for dir in $DIRS; do
59 62
 	echo "==> create $BACKUP-$dir"
60 63
 	$TARSNAP $EXTRA_FLAGS -c -f $BACKUP-$dir $dir
61 64
 done
62 65
 
66
+# Start postgres
67
+monit start postgres
68
+
63 69
 # Backups done, time for cleaning up old archives
64 70
 
65 71
 # using tail to find archives to delete, but its

+ 1
- 1
roles/tarsnap/tasks/tarsnap.yml View File

@@ -61,4 +61,4 @@
61 61
   copy: src=tarsnap.sh dest=/root/tarsnap.sh mode="755"
62 62
 
63 63
 - name: Install nightly Tarsnap-generations cronjob
64
-  cron: name="Tarsnap backup" hour="23" minute="0" job="sh /root/tarsnap.sh >> /var/log/tarsnap.log"
64
+  cron: name="Tarsnap backup" hour="3" minute="0" job="sh /root/tarsnap.sh >> /var/log/tarsnap.log"

roles/mailserver/files/dot_dovecot.sieve → roles/webmail/files/etc_roundcube_global.sieve View File


+ 2
- 2
roles/webmail/files/usr_share_roundcube_plugins_managesieve_config.inc.php View File

@@ -29,10 +29,10 @@ $rcmail_config['managesieve_auth_pw'] = null;
29 29
 $rcmail_config['managesieve_usetls'] = false;
30 30
 
31 31
 // default contents of filters script (eg. default spam filter)
32
-$rcmail_config['managesieve_default'] = '/etc/dovecot/sieve/global';
32
+$rcmail_config['managesieve_default'] = '/etc/roundcube/global.sieve';
33 33
 
34 34
 // The name of the script which will be used when there's no user script
35
-$rcmail_config['managesieve_script_name'] = 'managesieve';
35
+$rcmail_config['managesieve_script_name'] = 'roundcube';
36 36
 
37 37
 // Sieve RFC says that we should use UTF-8 endcoding for mailbox names,
38 38
 // but some implementations does not covert UTF-8 to modified UTF-7.

+ 3
- 0
roles/webmail/tasks/roundcube.yml View File

@@ -17,6 +17,9 @@
17 17
 - name: Configure roundcube's managesieve plugin
18 18
   copy: src=usr_share_roundcube_plugins_managesieve_config.inc.php dest=/usr/share/roundcube/plugins/managesieve/config.inc.php group=www-data owner=root mode=640 force=yes
19 19
 
20
+- name: Copy global default sieve rules
21
+  copy: src=etc_roundcube_global.sieve dest=/etc/roundcube/global.sieve owner=root group=www-data mode=640
22
+
20 23
 - name: Enable roundcube site
21 24
   command: a2ensite roundcube creates=/etc/apache2/sites-enabled/roundcube
22 25
   notify: restart apache

Loading…
Cancel
Save