61238a3618 2024-05-22 1: # Telegram API key
61238a3618 2024-05-22 2: api_key = "YOU_KNOW_WHERE_TO_GET_THIS"
61238a3618 2024-05-22 3: # where SaMoToP stores incoming messages
61238a3618 2024-05-22 4: maildir = "./maildir"
61238a3618 2024-05-22 5: # default recipient, get's some debug info + mail that we couldn't deliver
61238a3618 2024-05-22 6: # should be in "recipients" table
61238a3618 2024-05-22 7: default = "somebody@example.com"
61238a3618 2024-05-22 8: # where to listen on, say "socket" to listen on "./smtp2tg.sock"
61238a3618 2024-05-22 9: #listen_on = "0.0.0.0:25"
61238a3618 2024-05-22 10: listen_on = "socket"
61238a3618 2024-05-22 11:
61238a3618 2024-05-22 12: [recipients]
61238a3618 2024-05-22 13: # make sure you quote emails, as "@" can't go there unquoted. And by default
61238a3618 2024-05-22 14: # we need FQDNs
61238a3618 2024-05-22 15: "somebody@example.com" = 1 # user id's are positive
61238a3618 2024-05-22 16: "root@example.com" = -1 # group id's are negative
61238a3618 2024-05-22 17:
61238a3618 2024-05-22 18: # to look up chat/group id you can use debug settings in Telegram clients,
61238a3618 2024-05-22 19: # or some bot like @getidsbot or @RawDataBot