1
1
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-09-27 23:09:48 +02:00

switch to SHA512

This commit is contained in:
shim_ 2016-06-14 13:00:51 +02:00
parent a267af5efe
commit 63fd58a7cb
5 changed files with 7 additions and 33 deletions

View File

@ -11,8 +11,8 @@ build:
docker build -t $(NAME) .
generate-accounts:
docker run --rm -e MAIL_USER=user1@localhost.localdomain -e MAIL_PASS=mypassword -t $(NAME) /bin/sh -c 'echo "$$MAIL_USER|$$(doveadm pw -s CRAM-MD5 -u $$MAIL_USER -p $$MAIL_PASS)"' > test/config/postfix-accounts.cf
docker run --rm -e MAIL_USER=user2@otherdomain.tld -e MAIL_PASS=mypassword -t $(NAME) /bin/sh -c 'echo "$$MAIL_USER|$$(doveadm pw -s CRAM-MD5 -u $$MAIL_USER -p $$MAIL_PASS)"' >> test/config/postfix-accounts.cf
docker run --rm -e MAIL_USER=user1@localhost.localdomain -e MAIL_PASS=mypassword -t $(NAME) /bin/sh -c 'echo "$$MAIL_USER|$$(doveadm pw -s SHA512-CRYPT -u $$MAIL_USER -p $$MAIL_PASS)"' > test/config/postfix-accounts.cf
docker run --rm -e MAIL_USER=user2@otherdomain.tld -e MAIL_PASS=mypassword -t $(NAME) /bin/sh -c 'echo "$$MAIL_USER|$$(doveadm pw -s SHA512-CRYPT -u $$MAIL_USER -p $$MAIL_PASS)"' >> test/config/postfix-accounts.cf
run:
# Run containers

View File

@ -64,7 +64,7 @@ Don't forget to adapt MAIL_USER and MAIL_PASS to your needs
-e MAIL_USER=user1@domain.tld \
-e MAIL_PASS=mypassword \
-ti tvial/docker-mailserver:latest \
/bin/sh -c 'echo "$MAIL_USER|$(doveadm pw -s CRAM-MD5 -u $MAIL_USER -p $MAIL_PASS)"' >> config/postfix-accounts.cf
/bin/sh -c 'echo "$MAIL_USER|$(doveadm pw -s SHA512-CRYPT -u $MAIL_USER -p $MAIL_PASS)"' >> config/postfix-accounts.cf
#### Generate DKIM keys

View File

@ -1,26 +0,0 @@
# This is the output of a manual test.
# CRAM-MD5 is not (yet) testable with telnet.
#
# # telnet localhost 25
# Trying ::1...
# Connected to localhost.
# Escape character is '^]'.
# 220 mail.my-domain.com ESMTP Postfix (Ubuntu)
# ehlo test
# 250-mail.my-domain.com
# 250-PIPELINING
# 250-SIZE 10240000
# 250-VRFY
# 250-ETRN
# 250-STARTTLS
# 250-AUTH PLAIN LOGIN CRAM-MD5 DIGEST-MD5
# 250-AUTH=PLAIN LOGIN CRAM-MD5 DIGEST-MD5
# 250-ENHANCEDSTATUSCODES
# 250-8BITMIME
# 250 DSN
# AUTH CRAM-MD5
# 334 PDIxMDMyODkzMTMuMTA2Mzg2MjhAbWFpbC5teS1kb21haW4uY29tPg==
# dXNlcjFAbG9jYWxob3N0LmxvY2FsZG9tYWluIGJlYjUxNzg4OGE5ZWI0OGM1NjQ2MTYwZGY3NTY1ZWNh
# 235 2.7.0 Authentication successful
# QUIT
# 221 2.0.0 Bye

View File

@ -1,2 +1,2 @@
user1@localhost.localdomain|{CRAM-MD5}de5924752ad74e36bc271a8dc7fad4b2d341f21f05382f20dedf1fdfbd5a1717
user2@otherdomain.tld|{CRAM-MD5}de5924752ad74e36bc271a8dc7fad4b2d341f21f05382f20dedf1fdfbd5a1717
user1@localhost.localdomain|{SHA512-CRYPT}$6$6Xxcp1JSbIopyWIC$LdrPrPSAdDuOZOZhaQsmuqFa8gyZ.F43Bh8vHNCd2zumwaj9DdM6v7gkMwOP0Fn4IartmPvF5CdVCzV1pdx7M1
user2@otherdomain.tld|{SHA512-CRYPT}$6$OVDJp7HtL3U2d2c7$jxVpLBYBfNLekpsx6Ih3uAg640iGXXGPgKno8uDK31/FIL1rRf7Uh.go/xTyD5PQNsr/pOPkJb2b1QS7Ovnll0

View File

@ -1,2 +1,2 @@
user1@localhost.localdomain|{CRAM-MD5}de5924752ad74e36bc271a8dc7fad4b2d341f21f05382f20dedf1fdfbd5a1717
user2@otherdomain.tld|{CRAM-MD5}de5924752ad74e36bc271a8dc7fad4b2d341f21f05382f20dedf1fdfbd5a1717
user1@localhost.localdomain|{SHA512-CRYPT}$6$6Xxcp1JSbIopyWIC$LdrPrPSAdDuOZOZhaQsmuqFa8gyZ.F43Bh8vHNCd2zumwaj9DdM6v7gkMwOP0Fn4IartmPvF5CdVCzV1pdx7M1
user2@otherdomain.tld|{SHA512-CRYPT}$6$OVDJp7HtL3U2d2c7$jxVpLBYBfNLekpsx6Ih3uAg640iGXXGPgKno8uDK31/FIL1rRf7Uh.go/xTyD5PQNsr/pOPkJb2b1QS7Ovnll0