Custom minimal Haraka image featuring a simple SMTP relay, automated DKIM record creation/deletion and a clone of the SES bounce notification system.
- DOMAIN
# Domain name for creating the SPF record
- HOSTED_ZONE_ID
# Hosted Zone Id from Route53 for creating the SPF record
- BOUNCES_SNS_TOPIC_ARN
# The SNS topic where SES-like bounces notifications will be sent
- LOG_LEVEL
(default: NOTICE)
docker run -e DOMAIN=exemple.com HOSTED_ZONE_ID=abc123 BOUNCES_SNS_TOPIC_ARN=arn:aws:sns:ca-central-1:111122223333:MyTopic -p 2525:25 pokainc/docker-haraka:v1.0.0
docker run --rm flowman/swaks -f from@exemple.com -t to@exemple.com -s localhost -p 2525
make build
Just make sure you specify valid AWS credentials and resources as environment.
-
Make sure you have a valid
node
installation. -
Install Haraka using
npm install Haraka@2.8.16
. -
cd
in theapp
dir runnpm install
to install the plugins dependencies. -
Then
cd
back to this dir and start Hakara usingsudo karaka -c app/
. You can avoidsudo
by changing the port to something else.