Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 706 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 706 Bytes

EmailToBot

This project automatically forwards mail that passes through the mail port of the local port to the telegram bot. A new telegram robot will not be described in detail here. Note: test.py is used to simulate sending mail for testing.

On-premises Deployment

$ python emailtobot.py -t

Docker Deployment

FROM python:3
WORKDIR /usr/src/app
COPY emailtobot.py ./
COPY requirements.txt ./
RUN pip install -r requirements.txt
CMD ["python", "./emailtobot.py", "-t" , <your_token>, "-k", <your_key>, "-u", <your_username>, "-p", <your_password>, "-P", <your_port>]

Start Container

$ docker build -t etb .
$ docker run -p <bind_port>:<your_port> -d etb