A mail relay that let you own an email address of your domain, without runing a mail server.
Runing a full functional mail service involves sophisticated setup and much maintain efforts. Many cloud providers also do not allow personnal mail services. This mail relay will let you own an email address of your domain, without runing a mail server. You can use the address to communicate with the world.
- First you need a cloud host configured as a server, which your domain targets to. Next you need a local host configured as a relay.
- To send mail, send to the address of your domain from your public mail account. The mail will arrives at your server. The server redirects the mail to your relay. At last the relay redirects the mail to the targeting mail server.
- To receive mail, the replied mail also arrives at your server first, then at your relay, finally at your public mail account.
- an account from public mail server, eg. gmail.com
- a cloud host service, eg. google cloud
- a domain name with MX record configured(optional DKIM TXT), targeting at the cloud host
- your local network
- On both server and relay
git clone https://github.com/elementdavv/tlmail.git
cd tlmail
pip3 install dnspython aiosmtpd dkimpy
- On server
- edit general and server sections of config file
tlmail.ini - open port
25of the server - run:
sudo python3 tlmail.py &
- On relay
- edit general, relay and remote section of config file
tlmail.ini - open port
2525of the relay - run:
python3 tlmail.py &
- Mail operation
You can send and receive mails from your public mail account.
When sending a mail:
- set the
To:field to the address of your domain - sourround the receiver's address with
###in both sides, and inject it to theSubject:field