{"id":390,"date":"2010-12-01T18:48:00","date_gmt":"2010-12-01T09:48:00","guid":{"rendered":"http:\/\/www.asfit.net\/blog\/kan\/?p=390"},"modified":"2010-12-01T18:48:00","modified_gmt":"2010-12-01T09:48:00","slug":"dkim%e9%96%a2%e9%80%a3-%e7%b7%a8%e9%9b%86%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/www.asfit.net\/blog\/kan\/?p=390","title":{"rendered":"DKIM\u95a2\u9023 (\u7de8\u96c6\u4e2d)"},"content":{"rendered":"<p># apt-get install dkim-filter<br \/>\n# vi \/etc\/postfix\/main.cf (3\u884c\u8ffd\u52a0)<br \/>\n~~~<br \/>\nsmtpd_milters = inet:127.0.0.1:8891<br \/>\nnon_smtpd_milters = inet:127.0.0.1:8891<br \/>\nmilter_default_action = accept<br \/>\n# vi \/etc\/dkim-filer.conf<br \/>\nSyslog\t\t\tyes<br \/>\nUMask\t\t\t002<br \/>\nDomain\t\t\texample.net<br \/>\nInternalHosts\t\t\/etc\/mail\/hosts.list<br \/>\nSelector\t\t\talpha<br \/>\nMode\t\t\tsv<br \/>\nSubDomains\t\tyes<br \/>\nADSPDiscard\t\tno<br \/>\nKeyList\t\t\t\/etc\/mail\/dkimkey.list<br \/>\n# vi \/etc\/mail\/dkimkey.list<br \/>\n*@example.net:example.net:\/etc\/mail\/alpha<br \/>\n# vi \/etc\/mail\/hosts.list<br \/>\n127.0.0.1<br \/>\n192.168.1.0\/24<br \/>\n# dkim-genkey -b 1024 -d example.net -s alpha<br \/>\n# vi \/etc\/bind\/net\/example.net<br \/>\n# mv alpha.private \/etc\/mail\/alpha<br \/>\n# vi \/etc\/default\/dkim-filter<br \/>\n# Command-line options specified here will override the contents of<br \/>\n# \/etc\/dkim-filter.conf. See dkim-filter(8) for a complete list of options.<br \/>\n#DAEMON_OPTS=&#8221;&#8221;<br \/>\n#<br \/>\n# Uncomment to specify an alternate socket<br \/>\n# Note that setting this will override any Socket value in dkim-filter.conf<br \/>\n#SOCKET=&#8221;local:\/var\/run\/dkim-filter\/dkim-filter.sock&#8221; # Debian default<br \/>\n#SOCKET=&#8221;inet:54321&#8243; # listen on all interfaces on port 54321<br \/>\nSOCKET=&#8221;inet:8891@localhost&#8221; # Ubuntu default &#8211; listen on loopback on port 8891<br \/>\n#SOCKET=&#8221;inet:12345@192.0.2.1&#8243; # listen on 192.0.2.1 on port 12345<\/p>\n","protected":false},"excerpt":{"rendered":"<p># apt-get install dkim-filter # vi \/etc\/postfix\/main.cf (3\u884c\u8ffd\u52a0) ~~~ smtpd_milters = inet:127.0.0.1:8891 non_smt&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-390","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/posts\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=390"}],"version-history":[{"count":0,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/posts\/390\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}