Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/catatnight/docker-postfix
run postfix with smtp authentication (sasldb) in a docker container
https://github.com/catatnight/docker-postfix
Last synced: 3 months ago
JSON representation
run postfix with smtp authentication (sasldb) in a docker container
- Host: GitHub
- URL: https://github.com/catatnight/docker-postfix
- Owner: catatnight
- License: mit
- Created: 2014-06-18T07:56:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-09-26T19:45:38.000Z (about 1 year ago)
- Last Synced: 2024-06-28T09:35:15.351Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 20.5 KB
- Stars: 306
- Watchers: 19
- Forks: 220
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
docker-postfix
==============run postfix with smtp authentication (sasldb) in a docker container.
TLS and OpenDKIM support are optional.## Requirement
+ Docker 1.0## Installation
1. Build image```bash
$ sudo docker pull catatnight/postfix
```## Usage
1. Create postfix container with smtp authentication```bash
$ sudo docker run -p 25:25 \
-e maildomain=mail.example.com -e smtp_user=user:pwd \
--name postfix -d catatnight/postfix
# Set multiple user credentials: -e smtp_user=user1:pwd1,user2:pwd2,...,userN:pwdN
```
2. Enable OpenDKIM: save your domain key ```.private``` in ```/path/to/domainkeys``````bash
$ sudo docker run -p 25:25 \
-e maildomain=mail.example.com -e smtp_user=user:pwd \
-v /path/to/domainkeys:/etc/opendkim/domainkeys \
--name postfix -d catatnight/postfix
```
3. Enable TLS(587): save your SSL certificates ```.key``` and ```.crt``` to ```/path/to/certs``````bash
$ sudo docker run -p 587:587 \
-e maildomain=mail.example.com -e smtp_user=user:pwd \
-v /path/to/certs:/etc/postfix/certs \
--name postfix -d catatnight/postfix
```## Note
+ Login credential should be set to (`[email protected]`, `password`) in Smtp Client
+ You can assign the port of MTA on the host machine to one other than 25 ([postfix how-to](http://www.postfix.org/MULTI_INSTANCE_README.html))
+ Read the reference below to find out how to generate domain keys and add public key to the domain's DNS records## Reference
+ [Postfix SASL Howto](http://www.postfix.org/SASL_README.html)
+ [How To Install and Configure DKIM with Postfix on Debian Wheezy](https://www.digitalocean.com/community/articles/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy)
+ TBD