dkim설정을 할 때 domain.zone파일에 공개키를 추가해야 하는데 이 방법을 잘 모르겠다.
How to Setup DomainKeys Identified Mail (DKIM) with Postfix and Ubuntu Server
default._domainkey IN TXT "v=DKIM1; g=*; k=rsa; p=000000000EBAQUAA4GNADCBiQKXXXXXXXX..." ; ----- DKIM default for domain.tld
Creating DKIM TXT Records in Linux/UNIX BIND
https://www.unifiedemail.net/Support/KB/DomainKeys-Identified-Mail-(DKIM)-Setup-Linux-UNIX-BIND/
Add a new "Text (TXT)" resource record, enter the following:
Record name: (DKIM Selector)._domainkey.yourdomain.com.
Example: ue201009._domainkey.yourdomain.com.
Text: (This should be the value of your DKIM Public Key Record).
Example: "v=DKIM1; p=MIGfMA0GCSqGSIb4DQ(.....)z2nJSPOxvGGznkcY25w5lIYpxpVwZ/IwIDAQAB;"
open-DKIM 설치
https://www.enteroa.com/2016/05/19/open-dkim-%EC%84%A4%EC%B9%98/
@ IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDj0y2e92Mkp4f1DBvBOQXgGCaCfEBKsgJ7Jh4NBNtKQevMq3nLGH0RQUuo5pGKMx+p6eTNJwueh+BN2svHmQTVGfHSNk8qWg2r8Yvfycf2ijs3Mmt126yKILo0nywv3d2z2UX7JWNjPOKxcRQe4u9wtDI+o+w5uF7TjzbidZnhowIDAQAB"
https://philio.me/setting-up-dkim-with-sendmail-on-ubuntu-14-04/
How to install and integrate DKIM with OpenDKIM and Postfix on a CentOS 6 VPS
assuming the domain in question is ‘mydomain.com’ and server’s hostname is set to ‘host.mydomain.com’
finally, edit your mydomain.com DNS zone and add the TXT record from /etc/opendkim/keys/mydomain.com/default.txt
default._domainkey IN TXT ( "v=DKIM1; k=rsa; "
"p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDApHRr7ZmXRaAB+RQRbP4VdMwIrIHIP18KFtXRsv/xpWc0Gix6ZXN13fcG03KNGKZo2PY+csPkGC5quDnH5V0JEhDZ78KcDWFsU6u4fr9ktVAdt6P7jWXjcyqdHOZ8+YN4cAeU4lRFNgQvdupIcByYwzPYMgBFHfJm9014HvRqhwIDAQAB" ) ; ----- DKIM key default for mydomain.com
잘못설정하면 새로 시작할 수 없다고 에러가 난다.
근데 왜 에러가 없는데도 공개키를 읽지 못하는 거지.
'차근차근 > 이것저것' 카테고리의 다른 글
centOS sendmail에서 gmail로 발송이 안됨. 11 - gmail을 통해서 전송 (2) | 2017.01.19 |
---|---|
centOS sendmail에서 gmail로 발송이 안됨. 10 - 포기 (0) | 2017.01.17 |
centOS sendmail에서 gmail로 발송이 안됨. 8 (0) | 2017.01.11 |
centOS sendmail에서 gmail로 발송이 안됨. 7 - 다시 (0) | 2017.01.09 |
centOS sendmail에서 gmail로 발송이 안됨. 6 - 다시 안감.. (0) | 2017.01.06 |