Created
March 25, 2019 00:56
-
-
Save pbkwee/e11e7d13c8d6a6894794349948f2dc80 to your computer and use it in GitHub Desktop.
dkim setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install opendkim | |
/etc/opendkim.conf use settings like: | |
Domain domainname.com | |
Selector mail | |
# sign, no need to verify | |
Mode s | |
# rsa private key | |
KeyFile /etc/ssl/private/dkimproxy.key | |
Socket inet:8892@localhost | |
Add to /etc/postfix/main.cf: | |
smtpd_milters=inet:localhost:8892 | |
Restart the two services. | |
systemctl restart opendkim | |
systemctl restart postfix | |
Relies on a dns entry like ('mail' from the selector above): | |
dig +short -t txt mail._domainkey.domainname.com | |
"k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwKiUwJVgzVd7oW9bTHwzmT2d3HNSlhbXYGKmVbDq7/Uv5N8hw6203vf38qvTJjBvjmVoySq00W87t5TtUUT47Sh1AC9Ng9mmwalr3ZlHS+IFNlBwursBq+/aI2p6f8TbhIvhckaS5UWBrtjX6Stdlft0zpTf2Pe5fBa02AZUYuQIDAQAB" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment