{"id":1067,"date":"2026-02-23T23:46:35","date_gmt":"2026-02-23T14:46:35","guid":{"rendered":"http:\/\/www.igoni.kr\/?p=1067"},"modified":"2026-03-12T00:17:31","modified_gmt":"2026-03-11T15:17:31","slug":"centos%ec%97%90%ec%84%9c-postfix%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.igoni.kr\/?p=1067","title":{"rendered":"Centos\uc5d0\uc11c POSTFIX\uc124\uce58\ud558\uae30"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\ubaa9 \ucc28<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"\ubaa9\ucc28 \ud1a0\uae00\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/www.igoni.kr\/?p=1067\/#%EC%86%8C%EA%B0%9C\" >\uc18c\uac1c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/www.igoni.kr\/?p=1067\/#%EC%9E%91%EC%97%85%EC%A0%88%EC%B0%A8\" >\uc791\uc5c5\uc808\ucc28<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"%EC%86%8C%EA%B0%9C\"><\/span>\uc18c\uac1c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p id=\"bkmrk-centos6%EC%9D%B4%ED%9B%84%EB%B6%80%ED%84%B0%EB%8A%94-%EA%B8%B0%EB%B3%B8smtp%EA%B0%80\">Centos6\uc774\ud6c4\ubd80\ud130\ub294 \uae30\ubcf8SMTP\uac00 Sendmail\uc5d0\uc11c postfix\ub85c \ubcc0\uacbd\ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<colgroup>\n<col style=\"width: 99.881%;\" \/><\/colgroup>\n<tbody>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1327\" src=\"http:\/\/www.igoni.kr\/wp-content\/uploads\/2026\/02\/0ec43fa8-4b9e-4356-ae61-db3af0f4b8c9.png\" alt=\"\" width=\"614\" height=\"614\" srcset=\"http:\/\/www.igoni.kr\/wp-content\/uploads\/2026\/02\/0ec43fa8-4b9e-4356-ae61-db3af0f4b8c9.png 614w, http:\/\/www.igoni.kr\/wp-content\/uploads\/2026\/02\/0ec43fa8-4b9e-4356-ae61-db3af0f4b8c9-300x300.png 300w, http:\/\/www.igoni.kr\/wp-content\/uploads\/2026\/02\/0ec43fa8-4b9e-4356-ae61-db3af0f4b8c9-150x150.png 150w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/td>\n<\/tr>\n<tr>\n<td>perplexity\uc5d0\uc11c \uc0dd\uc131\ud55c AI\uc774\ubbf8\uc9c0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"%EC%9E%91%EC%97%85%EC%A0%88%EC%B0%A8\"><\/span>\uc791\uc5c5\uc808\ucc28<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol id=\"bkmrk-sendmail-%ED%8C%A8%ED%82%A4%EC%A7%80-%EC%82%AD%EC%A0%9C-%24%3E-y\">\n<li>Sendmail \ud328\ud0a4\uc9c0 \uc0ad\uc81c\n<pre><code class=\"language-shell\">$&gt; yum erase sendmail -y<\/code><\/pre>\n<\/li>\n<li>Postfix \ud328\ud0a4\uc9c0 \uc124\uce58\n<pre><code class=\"language-shell\">$&gt; yum install postfix -y<\/code><\/pre>\n<\/li>\n<li>Postfix \uc124\uc815\n<div>\n<div>\n<div class=\"box\">\n<div class=\"code\">\n<div class=\"linenoswrapper\">\n<div class=\"linenos\"><\/div>\n<div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<pre><code class=\"language-shell\">vi \/etc\/postfix\/main.cf\r\n\r\nmydomain = localhost (\ubc1c\uc1a1 \ud638\uc2a4\ud2b8\ub124\uc784 \uae30\uc7ac)\r\nmynetworks_style = host (\ub85c\uceec\uc5d0\uc11c\ub9cc \ubc1c\uc1a1\uac00\ub2a5 \uc124\uc815)\r\nmynetworks = 127.0.0.1, 192.168.0\/24 (\ubc1c\uc1a1\ud560 \ub300\uc5ed\uae30\uc7ac)\r\nsmtpd_sasl_auth_enable = yes (\uc778\uc99d\ub77c\uc774\ube0c\ub7ec\ub9ac \uc5f0\ub3d9)\r\ninet_interfaces = $myhostname (open relay\ucc28\ub2e8, \uc124\uc815 \ud574\uc81c\uc2dc all \uc73c\ub85c \ubcc0\uacbd)\r\npostfix,\uc778\uc99d\ub77c\uc774\ube0c\ub7ec\ub9ac \uc5f0\ub3d9<\/code><\/pre>\n<div>\n<div>\n<div class=\"box\">\n<div class=\"code\">\n<div class=\"linenoswrapper\">\n<div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<pre><code class=\"language-shell\">$&gt; vi \/usr\/lib\/sasl2\/smtpd.conf\r\npwcheck_method: saslauthd\r\nchkconfig postfix on\r\nchkconfig saslauthd on\r\n\/etc\/init.d\/postfix start\r\n\/etc\/init.d\/saslauthd start<\/code><\/pre>\n<div>\n<div class=\"box\">\n<div class=\"code\">\n<div class=\"linenoswrapper\">\n<div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<li>\uae30\ubcf8 Trouble Shooting\n<div>\n<ol>\n<li>\ub514\ub809\ud1a0\ub9ac \uad6c\uc870\n<ol start=\"1\">\n<li>postfix \ud30c\uc77c \ub514\ub809\ud1a0\ub9ac : \/var\/spool\/postfix<\/li>\n<li>incoming : \ubaa8\ub4e0 \uba54\uc2dc\uc9c0<\/li>\n<li>active : \ubc30\ub2ec \uc900\ube44 \uc911\uc778 \uba54\uc2dc\uc9c0<\/li>\n<li>deferred : \uc7ac\uc804\uc1a1 \uc2dc\ub3c4\ud558\ub294 \uba54\uc2dc\uc9c0<\/li>\n<li>corrupt : \ubc30\ub2ec\ud560 \uc218 \uc5c6\ub294 \uba54\uc2dc\uc9c0<\/li>\n<\/ol>\n<\/li>\n<li>\ub370\uc774\ud130 \uad00\ub9ac\n<ol start=\"1\">\n<li>\uba54\uc77c \ubc1c\uc1a1 \ub85c\uadf8\ub294 sendmail \uacfc \ub3d9\uc77c\ud558\uac8c \/var\/log\/maillog\uc5d0 \uae30\uc7ac\ub428<\/li>\n<li>\uba54\uc77c \ub370\uc774\ud130\ub294 \/var\/spool\/mail\/\uacc4\uc815\uba85<\/li>\n<\/ol>\n<\/li>\n<li>Queue\uad00\ub9ac\n<pre><code class=\"language-shell\">[root@localhost \/]# mailq \u2013&gt; Queue\uc5d0 \uc313\uc778 \uba54\uc77c \ud655\uc778\r\n[root@localhost \/]# postfix flush \u2013&gt; Queue \uc804\uccb4 \uc9c0\uc6b0\uae30\r\n[root@localhost \/]# postsuper -d ALL deferred \u2013&gt; Queue\uba54\uc77c \uc911 Deferred(\uc9c0\uc5f0\ubc1c\uc1a1\uba54\uc77c) \ub9cc \uc0ad\uc81c\r\n<\/code><\/pre>\n<div>\n<div>\n<div class=\"box\">\n<div class=\"code\">\n<div class=\"linenoswrapper\">\n<div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<ol start=\"1\">\n<li>\uac00\uc0c1 \ub3c4\uba54\uc778 \uc138\ud305\n<pre><code class=\"language-shell\">$&gt; vi \/etc\/postfix\/main.cf\r\nvirtual_alias_domain = test.com example.com (\ub4f1\ub85d\ud560 \ud638\uc2a4\ud2b8\uba85 \uae30\uc7ac)<\/code><\/pre>\n<\/li>\n<li>Alias \uc124\uc815\n<pre><code class=\"language-shell\">$&gt; vi \/etc\/postfix\/main.cf\r\nvirtual_alias_maps = hash:\/etc\/postfix\/virtual<\/code><\/pre>\n<div>\n<div>\n<div class=\"box\">\n<div class=\"code\">\n<div class=\"linenoswrapper\">\n<div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<pre><code class=\"language-shell\">$&gt; vi \/etc\/postfix\/virtual\r\npostmaster@example.com postmaster\r\ninfo@example.com joe\r\nsales@example.com jane\r\n(\uba54\uc77c\uc8fc\uc18c) (\uc2e4\uacc4\uc815\uba85)<\/code><\/pre>\n<div>\n<div class=\"box\">\n<div class=\"code\">\n<div class=\"linenoswrapper\">\n<div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<li>\uc801\uc6a9\n<pre><code class=\"language-shell\">[root@localhost \/]# postmap \/etc\/postfix\/virtual<\/code><\/pre>\n<\/li>\n<\/ol>\n<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\uc18c\uac1c Centos6\uc774\ud6c4\ubd80\ud130\ub294 \uae30\ubcf8SMTP\uac00 Sendmail\uc5d0\uc11c postfix\ub85c \ubcc0\uacbd\ub418\uc5c8\uc2b5\ub2c8\ub2e4. perplexity\uc5d0\uc11c \uc0dd\uc131\ud55c AI\uc774\ubbf8\uc9c0 \uc791\uc5c5\uc808\ucc28 Sendmail \ud328\ud0a4\uc9c0 \uc0ad\uc81c $&gt; yum erase&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1327,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[301],"tags":[305,307],"class_list":["post-1067","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-smtp-","tag-centoss","tag-postfix"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/posts\/1067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1067"}],"version-history":[{"count":3,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/posts\/1067\/revisions"}],"predecessor-version":[{"id":1329,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/posts\/1067\/revisions\/1329"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/media\/1327"}],"wp:attachment":[{"href":"http:\/\/www.igoni.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1067"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}