Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.02 KB

README.md

File metadata and controls

20 lines (16 loc) · 1.02 KB

Telegram Sendmail

The classic sendmail utility standard but sending mail to Telegram instead of SMTP.

Telegram screenshot

Features

  • Tries to send the mail as a text message if small enough, if not then it sends as a file.
  • Works using a UNIX socket so tokens are not exposed to the sendmail caller.
  • Extracts the headers of the message and sends the subject along with the message.
  • Built in Python: Easier to adapt and contribute.
  • stdlib only: No additional libraries have been used to build this. Simpler to deploy.
  • NixOS ready: Just imports in your configuration. I recommend using something like sops-nix to deal with secrets. Integration example.

TODO

  • Retrying later if failed because of bad Internet connection.
  • Simplify adoption with other distros.
    • Arch btw
    • Fedora
    • Debian-like (Ubuntu, Mint, Debian, ...)