Simple to use Telegram bot, that can resend emails from the configured account.
git clone https://github.com/VadVergasov/MailRedirector.git
cd MailRedirector
python3 -m venv env
env\Scripts\activate.bat # For Windows.
source env/bin/activate # For Linux and MacOS
pip install -r requirements.txt
Copy config.py.template to config.py insert all required values, do the same with .service.templates, then run
sudo ln mailredirector_mail.service /etc/systemd/system/mailredirector_mail.service
sudo ln mailredirector_mail.timer /etc/systemd/system/mailredirector_mail.timer
sudo ln mailredirector.service /etc/systemd/system/mailredirector.service
sudo ln mailredirector_telegram.service /etc/systemd/system/mailredirector_telegram.service
sudo systemctl daemon-reload
sudo systemctl enable mailredirector mailredirector_mail.service mailredirector_mail.timer mailredirector_telegram
sudo systemctl start mailredirector
/start
and /help
commands adds your chat to sending list.
/stop
removes your chat from sending list.
Licensed under GPLv3. See LICENSE file.