Sign inSign up

cvando/postfix

By cvando

•Updated over 7 years ago

Postfix with sasl

Image
0

1.5K

cvando/postfix repository overview

⁠Simple Postfix with sasl

⁠Prerequisites:
  • Postfix config file --> /yourdir/main.cf

  • Certificate/key --> /youdir/ssl smtpd.crt smtpd.key auto-generated, can be replace by letsencrypt cert.

  • Users db --> /yourdir/sasldb2

$ touch /yourdir/sasldb2
⁠Docker run:
$ docker run --restart=always -d -v /yourdir/main.cf:/main.cf -v /yourdir:/etc/postfix/ssl -v /yourdir/sasldb2:/etc/sasldb2 -p 587:587 -p 25:25 --name=postfix cvando/postfix
⁠Add user:
$ docker exec -it postfix saslpasswd2 -c -u domain.com username
⁠List users:
$ docker exec -it postfix sasldblistusers2
⁠Test authentication:

encode username@domain to base64

encode password to base64

$ telnet localhost 25
EHLO test
AUTH LOGIN
[email protected]
password64

Tag summary

Content type

Image

Digest

Size

19.3 MB

Last updated

over 7 years ago

docker pull cvando/postfix:master