Sign inSign up

hillliu/postfix-sasl-dkim

By hillliu

Updated almost 7 years ago

Image
0

313

hillliu/postfix-sasl-dkim repository overview

Alpine postfix + cyrus-sasl + dkim

Docker hub

Test auth

  • docker-compose up
  • docker-compose exec mail sh
  • apk add busybox-extras
  • telnet localhost 25
  • EHLO mail.example.com
  • AUTH PLAIN AHRlc3RfdXNlckBtYWlsLmV4YW1wbGUuY29tAHRlc3RfcGFzc3dvcmQ=
get password with base64
echo -ne '\[email protected]\000test_password' | openssl base64

Test send mail

Test mail with telnet
Test mail with script
#!/bin/bash

DIR="$( cd "$(dirname "$0")" ; pwd -P )"
[email protected]
MAIL_TO=$1
MAIL_SUBJECT=test-subject
MAIL_BODY=test-body
MTA_HOST=localhost
[email protected]
MTA_PASSWORD=test_password

${DIR}/support/sendemail -f $MAIL_FROM -t $MAIL_TO -s $MTA_HOST -xu $MTA_USER -xp $MTA_PASSWORD -u $MAIL_SUBJECT -m $MAIL_BODY

Tag summary

Content type

Image

Digest

Size

28.1 MB

Last updated

almost 7 years ago

docker pull hillliu/postfix-sasl-dkim