smtp2tg.toml.example at [cb1fdeff6f]
Logged in as anonymous

File smtp2tg.toml.example artifact 02af9a5a15 part of check-in cb1fdeff6f


# vi:ft=toml:
# Telegram API key
api_key = "YOU_KNOW_WHERE_TO_GET_THIS"

# Telegram API gateway (when you are running your own)
api_gateway = "https://api.telegram.org" # <- note no trailing slash

# where to listen on (sockets are not supported since 0.3.0)
listen_on = "0.0.0.0:25"

# default hostname to use when serving requests
hostname = "smtp2tg"

# 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 id
default = 0

# default fields to show in message header
fields = [ "date", "from", "subject" ]

[recipients]
# make sure you quote emails, as "@" can't go there unquoted. And by default
# we need FQDNs, also keep in mind emails are case insensitive
"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