{"id":220,"date":"2024-02-29T18:22:49","date_gmt":"2024-02-29T18:22:49","guid":{"rendered":"http:\/\/www.freelifemakers.org\/wordpress\/?p=220"},"modified":"2024-03-11T00:41:06","modified_gmt":"2024-03-11T00:41:06","slug":"sendmail-dovecat-sendmaildevocat-install-and-troubleshooting","status":"publish","type":"post","link":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/2024\/02\/29\/sendmail-dovecat-sendmaildevocat-install-and-troubleshooting\/","title":{"rendered":"Sendmail , dovecot \uc124\uce58 \ubc0f \ud2b8\ub7ec\ube14\uc288\ud305(Sendmail,dovecot install and troubleshooting)"},"content":{"rendered":"\n<p><strong>1)\uae30\ubcf8 \uc124\uce58<\/strong><br>\uc0cc\ub4dc\uba54\uc77c\uc124\uce58(instatll sendmail) &#8211; SMTP<br>sudo apt-get update<br>sudo apt-get install<\/p>\n\n\n\n<p>dovecot\uc124\uce58(install dovecot) &#8211; POP3 &amp; IMAP<br>sudo apt-get -y install dovecot-pop3d<\/p>\n\n\n\n<p>\uc0cc\ub4dc\uba54\uc77c \uc7ac\uc124\uce58(Reinstall Sandmail)<br>sudo apt-get install &#8211;reinstall sendmail<\/p>\n\n\n\n<p>\uc0cc\ub4dc\uba54\uc77c \uc0ad\uc81c(uninstall sendmail)<br>sudo apt-get purge sendmail<\/p>\n\n\n\n<p>\ub514\ud32c\ub358\uc2dc \uc0ad\uc81c(uninstall dependancy)<br>sudo apt-get autoremove<\/p>\n\n\n\n<p>\uc0cc\ub4dc\uba54\uc77c\uba85\ub839\uc5b4 \uc124\uce58\uacbd\ub85cSendmail command installation path<br>(\uc0cc\ub4dc\uba54\uc77c\uc124\uce58\ud655\uc778\/Check whether Sendmail is installed)<br>which sendmail<\/p>\n\n\n\n<p>\uc2dc\uc2a4\ud15c \ubd80\ud305\uc2dc \uc790\ub3d9\uc2e4\ud589 \ub4f1\ub85dRegister automatic execution when system boots<br>sudo systemctl enable sendmail <br><br>\uc2dc\uc2a4\ud15c \ubd80\ud305\uc2dc \uc790\ub3d9\uc2e4\ud589 \uc11c\ube44\uc2a4 \uc0ad\uc81cDeleting services that automatically run when the system boots<br>sudo systemctl disable sendmail<\/p>\n\n\n\n<p>\uc2dc\uc2a4\ud15c\ub85c\uadf8\ubcf4\uae30View system log<br>journalctl -xe<br><br>access\ud30c\uc77c \uc218\uc815 \ud6c4 DB\uc5c5\ub370\uc774\ud2b8Update DB after modifying access file<br>makemap hash \/etc\/mail\/access &lt; \/etc\/mail\/access<br><br>2)\ud2b8\ub7ec\ube14\uc288\ud305(troubleshooting)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">1. <strong>#sudo sendmailconfig \uc2e4\ud589\uc2dc \ub2e4\uc74c \uba54\uc138\uc9c0\uc640\ud568\uaed8 \uc624\ub958\ubc1c\uc0dd\uc2dc\n(\/etc\/mail\/m4 \ub514\ub809\ud1a0\ub9ac\uc5d0 m4\ud30c\uc77c\uc774 \uc790\ub3d9\uc73c\ub85c \uc0dd\uc131\ub418\uc9c0 \uc54a\ub294 \uacbd\uc6b0)<\/strong>\n<strong>When running #sudo sendmailconfig, an error occurs with the following message\n(If the m4 file is not automatically created in the \/etc\/mail\/m4 directory)<\/strong>\n\nReload the running sendmail now with the new configuration? [Y] y\nReloading sendmail \u2026\nmake: *** No rule to make target '\/etc\/mail\/m4\/dialup.m4', needed by '\/etc\/mail\/databases'. Stop.\n\n<strong>\ub2e4\uc74c \uba85\ub839\uc5b4 \uc2e4\ud589<\/strong>\n(<strong>Run the following command<\/strong>)\n<strong>\n#cd \/etc\/mail\n#cp sendmail.mc sendmail.mc.backup  # Backup existing sendmail.mc file\n#m4 \/usr\/share\/sendmail\/cf\/m4\/cf.m4 sendmail.mc &gt; sendmail.cf\n#sudo sendmailconfig<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2. <strong>\uc0cc\ub4dc\uba54\uc77c \ud504\ub85c\uc138\uc2a4\uac00 \ud56d\uc0c1 \uc2e4\ud589\ub418\uc5b4 \uc788\uc5b4\uc11c \uc0cc\ub4dc\uba54\uc77c\uc744 \uc7ac\uc2dc\uc791 \ud560 \uc218 \uc5c6\ub294 \uacbd\uc6b0<\/strong>\n<strong>If you cannot restart sendmail because the sendmail process is always running.<\/strong>\n\n\n<strong>\uc0cc\ub4dc\uba54\uc77c \ud504\ub85c\uc138\uc2a4 \ud655\uc778(Check sendmail process<\/strong>)\n\n<strong># ps aux | grep sendmail<\/strong>\n\nroot    <strong> 3743899<\/strong>  0.0  0.4  22912  4560 ?        Ss   20:20   0:00 sendmail: MTA: accepting connections\nroot     <strong>3743900<\/strong>  0.0  0.4  22812  4072 ?        S    20:20   0:00 sendmail: MTA: .\/41NMi0qL3650831 alt2.gmail-smtp-in.l.google.com.: user open\nroot     3743984  0.0  0.0   5196   720 pts\/0    S+   20:25   0:00 grep --color=auto sendmail\n\n\n\n<strong>\ud504\ub85c\uc138\uc2a4 \uc8fd\uc774\uae30(kill process)<\/strong>\n\n<strong>#kill 3743899\n#kill 3743900<\/strong><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1)\uae30\ubcf8 \uc124\uce58\uc0cc\ub4dc\uba54\uc77c\uc124\uce58(instatll sendmail) &#8211; SMTPsudo apt-get updatesudo apt-get install dovecot\uc124\uce58(install dovecot) &#8211; POP3 &amp; IMAPsudo apt-get -y install dovecot-pop3d \uc0cc\ub4dc\uba54\uc77c \uc7ac\uc124\uce58(Reinstall Sandmail)sudo apt-get install &#8211;reinstall sendmail \uc0cc\ub4dc\uba54\uc77c \uc0ad\uc81c(uninstall sendmail)sudo apt-get purge sendmail \ub514\ud32c\ub358\uc2dc \uc0ad\uc81c(uninstall dependancy)sudo apt-get autoremove \uc0cc\ub4dc\uba54\uc77c\uba85\ub839\uc5b4 \uc124\uce58\uacbd\ub85cSendmail command installation path(\uc0cc\ub4dc\uba54\uc77c\uc124\uce58\ud655\uc778\/Check whether Sendmail is installed)which sendmail \uc2dc\uc2a4\ud15c \ubd80\ud305\uc2dc \uc790\ub3d9\uc2e4\ud589 \ub4f1\ub85dRegister automatic execution when system [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-linux","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":9,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":312,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions\/312"}],"wp:attachment":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}