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
|
# Telegram API key
api_key = "YOU_KNOW_WHERE_TO_GET_THIS"
# where to listen on (sockets are not supported since 0.3.0)
listen_on = "0.0.0.0:25"
# whether we need to handle unknown adresses
# - relay: send them to default one
# - deny: drop them
unknown = "relay"
# default fields to show in message header
fields = [ "date", "from", "subject" ]
# which domains are allowed in addresses
# this means that any unqualified recipient "somebody" will also match
# to "somebody@each_domain"
domains = [ "localhost", "current.hostname" ]
[recipients]
# there should be default recipient, get's some debug info + mail that we
# couldn't deliver (if enabled)
_ = 1
# make sure you quote emails, as "@" can't go there unquoted. And by default
# we need FQDNs
"somebody@example.com" = 1 # user id's are positive
"root@example.com" = -1 # group id's are negative
# to look up chat/group id you can use debug settings in Telegram clients,
# or some bot like @getidsbot or @RawDataBot
|
>
|
|
<
|
>
|
|
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
|
# vi:ft=toml:
# Telegram API key
api_key = "YOU_KNOW_WHERE_TO_GET_THIS"
# where to listen on (sockets are not supported since 0.3.0)
listen_on = "0.0.0.0:25"
# whether we need to handle unknown adresses
# - relay: send them to default one
# - deny: drop them
unknown = "relay"
# default fields to show in message header
fields = [ "date", "from", "subject" ]
# which domains are allowed in addresses
# this means that any unqualified recipient "somebody" will also match
# to "somebody@each_domain"
domains = [ "localhost", "current.hostname" ]
# default recipient, should be specified
# still can be a user, channel or group
default = 0
[recipients]
# make sure you quote emails, as "@" can't go there unquoted. And by default
# we need FQDNs
"somebody@example.com" = 1 # user id's are positive
"root" = -1 # group id's are negative
# to look up chat/group id you can use debug settings in Telegram clients,
# or some bot like @getidsbot or @RawDataBot
|