Annotation For smtp2tg.toml.example
Logged in as anonymous

Origin for each line in smtp2tg.toml.example from check-in 2158b44929:

61238a3618 2024-05-22    1: # Telegram API key
61238a3618 2024-05-22    2: api_key = "YOU_KNOW_WHERE_TO_GET_THIS"
2158b44929 2025-06-12    3: 
1db9dbe390 2024-11-28    4: # where to listen on (sockets are not supported since 0.3.0)
1db9dbe390 2024-11-28    5: listen_on = "0.0.0.0:25"
2158b44929 2025-06-12    6: 
1db9dbe390 2024-11-28    7: # whether we need to handle unknown adresses
1db9dbe390 2024-11-28    8: # - relay: send them to default one
1db9dbe390 2024-11-28    9: # - deny: drop them
1db9dbe390 2024-11-28   10: unknown = "relay"
2158b44929 2025-06-12   11: 
28fde40f7a 2024-12-27   12: # default fields to show in message header
28fde40f7a 2024-12-27   13: fields = [ "date", "from", "subject" ]
2158b44929 2025-06-12   14: 
2158b44929 2025-06-12   15: # which domains are allowed in addresses
2158b44929 2025-06-12   16: # this means that any unqualified recipient "somebody" will also match
2158b44929 2025-06-12   17: # to "somebody@each_domain"
2158b44929 2025-06-12   18: domains = [ "localhost", "current.hostname" ]
28fde40f7a 2024-12-27   19: 
61238a3618 2024-05-22   20: [recipients]
da7fc7983d 2024-05-23   21: # there should be default recipient, get's some debug info + mail that we
1db9dbe390 2024-11-28   22: # couldn't deliver (if enabled)
da7fc7983d 2024-05-23   23: _ = 1
2158b44929 2025-06-12   24: 
61238a3618 2024-05-22   25: # make sure you quote emails, as "@" can't go there unquoted. And by default
61238a3618 2024-05-22   26: # we need FQDNs
61238a3618 2024-05-22   27: "somebody@example.com" = 1 # user id's are positive
61238a3618 2024-05-22   28: "root@example.com" = -1 # group id's are negative
61238a3618 2024-05-22   29: 
61238a3618 2024-05-22   30: # to look up chat/group id you can use debug settings in Telegram clients,
61238a3618 2024-05-22   31: # or some bot like @getidsbot or @RawDataBot