{"id":6341,"date":"2022-11-25T16:10:46","date_gmt":"2022-11-25T07:10:46","guid":{"rendered":"https:\/\/www.lancard.com\/blog\/?p=6341"},"modified":"2025-03-12T11:25:24","modified_gmt":"2025-03-12T02:25:24","slug":"centos9-roundcube","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2022\/11\/25\/centos9-roundcube\/","title":{"rendered":"CentOS Stream 9\u3067RoundCube\u306e\u7c21\u6613\u30c6\u30b9\u30c8\u74b0\u5883\u3092\u4f5c\u308b"},"content":{"rendered":"\n\u4ee5\u524d<a href=\"https:\/\/www.lancard.com\/blog\/2015\/07\/22\/roundcube%e7%94%a8%e3%81%abcentos%e3%81%aepostfixdovecot%e3%81%a7%e7%b0%a1%e5%8d%98%e3%81%aa%e3%83%86%e3%82%b9%e3%83%88%e7%92%b0%e5%a2%83%e3%82%92%e4%bd%9c%e3%82%8b\/\">CentOS6\u3067RoundCube\u306e\u30c6\u30b9\u30c8\u74b0\u5883<\/a>\u3092\u4f5c\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306fCentOS Stream 9\u3067\u3059\u3002\n\n\n\npostfix\u306bSMTP\u8a8d\u8a3c\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5165\u3063\u3066\u3044\u308b\u3089\u3057\u304f\u3001\u7121\u52b9\u306b\u3059\u308b\u4e8b\u3082\u8003\u3048\u307e\u3057\u305f\u304c\u8abf\u67fb\u304c\u5fc5\u8981\u305d\u3046\u306a\u306e\u3068\u3001\u305d\u308c\u3088\u308a\u3082SMTP\u8a8d\u8a3c\u3092\u3057\u305f\u65b9\u304c\u65e9\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3001\u8a2d\u5b9a\u3059\u308b\u4e8b\u306b\u3057\u307e\u3057\u305f\u3002\n\n\n\n<!--more-->\n\n\n\nSELinux\u306fpermissive\u306b\u3057\u3066\u8a66\u3057\u3066\u3044\u307e\u3059\u3002\n\n\n\n\n<h2 class=\"wp-block-heading\">Postfix\u3068Dovecot<\/h2>\n\n\n\n\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u6709\u52b9\u5316\u30fb\u8d77\u52d5\u3057\u307e\u3059\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>dnf -y install postfix dovecot\nsystemctl enable postfix dovecot\nsystemctl start postfix dovecot<\/code><\/pre>\n\n\n\n\n\u8a2d\u5b9a\u306f\u4ee5\u524d\u306b\u52a0\u3048\u3066SMTP\u8a8d\u8a3c\u7528\u306e\u8ffd\u52a0\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\n\n\n\n\n<h4 class=\"wp-block-heading\">\/etc\/dovecot\/conf.d\/10-master.conf<\/h4>\n\n\n\n\nservice auth\u5185\u306eunix_listener\u9805\u3092\u6709\u52b9\u306b\u3057\u3066\u3001user,group\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>service auth {\n unix_listener \/var\/spool\/postfix\/private\/auth {\n   mode = 0660\n   user = postfix\n   group = postfix        \n }\n}<\/code><\/pre>\n\n\n\n\n\n<h4 class=\"wp-block-heading\">\/etc\/dovecot\/conf.d\/10-auth.conf<\/h4>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>auth_mechanisms = plain login<\/code><\/pre>\n\n\n\n\n\n<h4 class=\"wp-block-heading\">\/etc\/dovecot\/conf.d\/10-mail.conf<\/h4>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>mail_location = maildir:~\/Maildir<\/code><\/pre>\n\n\n\n\n\n<h4 class=\"wp-block-heading\">\/etc\/postfix\/main.cf<\/h4>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code># myhostname\u3068home_mailbox\u3092\u7de8\u96c6\nmyhostname = localhost.localdomain\nhome_mailbox = Maildir\/\n\n# sasl\u8a8d\u8a3c\u95a2\u9023\u3092\u8ffd\u52a0\nsmtpd_sasl_type = dovecot\nsmtpd_sasl_path = private\/auth\nsmtpd_sasl_auth_enable = yes\nsmtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination<\/code><\/pre>\n\n\n\n\n\u8a2d\u5b9a\u5f8c\u306f\u30ea\u30ed\u30fc\u30c9\n\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl reload postfix dovecot<\/code><\/pre>\n\n\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\">RoundCube<\/h2>\n\n\n\n\ninstaller\/ \u7b49\u3067config\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002\u5148\u306bfirewall-cmd\u306780\u756a\u30dd\u30fc\u30c8\u3082\u7a7a\u3051\u3066\u304a\u304d\u307e\u3059\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --add-service http --permanent\nfirewall-cmd --reload<\/code><\/pre>\n\n\n\n\n\n<h4 class=\"wp-block-heading\">config\/config.inc.php<\/h4>\n\n\n\n\nIMAP, SMTP\u30b5\u30fc\u30d0\u3068\u3082\u306blocalhost.localdomain\u3092\u6307\u5b9a\u3057\u3066\u3001SMTP\u306f\u30dd\u30fc\u30c825\u3082\u6307\u5b9a\u3057\u307e\u3059\u3002<br>IMAP\u30dd\u30fc\u30c8\u306f\u5909\u66f4\u306e\u5fc5\u8981\u304c\u6709\u308a\u307e\u305b\u3093\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>$config&#91;'default_host'] = 'localhost.localdomain';\n$config&#91;'smtp_server'] = 'localhost.localdomain';\n$config&#91;'smtp_port'] = 25;<\/code><\/pre>\n\n\n\n\n\u9001\u53d7\u4fe1\u306b\u554f\u984c\u306a\u3044\u304b\u8a66\u3057\u307e\u3059\u3002installer\u5185\u3067\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u3082\u826f\u3044\u3057\u3001RoundCube\u3078\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u9001\u53d7\u4fe1\u3057\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002\n\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Submission\u30dd\u30fc\u30c8\u3067SMTP\u3092\u5229\u7528\u3059\u308b<\/h2>\n\n\n\n\n\u8ffd\u52a0\u3067SMTP\u306e\u30b5\u30d6\u30df\u30c3\u30b7\u30e7\u30f3\u30dd\u30fc\u30c8\u3092\u5229\u7528\u3057\u3066\u307f\u307e\u3059\u3002\u4f46\u3057TLS\u306f\u4f7f\u308f\u306a\u3044\u5f62\u3067\u3059\u3002\n\n\n\n\n<h4 class=\"wp-block-heading\">\/etc\/postfix\/master.cf<\/h4>\n\n\n\n\ntls\u95a2\u9023\u306f\u9762\u5012\u304c\u51fa\u306a\u3044\u3088\u3046\u5207\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u307e\u305f\u3001reject_sender_login_mismatch\u3082localhost\u3067\u306fNG\uff08Temporary lookup failure\uff09\u306b\u306a\u3063\u305f\u306e\u3067\u5207\u3063\u3066\u304a\u304d\u307e\u3059\u3002\n\n\n\n\n<pre class=\"wp-block-preformatted\">submission inet n - n - - smtpd\n# -o smtpd_tls_security_level=encrypt\n -o smtpd_sasl_auth_enable=yes\n -o smtpd_sasl_type=dovecot\n -o smtpd_sasl_path=private\/auth\n -o smtpd_sasl_security_options=noanonymous\n -o smtpd_sasl_local_domain=$myhostname\n -o smtpd_client_restrictions=permit_sasl_authenticated,reject\n -o smtpd_sender_login_maps=hash:\/etc\/postfix\/virtual\n# -o smtpd_sender_restrictions=reject_sender_login_mismatch\n -o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject\n<\/pre>\n\n\n\n\n\u203b\u6700\u5f8c\u306e\u884c\u304c\u6298\u308a\u8fd4\u3057\u3066\u898b\u3048\u307e\u3059\u304c\u3001-o smtpd_recipient_restrictions=&#8230;\u3068\u4e00\u884c\u3067\u3059\u3002<br>\n\n\n\n\n<ul class=\"wp-block-list\">\n<li>RoundCube\u306econfig.inc.php\u306esmtp_port\u3092587\u306b\u3057\u3066\u9001\u4fe1\u51fa\u6765\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/li>\n<\/ul>\n\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F6341&#038;t=CentOS%20Stream%209%E3%81%A7RoundCube%E3%81%AE%E7%B0%A1%E6%98%93%E3%83%86%E3%82%B9%E3%83%88%E7%92%B0%E5%A2%83%E3%82%92%E4%BD%9C%E3%82%8B&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F6341&#038;p&#091;images&#093;&#091;0&#093;=&#038;p&#091;title&#093;=CentOS%20Stream%209%E3%81%A7RoundCube%E3%81%AE%E7%B0%A1%E6%98%93%E3%83%86%E3%82%B9%E3%83%88%E7%92%B0%E5%A2%83%E3%82%92%E4%BD%9C%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"http:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F6341&#038;text=CentOS%20Stream%209%E3%81%A7RoundCube%E3%81%AE%E7%B0%A1%E6%98%93%E3%83%86%E3%82%B9%E3%83%88%E7%92%B0%E5%A2%83%E3%82%92%E4%BD%9C%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F6341&#038;title=CentOS%20Stream%209%E3%81%A7RoundCube%E3%81%AE%E7%B0%A1%E6%98%93%E3%83%86%E3%82%B9%E3%83%88%E7%92%B0%E5%A2%83%E3%82%92%E4%BD%9C%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&#038;v=3&#038;t=CentOS%20Stream%209%E3%81%A7RoundCube%E3%81%AE%E7%B0%A1%E6%98%93%E3%83%86%E3%82%B9%E3%83%88%E7%92%B0%E5%A2%83%E3%82%92%E4%BD%9C%E3%82%8B&#038;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F6341\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=CentOS%20Stream%209%E3%81%A7RoundCube%E3%81%AE%E7%B0%A1%E6%98%93%E3%83%86%E3%82%B9%E3%83%88%E7%92%B0%E5%A2%83%E3%82%92%E4%BD%9C%E3%82%8B&#038;body=%E3%82%B7%E3%82%A7%E3%82%A2%E3%81%99%E3%82%8B%EF%BC%9A:%20https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F6341\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524dCentOS6\u3067RoundCube\u306e\u30c6\u30b9\u30c8\u74b0\u5883\u3092\u4f5c\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306fCentOS Stream 9\u3067\u3059\u3002 postfix\u306bSMTP\u8a8d\u8a3c\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5165\u3063\u3066\u3044\u308b\u3089\u3057\u304f\u3001\u7121\u52b9\u306b\u3059\u308b\u4e8b\u3082\u8003\u3048\u307e\u3057\u305f\u304c\u8abf\u67fb\u304c\u5fc5\u8981\u305d\u3046\u306a\u306e\u3068 [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[136,210,211,140],"class_list":["post-6341","post","type-post","status-publish","format-standard","hentry","category-1","tag-centos","tag-dovecot","tag-postfix","tag-roundcube"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/6341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/comments?post=6341"}],"version-history":[{"count":42,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/6341\/revisions"}],"predecessor-version":[{"id":6383,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/6341\/revisions\/6383"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=6341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=6341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=6341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}