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
|
|
|
|
|
2020-12-04 19:43:28 +01:00
|
|
|
; The initialization vector for encryption.
|
|
|
|
; By now it has become obsolete. Don't use it for
|
|
|
|
; new installations. However, if you used it before
|
|
|
|
; then you must keep it as it is.
|
|
|
|
;iv=
|
2012-02-11 23:12:30 +01:00
|
|
|
|
2013-01-11 11:37:23 +01:00
|
|
|
; whether to encrypt messages (1) or not (0).
|
2014-01-01 20:56:56 +01:00
|
|
|
; Make sure to set this value to your needs right after installing piler,
|
|
|
|
; and don't change it after you got the first email. Otherwise
|
|
|
|
; you'll have half the archive encrypted, the other half unencrypted
|
|
|
|
; which will cause problems.
|
2013-01-11 11:37:23 +01:00
|
|
|
encrypt_messages=1
|
|
|
|
|
2011-11-14 15:57:52 +01:00
|
|
|
; number of worker processes, ie. the number of simultaneous smtp connections to piler.
|
2016-10-30 22:53:49 +01:00
|
|
|
; This value should be the number of cpus + 1, ie. 2 for a single cpu host
|
|
|
|
number_of_worker_processes=2
|
|
|
|
|
|
|
|
; max. number of parallel connections piler-smtp can handle.
|
|
|
|
; Important! If you want to change this value, then you must first
|
|
|
|
; stop piler-smtp, change the value, then start piler-smtp.
|
2016-10-31 09:39:17 +01:00
|
|
|
; I don't suggest to go under 10 or above 1000.
|
2016-10-31 09:27:12 +01:00
|
|
|
max_connections=64
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
; number of processed emails per each piler process
|
2018-03-06 14:42:07 +01:00
|
|
|
max_requests_per_child=10000
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
; SMTP HELO identification string
|
2015-03-29 09:56:27 +02:00
|
|
|
; this should be the FQDN part of the email address
|
2023-05-25 19:00:51 +02:00
|
|
|
; where you copy emails, eg. archive@piler.example.com -> piler.example.com
|
|
|
|
hostid=piler.example.com
|
2011-11-14 15:57:52 +01:00
|
|
|
|
2015-06-25 21:13:33 +02:00
|
|
|
; whether to process rcpt to addresses and add them to rcpt table (1) or not (0)
|
|
|
|
process_rcpt_to_addresses=0
|
|
|
|
|
2011-11-14 15:57:52 +01:00
|
|
|
; write pid file
|
|
|
|
pidfile=/var/run/piler/piler.pid
|
|
|
|
|
|
|
|
; piler will listen here
|
2015-11-10 15:52:55 +01:00
|
|
|
; if you have postfix, exim, ... installed on localhost
|
|
|
|
; then make sure to set the listen_addr parameter for piler
|
2011-11-14 15:57:52 +01:00
|
|
|
listen_addr=0.0.0.0
|
|
|
|
listen_port=25
|
|
|
|
|
|
|
|
clamd_socket=/tmp/clamd
|
|
|
|
|
2019-11-27 21:08:00 +01:00
|
|
|
; check for client timeout interval. Default: 20 sec
|
|
|
|
check_for_client_timeout_interval=20
|
2019-11-27 20:47:04 +01:00
|
|
|
|
2016-10-28 19:36:09 +02:00
|
|
|
; smtp timeout. Default: 60 sec
|
|
|
|
smtp_timeout=60
|
|
|
|
|
2014-11-04 12:01:39 +01:00
|
|
|
helper_timeout=20
|
2011-11-14 15:57:52 +01:00
|
|
|
|
2015-02-14 19:47:40 +01:00
|
|
|
; whether to run external attachment extractors (1) or not (0)
|
|
|
|
extract_attachments=1
|
|
|
|
|
2011-11-14 15:57:52 +01:00
|
|
|
; 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
|
|
|
|
|
2015-09-18 15:00:32 +02:00
|
|
|
; whether to enable writing folder_message table (1) or not (0)
|
|
|
|
enable_folders=0
|
|
|
|
|
2016-03-02 09:42:56 +01:00
|
|
|
; discard a message if it's shorter than this value (in bytes)
|
|
|
|
min_message_size=100
|
|
|
|
|
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
|
2015-05-06 12:22:48 +02:00
|
|
|
cipher_list=ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
|
2012-10-28 20:36:46 +01:00
|
|
|
|
2012-01-07 00:00:36 +01:00
|
|
|
|
2021-03-26 05:19:11 +01:00
|
|
|
; set the minimum TLS protocol version for piler-smtp daemon
|
|
|
|
;
|
|
|
|
; Valid values: TLSv1, TLSv1.1, TLSv1.2, TLSv1.3
|
|
|
|
; TLSv1 and TLSv1.1 are not recommended for security reasons
|
|
|
|
tls_min_version=TLSv1.2
|
|
|
|
|
|
|
|
|
2012-01-07 00:00:36 +01:00
|
|
|
; piler's own header to indicate previously archived messages
|
2015-05-17 21:41:13 +02:00
|
|
|
piler_header_field=X-piler-id:
|
2012-01-07 00:00:36 +01:00
|
|
|
|
2012-11-27 13:16:30 +01:00
|
|
|
; 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
|
|
|
|
2012-07-06 13:02:40 +02: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.
|
2012-07-06 13:02:40 +02:00
|
|
|
archive_emails_not_having_message_id=0
|
|
|
|
|
2013-07-12 23:00:27 +02:00
|
|
|
; 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
|
|
|
|
|
2014-08-18 12:58:45 +02:00
|
|
|
; whether to syslog the recipients of the email in the following format:
|
|
|
|
; 400000.....xxxxx: rcpt=recipient1@domain.com
|
|
|
|
; 400000.....xxxxx: rcpt=recipient2@domain.com
|
|
|
|
syslog_recipients=0
|
|
|
|
|
2012-08-22 08:15:53 +02:00
|
|
|
; minimum word length in mail body to index
|
|
|
|
min_word_len=1
|
2011-11-14 15:57:52 +01:00
|
|
|
|
2013-11-26 11:43:21 +01:00
|
|
|
; whether to enable CJK (=Chinese, Japanese, and Korean) "characters".
|
|
|
|
; the text piler can see with CJK languages may have extremely long
|
|
|
|
; sequences without any whitespace. To prevent the parser to drop
|
|
|
|
; these very long sequences, enable (1) this feature. By default it's
|
|
|
|
; disabled (0).
|
|
|
|
enable_cjk=0
|
|
|
|
|
2016-08-21 21:15:48 +02:00
|
|
|
; whether to enable the CHUNKING / BDAT feature (1) or not (0)
|
|
|
|
; You may read about the feature at https://tools.ietf.org/html/rfc3030)
|
|
|
|
enable_chunking=0
|
|
|
|
|
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
|
2022-12-29 06:49:04 +01:00
|
|
|
; persistantly at all), then specify a big number here, that fits to the
|
2012-01-07 00:00:36 +01:00
|
|
|
; "long int" size, eg. 2147483647
|
|
|
|
memcached_to_db_interval=900
|
|
|
|
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
;
|
|
|
|
; mysql stuff
|
|
|
|
;
|
|
|
|
|
2017-06-24 08:07:38 +02:00
|
|
|
// this can be either utf8 or utf8mb4. Make sure to match the value
|
|
|
|
// to the charset of the piler database! Also, make sure to set this
|
|
|
|
// value in sphinx.conf
|
2017-08-30 11:08:50 +02:00
|
|
|
mysqlcharset=utf8mb4
|
2011-11-14 15:57:52 +01:00
|
|
|
;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
|
|
|
|
|
2013-02-22 15:01:21 +01:00
|
|
|
|
2022-12-29 06:49:04 +01:00
|
|
|
;
|
|
|
|
; manticore stuff
|
|
|
|
;
|
|
|
|
sphxhost=127.0.0.1
|
|
|
|
sphxport=9306
|
|
|
|
; whether to enable (1) or not (0) the rt index. If so, then piler
|
|
|
|
; writes the index data directly to manticore's sql API
|
|
|
|
rtindex=0
|
2013-02-22 15:01:21 +01:00
|
|
|
|
|
|
|
; 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
|
2015-05-14 14:35:07 +02:00
|
|
|
|
|
|
|
; whether to enable (1) or not (0) the extra mmap dedup test feature
|
|
|
|
; if you change it, be sure to stop, then start piler
|
|
|
|
mmap_dedup_test=0
|
2020-11-26 19:01:45 +01:00
|
|
|
|
|
|
|
; security header that must be present in the first mail header of
|
|
|
|
; the message. If the security_header value is not empty, then the
|
|
|
|
; parser checks for this header line. Unless it's found it will discard
|
|
|
|
; the given email. Note that this feature is supposed to be a security
|
|
|
|
; mechanism against unwanted email in the archive if limiting smtp
|
|
|
|
; clients via an IP-address list is not feasible.
|
|
|
|
security_header=
|
2020-12-27 23:40:39 +01:00
|
|
|
|
2021-04-17 07:40:13 +02:00
|
|
|
; By default the archive accepts any envelope recipient addresses.
|
|
|
|
; If your archive's port 25 is wide open to the Internet (which it
|
|
|
|
; shouldn't be, then spammers may find it, and fill it with spam.
|
|
|
|
;
|
|
|
|
; By setting this variable you may restrict the envelope address
|
2023-05-25 19:00:51 +02:00
|
|
|
; to a single email address, eg. some-random-address-12345@archive.example.com
|
2021-04-17 07:40:13 +02:00
|
|
|
; Then the archive will reject any other envelope recipients
|
|
|
|
archive_address=
|
|
|
|
|
2020-12-27 23:40:39 +01:00
|
|
|
; whether to enable (1) or not (0) an smtp access list similar to
|
2020-12-28 13:11:29 +01:00
|
|
|
; postfix's postscreen. Valid actions in the acl file are "permit"
|
|
|
|
; and "reject" (without quotes). See smtp.acl.example for more.
|
2020-12-27 23:40:39 +01:00
|
|
|
;
|
2020-12-28 13:11:29 +01:00
|
|
|
; Important! There's an implicit default deny at the end of the
|
|
|
|
; rules. In other words if you decide to use the acl file, then
|
|
|
|
; everyone is not explicitly permitted is denied.
|
2020-12-27 23:40:39 +01:00
|
|
|
smtp_access_list=0
|
2024-03-22 06:02:08 +01:00
|
|
|
|
|
|
|
; max message size in bytes
|
|
|
|
; piler-smtp will reject any message that's bigger than this number
|
|
|
|
max_message_size=50000000
|
|
|
|
|
|
|
|
; max memory in bytes piler-smtp uses for buffering messages
|
|
|
|
; when this limit is exceeded, no new emails will be accepted
|
|
|
|
; until the used memory decreases below this level
|
|
|
|
max_smtp_memory=500000000
|