Annotation For smtp2tg.toml.example
Logged in as anonymous

Origin for each line in smtp2tg.toml.example from check-in 14ef340959:

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"
14ef340959 2026-01-01    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
2158b44929 2025-06-12    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: 
1db9dbe390 2024-11-28   11: # whether we need to handle unknown adresses
1db9dbe390 2024-11-28   12: # - relay: send them to default one
1db9dbe390 2024-11-28   13: # - deny: drop them
1db9dbe390 2024-11-28   14: unknown = "relay"
2158b44929 2025-06-12   15: 
28fde40f7a 2024-12-27   16: # default fields to show in message header
28fde40f7a 2024-12-27   17: fields = [ "date", "from", "subject" ]
28fde40f7a 2024-12-27   18: 
2158b44929 2025-06-12   19: # which domains are allowed in addresses
2158b44929 2025-06-12   20: # this means that any unqualified recipient "somebody" will also match
2158b44929 2025-06-12   21: # to "somebody@each_domain"
2158b44929 2025-06-12   22: domains = [ "localhost", "current.hostname" ]
2158b44929 2025-06-12   23: 
f5ed284f8c 2025-06-21   24: # default recipient, should be specified
f5ed284f8c 2025-06-21   25: # still can be a user, channel or group
f5ed284f8c 2025-06-21   26: default = 0
2158b44929 2025-06-12   27: 
f5ed284f8c 2025-06-21   28: [recipients]
61238a3618 2024-05-22   29: # make sure you quote emails, as "@" can't go there unquoted. And by default
61238a3618 2024-05-22   30: # we need FQDNs
61238a3618 2024-05-22   31: "somebody@example.com" = 1 # user id's are positive
f5ed284f8c 2025-06-21   32: "root" = -1 # group id's are negative
61238a3618 2024-05-22   33: 
61238a3618 2024-05-22   34: # to look up chat/group id you can use debug settings in Telegram clients,
61238a3618 2024-05-22   35: # or some bot like @getidsbot or @RawDataBot