Annotation For smtp2tg.toml.example
Logged in as anonymous

Origin for each line in smtp2tg.toml.example from check-in 0acb6536ae:

f5ed284f8c 2025-06-21    1: # vi:ft=toml:
61238a3618 2024-05-22    2: # Telegram API key
61238a3618 2024-05-22    3: api_key = "YOU_KNOW_WHERE_TO_GET_THIS"
f5ed284f8c 2025-06-21    4: 
14ef340959 2026-01-01    5: # Telegram API gateway (when you are running your own)
14ef340959 2026-01-01    6: api_gateway = "https://api.telegram.org" # <- note no trailing slash
14ef340959 2026-01-01    7: 
1db9dbe390 2024-11-28    8: # where to listen on (sockets are not supported since 0.3.0)
1db9dbe390 2024-11-28    9: listen_on = "0.0.0.0:25"
2158b44929 2025-06-12   10: 
0acb6536ae 2026-09-10   11: # default hostname to use when serving requests
0acb6536ae 2026-09-10   12: hostname = "smtp2tg"
2158b44929 2025-06-12   13: 
2158b44929 2025-06-12   14: # which domains are allowed in addresses
2158b44929 2025-06-12   15: # this means that any unqualified recipient "somebody" will also match
2158b44929 2025-06-12   16: # to "somebody@each_domain"
2158b44929 2025-06-12   17: domains = [ "localhost", "current.hostname" ]
2158b44929 2025-06-12   18: 
f5ed284f8c 2025-06-21   19: # default recipient, should be specified
0acb6536ae 2026-09-10   20: # still can be a user, channel or group id
f5ed284f8c 2025-06-21   21: default = 0
0acb6536ae 2026-09-10   22: 
0acb6536ae 2026-09-10   23: # default fields to show in message header
0acb6536ae 2026-09-10   24: fields = [ "date", "from", "subject" ]
f5ed284f8c 2025-06-21   25: 
f5ed284f8c 2025-06-21   26: [recipients]
f5ed284f8c 2025-06-21   27: # make sure you quote emails, as "@" can't go there unquoted. And by default
0acb6536ae 2026-09-10   28: # we need FQDNs, also keep in mind emails are case insensitive
f5ed284f8c 2025-06-21   29: "somebody@example.com" = 1 # user id's are positive
f5ed284f8c 2025-06-21   30: "root" = -1 # group id's are negative
61238a3618 2024-05-22   31: 
61238a3618 2024-05-22   32: # to look up chat/group id you can use debug settings in Telegram clients,
61238a3618 2024-05-22   33: # or some bot like @getidsbot or @RawDataBot