Setup your mail service like mailgun in one minute at anywhere(home/office/datacenter/cloud/vps).
Programming API: smtp/mailgun-http.
You should own dnspod account and add one top-level domain in dnspod. http://dnspod.cn
docker build -t nicescale/sendmail .
docker run -d --name mta -h mail.example -e MAIL_DOMAIN=mail.example -e DP_USERfirstname.lastname@example.org -e DP_PASS=123456 nicescale/sendmail
your mail domain for sendmail service. if sender is email@example.com, then you should set MAIL_DOMAIN=mail.nicescale.com
your login user of dnspod.cn
your login password of dnspod.cn
interval time to check if public ip is changed and update it automatically, just ddns function. if set to 0, then no check.
The dnspod api is called over https, dont worry about your password leak.
This docker will setup a MTA service, and set TXT domain record of spf/dkim in dnspod.cn automatically.
Further more, we will support http/tls smtp.
Configure smtp host and port(25) in your runtime, then you can sendmail through function mail. or:
docker run -d mta:mta nicescale/apache_php
then you can get smtp host/port from mta environments in your php.
- support http api of mailgun
- support tls smtp (587 port)
- multiple public ips for one domain