{"id":3206,"date":"2024-04-29T11:29:24","date_gmt":"2024-04-29T11:29:24","guid":{"rendered":"https:\/\/knowledge.progist.net\/?p=3206"},"modified":"2024-04-29T11:29:25","modified_gmt":"2024-04-29T11:29:25","slug":"dkim-enabling-on-postfix-server","status":"publish","type":"post","link":"https:\/\/knowledge.progist.net\/index.php\/2024\/04\/29\/dkim-enabling-on-postfix-server\/","title":{"rendered":"DKIM enabling on Postfix Server"},"content":{"rendered":"\n<p><strong><code>#rpm -Uvh https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm<\/code><\/strong><\/p>\n\n\n\n<p>(Copy this repo file from local PC and install accordingly. Also check for proxy<br>connection whether enabled)<\/p>\n\n\n\n<p><strong>#yum <code>install <\/code>opendkim<\/strong><\/p>\n\n\n\n<p><strong><code>#yum install opendkim-tools<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#cd \/etc\/opendkim\/keys\/<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#ls<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#mkdir \u201cDomain_Name\u201d<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#cd \u201cDomain_Name\u201d\/<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#ls<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#opendkim-genkey -r -d \u201cDomain_Name\u201d -b 2048<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#chown opendkim:opendkim \/etc\/opendkim\/keys\/ -R<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#vim \/etc\/opendkim.conf<\/code><\/strong><\/p>\n\n\n\n<p>KeyTable<br>\/etc\/opendkim\/KeyTable<br>SigningTable refile:\/etc\/opendkim\/SigningTable<br>ExternalIgnoreList<br>refile:\/etc\/opendkim\/TrustedHosts<br>InternalHosts refile:\/etc\/opendkim\/TrustedHosts<br><br><\/p>\n\n\n\n<p><strong><code>#ls<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#vim \/etc\/opendkim\/KeyTable<\/code><\/strong><\/p>\n\n\n\n<p>default._domainkey.\u201dDomain_Name\u201d<br>\u201cDomain_Name\u201d:default:\/etc\/opendkim\/keys\/\u201dDomain_Name\u201d\/default.private<\/p>\n\n\n\n<p><strong><code>#vim \/etc\/opendkim\/SigningTable<\/code><\/strong><\/p>\n\n\n\n<p>*@\u201dDomain_Name\u201d default._domainkey.\u201dDomain_Name\u201d<br><br><\/p>\n\n\n\n<p><code>#<strong>vim \/etc\/opendkim\/TrustedHosts<\/strong><\/code><\/p>\n\n\n\n<p>127.0.0.1<br>10.X.X.X<br>*.\u201dDomain_Name\u201d<\/p>\n\n\n\n<p><strong><code>#vim \/etc\/postfix\/main.cf (Do all entries at the EOF)<\/code><\/strong><\/p>\n\n\n\n<p>transport_maps = hash:\/etc\/postfix\/transport<br>smtp_connect_timeout = 120s<br>smtp_sasl_password_maps = hash:\/etc\/postfix\/passwd<br>smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated<br>reject_unauth_destination<br>header_checks = regexp:\/etc\/postfix\/header_checks<\/p>\n\n\n\n<p>smtpd_milters = inet:127.0.0.1:8891<br>non_smtpd_milters = $smtpd_milters<br>milter_default_action = accept<\/p>\n\n\n\n<p><strong><code>#systemctl restart postfix.service<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#systemctl restart opendkim.service<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#systemctl status opendkim.service<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>#opendkim-testkey -d \u201cDomain_Name\u201d -s default -vv<\/code><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#rpm -Uvh https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm (Copy this repo file from local PC and install accordingly. Also check for proxyconnection whether enabled) #yum install opendkim #yum install opendkim-tools #cd \/etc\/opendkim\/keys\/ #ls #mkdir \u201cDomain_Name\u201d<\/p>\n<p><a href=\"https:\/\/knowledge.progist.net\/index.php\/2024\/04\/29\/dkim-enabling-on-postfix-server\/\" class=\"more-link\">Continue Reading<span class=\"screen-reader-text\">DKIM enabling on Postfix Server<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","om_disable_all_campaigns":false,"footnotes":""},"categories":[6,13],"tags":[39,41,104],"class_list":["post-3206","post","type-post","status-publish","format-standard","hentry","category-dkim","category-prodmarc","tag-dkim","tag-dkim-configuration","tag-prodmarc"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/posts\/3206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/comments?post=3206"}],"version-history":[{"count":1,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/posts\/3206\/revisions"}],"predecessor-version":[{"id":3207,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/posts\/3206\/revisions\/3207"}],"wp:attachment":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/media?parent=3206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/categories?post=3206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/tags?post=3206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}