piler/etc/example.conf

165 lines
4.4 KiB
Plaintext
Raw Normal View History

2011-11-14 15:57:52 +01:00
; This is an example config with default values
; Attention: do _not_ use whitespace between keys and values
; verbosity level. The more logging the greater load
; 1: normal
; 3: info
; 5: debug
verbosity=1
2013-01-06 21:04:58 +01:00
; unique server id. If you have more than 1 piler hosts combined,
; then assign a unique value to each host. Possible values: 0-255
server_id=0
2011-11-14 15:57:52 +01:00
; piler daemon will use this user (and its group)
; it it was started by root
username=piler
2012-02-19 22:59:47 +01:00
; by default (unless a specific retention rule applies),
; preserve an email for this many days. The purge utility
; won't harm the message until its retention days are gone.
; The default is 7 years + 2 days (=7*365+2=2557 days)
default_retention_days=2557
2012-02-11 23:12:30 +01:00
; this is a 16 character long vector
iv=****************
; whether to encrypt messages (1) or not (0).
encrypt_messages=1
2011-11-14 15:57:52 +01:00
; number of worker processes, ie. the number of simultaneous smtp connections to piler.
2012-01-07 00:00:36 +01:00
number_of_worker_processes=10
2011-11-14 15:57:52 +01:00
; number of processed emails per each piler process
2012-01-07 00:00:36 +01:00
max_requests_per_child=1000
2011-11-14 15:57:52 +01:00
; SMTP HELO identification string
2012-02-11 23:12:30 +01:00
hostid=mailarchiver.localhost
2011-11-14 15:57:52 +01:00
; write pid file
pidfile=/var/run/piler/piler.pid
; piler will listen here
listen_addr=0.0.0.0
listen_port=25
clamd_socket=/tmp/clamd
session_timeout=420
; the 2nd parameter of the listen() system call. Please note that this is set
2012-02-11 23:12:30 +01:00
; when piler starts up and you should restart piler if you change this variable.
2011-11-14 15:57:52 +01:00
; Please also note that the meaning of this variable depends on your Unix implementation
backlog=20
2012-01-07 00:00:36 +01:00
workdir=/var/piler/tmp
2012-10-28 20:36:46 +01:00
;
; starttls stuff
;
; whether to enable (1) or disable (0) starttls support
tls_enable=0
; PEM file containing both the certificate and the private key.
; Make sure to create this file (and secure it with chmod 600 /usr/local/etc/piler.pem)
; before turning on starttls support!
pemfile=
; cipher list to use, see 'man SSL_CTX_set_cipher_list' for more details
cipher_list=HIGH:MEDIUM
2012-01-07 00:00:36 +01:00
; piler's own header to indicate previously archived messages
piler_header_field=X-piler: piler already archived this email
; extra header field to treat as To:
;
; to make postfix to insert the envelope recipient address to the email
; header, do the following:
;
; /etc/postfix/main.cf:
;
; smtpd_recipient_restrictions = reject_non_fqdn_recipient, ... check_recipient_access pcre:$config_directory/x-add-envelope-to, ...
;
; /etc/postfix/x-add-envelope-to:
;
; /(.*)/ prepend X-Envelope-To: $1
;
extra_to_field=X-Envelope-To:
2012-01-07 00:00:36 +01:00
; whether to archive an email not having a Message-ID header line (1)
; or not (0).
; If enabled then piler will assign piler_id as the message-id
2012-07-06 15:02:23 +02:00
; to messages without message-id.
archive_emails_not_having_message_id=0
; whether to archive each and every single email received (0) or
; only those on the mydomains list (1). The default is to archive
; everything
archive_only_mydomains=0
; minimum word length in mail body to index
min_word_len=1
2011-11-14 15:57:52 +01:00
2012-01-26 14:35:51 +01:00
; if piler detects this line in the mail header, then it will assume
; the message is a spam. You should include your own antispam solution's
; specific line.
;
; If you use SpamAssassin you may use
;
; spam_header_line=X-Spam-Status: Yes
;
; OR
;
; spam_header_line=X-Spam-Level: ********
;
; The default value is empty.
spam_header_line=
2011-11-14 15:57:52 +01:00
;
; memcached stuff
;
2012-02-11 23:12:30 +01:00
; memcached server to use. Currently piler supports only 1 memcached server
2011-11-14 15:57:52 +01:00
memcached_servers=127.0.0.1
; ttl (in secs) of a stored object
; 0 means records don't expire
memcached_ttl=86400
2012-01-07 00:00:36 +01:00
; whether to update counters to memcached (1) or to the database (0)
update_counters_to_memcached=0
; interval to sync memcached data (eg. counters) to database
; this setting is only effective if you have update_counters_to_memcached=1
;
; hint: if you are using a mysql replicated environment and you do _not_ want
2012-02-11 23:12:30 +01:00
; piler to write to the replicated database (because you do sync it some other
2012-01-07 00:00:36 +01:00
; way to the master database or you are not interested in keeping the counters
; persistantly at all), then specify a big number here, that fits to the
; "long int" size, eg. 2147483647
memcached_to_db_interval=900
2011-11-14 15:57:52 +01:00
;
; mysql stuff
;
;mysqlhost=127.0.0.1
;mysqlport=3306
2013-08-01 11:31:10 +02:00
mysqlsocket=/var/run/mysqld/mysqld.sock
2011-11-14 15:57:52 +01:00
mysqluser=piler
2012-02-11 23:12:30 +01:00
mysqlpwd=verystrongpassword
2011-11-14 15:57:52 +01:00
mysqldb=piler
mysql_connect_timeout=2
; if you want to change the 'sent' time as you archive the message
; set this in seconds. This can be a postive or negative value.
; By default this feature is not enabled, use --tweak-sent-time
; configure option to enable it.
tweak_sent_time_offset=0