aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas <skangas@skangas.se>2011-02-27 06:23:56 +0100
committerStefan Kangas <skangas@skangas.se>2011-02-27 06:23:56 +0100
commit50d480bd78df4070b82c647c6dfa94f3edd93cf5 (patch)
tree6920039d764d4fab0012ad143015b79127075361
parentd231c7e9e2c219b256acf155b3f7b7e35713250b (diff)
Add logging configuration.
-rw-r--r--fripost-docs.org31
1 files changed, 31 insertions, 0 deletions
diff --git a/fripost-docs.org b/fripost-docs.org
index f61e51b..9d0f33e 100644
--- a/fripost-docs.org
+++ b/fripost-docs.org
@@ -714,6 +714,37 @@ TODO: add the necessary configuration files
- sudo apt-get install apache2
+** Logging
+*** Overview
+We want to limit how much we log for privacy reasons. At the same time we want
+to be able to debug technical problems and detect intrusions.
+
+For the webmail, we only log messages of priority warn or higher.
+*** Configuration
+
+ :: /etc/rsyslog.conf
+
+ *.*;auth,authpriv.none;mail.err -/var/log/syslog
+
+# NOTE: /var/log/mail.{err,warn} can be kept at the default
+# values since they do not contain any sensitive information.
+ :: /etc/logrotate.d/rsyslog
+
+ /var/log/mail.log
+ /var/log/mail.info
+ {
+ rotate 3
+ daily
+ missingok
+ ifempty
+ compress
+ delaycompress
+ sharedscripts
+ postrotate
+ invoke-rc.d rsyslog reload > /dev/null
+ endscript
+ }
+
** Necessary stuff to fix for security
*** Bacula for backups
Also has tripwire-like capabilities.