Skip to content

ak4nv/smtp-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a dead simple smtp proxy server for quickly getting mails and sending it in asynchronous mode with external smtp server.

Requirements

Python 3.6+, compiled with SSL support, is required.

Installation

$ git clone https://github.com/ak04nv/smtp-proxy.git /srv/aiosmtpd
$ cd /srv/aiosmtpd
$ virtualenv -p python3 .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ chown -R www-data:www-data .

Create config.ini file and fill it like content below

SERVER = smtp.gmail.com
PORT = 587
USERNAME = [email protected]
PASSWORD = my_strong_password

Activation

$ cp smtpd.service /etc/systemd/system
$ cd /etc/systemd/system
$ systemd enable smtpd.service
$ systemd start smtpd.service

Service binds on localhost and 1025 port by default. You can change it in smtpd.service file in ExecStart param.

Finally

Script was successfully tested on Ubuntu 16.04 with actual updates. Use this command for seeing logs.

$ journalctl -u smtpd.service

License

MIT License

Releases

No releases published

Packages

No packages published

Languages