![]() |
![]() |
||||
DKIM (Domain Keys Identified Mail) is an email authentication technique that allows the receiver to check that an email was indeed sent and authorized by the owner of that domain. This is done by giving the email a digital signature. This DKIM signature is a header that is added to the message and is secured with encryption.
Using DKIM involves 3 steps:
The script below shows how to create your key pair and what records to add at Metawerx:
# Generate key pair openssl genrsa -out /tmp/metawerx.key 1024 openssl rsa -in /tmp/metawerx.key -pubout -out /tmp/metawerx.pub # Strip -----BEGIN/END PUBLIC KEY----- lines sed -i "/-----/c\\" /tmp/metawerx.key sed -i "/-----/c\\" /tmp/metawerx.pub # Strip CRLF sed -z -i "s/\r//g" /tmp/metawerx.key sed -z -i "s/\n//g" /tmp/metawerx.key sed -z -i "s/\r//g" /tmp/metawerx.pub sed -z -i "s/\n//g" /tmp/metawerx.pub # Show results and clean up tmp files echo; echo "Use this in Metawerx Mail Administrator as the DKIM Private Key:"; echo; cat /tmp/metawerx.key; echo; echo; echo "Use this as the TXT record metawerx._domainkey in Metawerx DNS Editor:"; echo; echo "\"v=DKIM1; k=rsa; p=`cat /tmp/metawerx.pub`\""; echo; rm /tmp/metawerx.key; rm /tmp/metawerx.pub;
The output should look something like this:
Use this in Metawerx Mail Administrator as the DKIM Private Key: MIICXQIBALwxJQua+CjwtwBM0EN7VPTM0rLmE+edZBT7ttuXzntOcP3oXnxtjNH4Vl+6Xc2A+JvsBDPWp+IMV1YETTEsJEUqD+oLWRlFc4QtIjLaaCv8ekTrQoZijGQy7RzE7iRWpvlUsr/Y3X9cuUIJcBQIDAQABAoGABLa9A9T+a4PPOLuGoRG20cW0LXEC5Rz92XUYyqpmDiXHwQTSJ52AoxEZqiYlx+BvPQ0M9UzdKo0dN86GtPLXx9YMQOCB3PZKqkrb2JelnT3isKXJ8T2Xgd6wh68QKi+rDzSHiVvsLjIHqSZVpTGAzMAH4ToPAFkn7QKmeJuCi9UCQQDertukHQUROprl6bUu/k09Y/jMxRWRw8I8sBRmJ5VuZ1hl5E1hHNwXYYGmzc3ObMEvjafBqEbUd3iUIzXfEbSbAkEA3QCSBYl6msZGvsieYai0nVSUQOwtVBPBAmXNuOHoWisdY6weiT2jQwehNUPw8+jrAQSKrci2CprqWlyhoEAr3wJAIcf4/f6BBEoVsYcwuz5MzWFbHwVO7lv6HWbA0XZzztnSqTJnIrJUGR/roThbXlNVQzeEGXbDt/ufySlGRN7UvQJBAMnRY4e67EO7HY/MFRaJwaaLPnerNhm5kGBoJ13WryDojoYfACPELftgVE8YJEoZQcJEK4BX8iXtImYygUaeU3ECQQCSCHU/2ZOfsT550oYoACH26qwj4IZYoM6xyA8wnpVNZ4fMgEy7IEhRWnfxjYY2QVUXbjZ3AETbtC5srsy8kMhO Use this as the TXT record metawerx._domainkey in Metawerx DNS Editor: "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQTGuM5svLwxJQua+CjwtwBM0EN7VPTM0rLmE+edZBT7ttuXzntOcP3oXnxtjNH4Vl+6Xc2A+JvsBDPWp+IMV1YETTEsJEUqD+oLWRlFc4QtIjLaaCv8ekTrQoZijGQy7RzE7iRWpvlUsr/Y3X9cuUIJcBQIDAQAB"
Log in to SiteWinder and: