Skip to content

Sendmail, but sending to telegram instead of e-mail.

Notifications You must be signed in to change notification settings

lucasew/telegram-sendmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, ...)

About

Sendmail, but sending to telegram instead of e-mail.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published