KostyaEsmukov / smtp_to_telegram

A small program that listens for SMTP and sends all incoming Email messages to Telegram
MIT License
313 stars 76 forks source link

ability to send from multiple servers to different bots #27

Open sk1234567891 opened 2 years ago

sk1234567891 commented 2 years ago

If you want to send alerts from jenkins to some telegram chat and send promatheous alerts to different chat with same bot you must raise multiple dockers of "smtp to telegram" with different ports.

Is it possible to add ability to saperate chats by mail address?

example: to: test1@google.com > chat ID: -111111111 to: test333333@google.com > chat ID: -222222222

KostyaEsmukov commented 2 years ago

I understand the issue and I see how this can be useful. However, I'm not sure I'm willing to support that.

sk1234567891 commented 2 years ago

i'm trying to develop it myself with a help from a friend. I will send you a merge request to see if it you can be helpfull for your project.

Manuel5cc commented 1 year ago

If you want to send alerts from jenkins to some telegram chat and send promatheous alerts to different chat with same bot you must raise multiple dockers of "smtp to telegram" with different ports.

Is it possible to add ability to saperate chats by mail address?

example: to: test1@google.com > chat ID: -111111111 to: test333333@google.com > chat ID: -222222222

The container isn't really resource intensive. Since the author is not sure about supporting this, you could always have several containers with different ports, one for each destination.

NetSysLinux commented 11 months ago

If you want to send alerts from jenkins to some telegram chat and send promatheous alerts to different chat with same bot you must raise multiple dockers of "smtp to telegram" with different ports.

Is it possible to add ability to saperate chats by mail address?

example: to: test1@google.com > chat ID: -111111111 to: test333333@google.com > chat ID: -222222222

I really need this function, I don’t know the language but it would be cool to add such an option.

MuratovAS commented 2 months ago

I have implemented the email mappings function. You can find it in my fork: https://github.com/MuratovAS/smtptg