{"id":248,"date":"2022-04-01T16:33:02","date_gmt":"2022-04-01T09:33:02","guid":{"rendered":"http:\/\/congdong.longvan.net\/?p=248"},"modified":"2023-07-25T13:55:10","modified_gmt":"2023-07-25T06:55:10","slug":"huong-dan-cau-hinh-dkim-tren-directadmin","status":"publish","type":"post","link":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-dkim-tren-directadmin\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh DKIM tr\u00ean Directadmin"},"content":{"rendered":"<div>\n<p>\u0110\u1ec3 c\u1ea5u h\u00ecnh DKIM, DirectAdmin y\u00eau c\u1ea7u EXIM version cao h\u01a1n 4.70, do v\u1eady c\u1ea7n ki\u1ec3m tra phi\u1ec3n b\u1ea3n EXIM hi\u1ec7n t\u1ea1i c\u00f3 h\u1ed7 tr\u1ee3 DKIM hay kh\u00f4ng. Th\u1ef1c hi\u1ec7n nh\u01b0 sau:<\/p>\n<p>SSH v\u00e0o server DirectAdmin ch\u1ea1y l\u1ec7nh b\u00ean d\u01b0\u1edbi:<\/p>\n<p><em># \/usr\/sbin\/exim -bV | grep &#8216;Support for&#8217;<\/em><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/02\/image-1634202182959.png\" alt=\"image-1634202182959.png\" \/><\/p>\n<p>Tr\u01b0\u1eddng h\u1ee3p n\u1ebfu k\u1ebft qu\u1ea3 xu\u1ea5t ra c\u00f3 dkim ngh\u0129a l\u00e0 c\u00f3 h\u1ed7 tr\u1ee3, tr\u01b0\u1eddng h\u1ee3p n\u1ebfu kh\u00f4ng c\u00f3 th\u00ec build l\u1ea1i exim v\u00e0 check l\u1ea1i th\u1eed<\/p>\n<ol>\n<li><strong>B\u01b0\u1edbc 1: B\u1eadt t\u00ednh n\u0103ng dkim trong DA<\/strong>\n<ul>\n<li>M\u1edf file directadmin.conf b\u1eb1ng l\u1ec7nh vi:<br \/>\n<em># vi \/usr\/local\/directadmin\/conf\/directadmin.conf<\/em><br \/>\nCh\u1ec9nh d\u00f2ng exim=1 v\u00e0 l\u01b0u l\u1ea1i fileho\u1eb7c ch\u1ea1y l\u1ec7nh<br \/>\n<em>echo &#8220;dkim=1&#8221; &gt;&gt; \/usr\/local\/directadmin\/conf\/directadmin.conf<\/em><\/li>\n<li>Sau \u0111\u00f3 restart l\u1ea1i service DA<br \/>\n<em><em># systemctl restart directadmin<\/em><\/em><\/li>\n<\/ul>\n<\/li>\n<li><strong>B\u01b0\u1edbc 2: Th\u00eam dkim v\u00e0o exim<\/strong>\n<ul>\n<li>T\u1ea3i file c\u1ea5u h\u00ecnh dkim:<br \/>\n<em># cd \/etc<\/em><br \/>\n<em># wget -O exim.dkim.conf <\/em><em>http:\/\/files.directadmin.com\/services\/exim.dkim.conf<\/em><\/li>\n<li>M\u1edf file c\u1ea5u h\u00ecnh exim v\u1eeba download v\u1ec1:<br \/>\n<em># vi \/etc\/exim.conf<br \/>\n<\/em>T\u00ecm \u0111\u1ebfn \u0111o\u1ea1n<br \/>\n<em>remote_smtp:<br \/>\n<\/em><em>driver = smtp<br \/>\n<\/em>v\u00e0 th\u00eam d\u00f2ng <em>.include_if_exists \/etc\/exim.dkim.conf<br \/>\n<\/em> <img decoding=\"async\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/04\/image2021-9-1320163A283A26.png\" \/><\/li>\n<li>Kh\u1edfi \u0111\u1ed9ng l\u1ea1i exim:<br \/>\n<em><em># systemctl restart exim<\/em><\/em><\/li>\n<\/ul>\n<\/li>\n<li><strong>B\u01b0\u1edbc 3: K\u00edch ho\u1ea1t b\u1ea3n ghi dkim cho domain: <\/strong>sau khi ho\u00e0n th\u00e0nh 2 b\u01b0\u1edbc tr\u00ean th\u00ec dkim s\u1ebd \u0111\u01b0\u1ee3c t\u1ea1o t\u1ef1 \u0111\u1ed9ng cho c\u00e1c domain m\u1edbi t\u1ea1o, c\u00f2n v\u1edbi nh\u1eefng domain c\u0169 mu\u1ed1n k\u00edch ho\u1ea1t dkim th\u00ec thao t\u00e1c th\u00eam c\u00e1c b\u01b0\u1edbc sau:\n<ul>\n<li>T\u1ea1o DKIM cho 1 domain b\u1ea5t k\u00ec ch\u1ea1y l\u1ec7nh:<br \/>\n<em><em># \/usr\/local\/directadmin\/scripts\/dkim_create.sh t\u00ean_domain<\/em><\/em><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/04\/image2021-9-1320163A383A15.png\" \/><\/li>\n<li>T\u1ea1o DKIM cho to\u00e0n b\u1ed9 domain \u0111ang c\u00f3 tr\u00ean server:<br \/>\n<em><em># echo &#8220;action=rewrite&amp;value=dkim&#8221; &gt;&gt; \/usr\/local\/directadmin\/data\/task.queue<\/em><\/em><\/li>\n<\/ul>\n<\/li>\n<li><strong>B\u01b0\u1edbc 4: C\u1ea5u h\u00ecnh b\u1ea3n ghi tr\u00ean trang qu\u1ea3n l\u00ed t\u00ean mi\u1ec1n:<\/strong>\n<ul>\n<li>L\u00ean trang qu\u1ea3n l\u00ed DA v\u00e0o ph\u1ea7n User Level -&gt;\u00a0 DNS Management ki\u1ec3m tra l\u1ea1i DKIM<br \/>\n<img decoding=\"async\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/02\/image-1634203018092.png\" alt=\"image-1634203018092.png\" \/><\/li>\n<li>V\u1edbi nh\u1eefng domain ch\u1ea1y chung h\u1ec7 th\u1ed1ng dns tr\u00ean server th\u00ec kh\u00f4ng c\u1ea7n thao t\u00e1c g\u00ec th\u00eam.<\/li>\n<li>V\u1edbi domain ch\u1ea1y h\u1ec7 th\u1ed1ng dns ri\u00eang ti\u1ebfn h\u00e0nh tr\u1ecf th\u00eam b\u1ea3n ghi h\u1ec7 y nh\u01b0 dns dkim \u1edf DA.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0110\u1ec3 c\u1ea5u h\u00ecnh DKIM, DirectAdmin y\u00eau c\u1ea7u EXIM version cao h\u01a1n 4.70, do v\u1eady c\u1ea7n ki\u1ec3m tra phi\u1ec3n b\u1ea3n EXIM hi\u1ec7n t\u1ea1i c\u00f3 h\u1ed7 tr\u1ee3 DKIM hay kh\u00f4ng. Th\u1ef1c hi\u1ec7n nh\u01b0 sau: SSH v\u00e0o server DirectAdmin ch\u1ea1y l\u1ec7nh b\u00ean d\u01b0\u1edbi: # \/usr\/sbin\/exim -bV | grep &#8216;Support for&#8217; Tr\u01b0\u1eddng h\u1ee3p n\u1ebfu k\u1ebft qu\u1ea3 xu\u1ea5t ra c\u00f3 [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_oasis_is_in_workflow":0,"_oasis_original":0,"footnotes":""},"categories":[28],"tags":[],"class_list":["post-248","post","type-post","status-publish","format-standard","hentry","category-directadmin"],"_links":{"self":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/comments?post=248"}],"version-history":[{"count":3,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/248\/revisions"}],"predecessor-version":[{"id":2801,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/248\/revisions\/2801"}],"wp:attachment":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/media?parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/categories?post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/tags?post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}