-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.ini
72 lines (58 loc) · 1.99 KB
/
config.example.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# This is an example configuration file.
#
# Create a configuration section for each mailbox you like to watch.
# You might enter any section name you like.
[mailbox1]
# hostname / IP address of the IMAP server
# default: localhost
host=imap.example.com
# port number of the IMAP server
# default: 143
port=143
# login credentials of the IMAP account
# default: (no user authentication)
password=test1234
# mailbox folder to watch for incoming messages
# default: INBOX
folder=INBOX
# whether to use encryption
# possible values: "none", "ssl", "starttls"
# default: none
encryption=starttls
# whether to do hostname verification for encrypted connections
# possible values: "true", "false", "1", "0"
# default: true
encryption_hostname_check=true
# whether to do certificate verification for encrypted connections
# possible values: "none", "optional", "required"
# default: required
encryption_certificate_check=required
# path to certificate authority file for encrypted connections with enabled certificate check
# default: (no CA file used)
encryption_certificate_ca_file=/etc/certs/trusted_ca.pem
# executed external command, if a new message is received
# paths are relative to the current working dir, or use an absolute path alternatively
# default: (no callback script used)
on_new_message=./callback/printenv.sh
# options starting with "env_" are passed as additional environment variables to the callback script
# e.g. the option "env_additional_variable" is passed as environment variable "ADDITIONAL_VARIABLE"
# provide as many additional variables as you like
env_additional_variable=test1
env_another_additional_variable=test2
#
# A second mailbox to watch.
#
[mailbox2]
host=imap.example.com
port=993
password=test9876
folder=INBOX
encryption=ssl
encryption_hostname_check=false
encryption_certificate_check=optional
encryption_certificate_ca_file=/etc/certs/trusted_ca.pem
on_new_message=./callback/printenv.sh