File
smtp2tg.toml.example
— part of check-in
[1db9dbe390]
at
2024-11-28 15:44:44
on branch trunk
— This is kindda a HUGE rework. SMTP backend switched from SaMoToP to
mailin-embedded, resulting in:
* LMTP support dropped (I hope just temporary);
* no need to write anything to files as whole processing is done in memory;
* this also means we can return status - whether message was sent, was there
any errors etc, no internal queue exists now, SMTP server should handle
queueing from now on;
* possibility to deny mail to unknown/unconfigured recipients.
(user:
arcade,
size: 705)
[annotate]
[blame][check-ins using]
# Telegram API key
api_key = "YOU_KNOW_WHERE_TO_GET_THIS"
# where to listen on (sockets are not supported since 0.3.0)
listen_on = "0.0.0.0:25"
# whether we need to handle unknown adresses
# - relay: send them to default one
# - deny: drop them
unknown = "relay"
# default fields to show in message header
fields = [ "date", "from", "subject" ]
[recipients]
# there should be default recipient, get's some debug info + mail that we
# couldn't deliver (if enabled)
_ = 1
# make sure you quote emails, as "@" can't go there unquoted. And by default
# we need FQDNs