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