{"id":500,"date":"2023-04-23T21:58:46","date_gmt":"2023-04-23T12:58:46","guid":{"rendered":"https:\/\/intinfinity.com\/?p=500"},"modified":"2023-04-23T21:58:46","modified_gmt":"2023-04-23T12:58:46","slug":"openwrt%e4%b8%8a%e3%81%aedocker%e3%81%a7docker-mailserver%e3%82%92%e5%8b%95%e3%81%8b%e3%81%99","status":"publish","type":"post","link":"https:\/\/intinfinity.com\/index.php\/archives\/500","title":{"rendered":"OpenWRT\u4e0a\u306eDocker\u3067docker-mailserver\u3092\u52d5\u304b\u3059"},"content":{"rendered":"<h2>\u524d\u66f8\u304d<\/h2>\n<p>\u5f0aLAN\u5185\u3067\u30b0\u30ed\u30fc\u30d0\u30eb\u304b\u3089\u306eIPv4\u7740\u4fe1\u63a5\u7d9a\u304c\u5fc5\u8981\u306a\u552f\u4e00\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3002IPv4\u30c7\u30d5\u30a9\u30eb\u30c8\u30eb\u30fc\u30c8\u3068\u7740\u4fe1\u63a5\u7d9a\u53ef\u80fd\u306a\u30b0\u30ed\u30fc\u30d0\u30ebIPv4\u306f\u5225\u306e\u305f\u3081\u3001PBR\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>LAN\u5185\u3067\u306f\u306a\u304f\u3001\u30eb\u30fc\u30bf\u30fc\u3067\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u52d5\u304b\u3057\u3061\u3083\u3048\u3070IPv4\u5468\u308a\u306e\u3081\u3093\u3069\u304f\u3055\u3055\u3092\u89e3\u6d88\u3067\u304d\u308b\u306e\u3067\u3001\u3084\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<h2>\u524d\u63d0<\/h2>\n<h3>\u8981\u6c42\u30b9\u30da\u30c3\u30af(\u79c1\u306e\u74b0\u5883\u3067\u306e\u5b9f\u6e2c)<\/h3>\n<ul>\n<li>RAM: 1GB (\u6700\u4f4e512MB)<\/li>\n<li>\u30b9\u30c8\u30ec\u30fc\u30b8: 1.5GB\u4ee5\u4e0a(+\u30e1\u30fc\u30eb\u306e\u4fdd\u5b58\u9818\u57df)<\/li>\n<\/ul>\n<h3>\u74b0\u5883<\/h3>\n<ul>\n<li>FriendlyElec NanoPi R2S<\/li>\n<li>MicroSD 4GB<\/li>\n<li>OpenWrt 22.03.4 ext4\u7248<\/li>\n<li>root\u9818\u57df\u3092\u62e1\u5f35\u3057\u30664GB\u3044\u3063\u3071\u3044\u307e\u3067\u4f7f\u7528\u3067\u304d\u308b(\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u64cd\u4f5c\u6e08\u307f)<\/li>\n<\/ul>\n<p>root\u306b\u4f59\u88d5\u304c\u306a\u3044\u5834\u5408\u306f\u3001\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u3064\u3051\u3066\u3044\u3044\u611f\u3058\u306b\u30d1\u30b9\u3092\u7ba1\u7406\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u79c1\u306e\u74b0\u5883\u3067\u306froot\u306b\u4f59\u88d5\u304c\u3042\u308b\u306e\u3067\u3001\u5168\u90e8\u3053\u306e\u4e0b\u306b\u5165\u308c\u307e\u3059\u3002<\/p>\n<h3>\u6761\u4ef6<\/h3>\n<ul>\n<li>MyDNS.jp \u3067\u53d6\u5f97\u53ef\u80fd\u306a\u7121\u6599\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3092\u4f7f\u3046\n<ul>\n<li>MX\u30ec\u30b3\u30fc\u30c9\u3092\u3044\u3044\u611f\u3058\u306b\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u697d\u3061\u3093<\/li>\n<\/ul>\n<\/li>\n<li>TLS\u3092\u4f7f\u7528\u53ef\u80fd\u306b\u3059\u308b<\/li>\n<li>\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u5185\u306b\u306f\u30e1\u30fc\u30eb\u3092\u6b8b\u3055\u306a\u3044\n<ul>\n<li>\u30e1\u30fc\u30eb\u306fPOP3S\u3067Gmail\u7d4c\u7531\u3067\u53d6\u5f97\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u5c0e\u5165<\/h2>\n<h3>\u8a3c\u660e\u66f8\u306e\u53d6\u5f97<\/h3>\n<p>acme\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u307e\u3059\u3002\u7ba1\u7406\u3092\u7c21\u5358\u306b\u3059\u308b\u305f\u3081\u3001luci\u30a2\u30d7\u30ea\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<pre><code>opkg install luci-app-acme<\/code><\/pre>\n<p>LuCI(WebUI)\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u300cServces\u300d\u2192\u300cACME certs\u300d\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>Account email\u306b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b<\/p>\n<p>Certificate config \u3067\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u3068\u65b9\u6cd5\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>Domain names\u306b\u306f\u30c9\u30e1\u30a4\u30f3\u3092\u5165\u529b<\/p>\n<p>Validation method\u306fStandalone\u304c\u4fbf\u5229\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3068\u304b\u306e\u8a2d\u5b9a\u304c\u4e0d\u8981\u3002<br \/>\n\u305f\u3060\u3001\u8a3c\u660e\u66f8\u767a\u884c\u51e6\u7406\u3092\u3057\u3066\u3044\u308b\u6570\u5341\u79d2\u9593\u306fLuCI\uff08WebUI)\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001LuCI(WebUI)\u3068\u5171\u5b58\u3055\u305b\u305f\u3044\u5834\u5408\u3001\u304a\u3059\u3059\u3081\u3057\u307e\u305b\u3093\u304c\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067LuCI\u3078\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u3001Validation method\u306bWebroot\u3092\u6307\u5b9a\u3057\u3001Webroot directory\u3092\u300c\/www\u300d\u306b\u3059\u308b\u3068\u52d5\u304f\u6c17\u914d\u3092\u611f\u3058\u307e\u3059(\u672a\u78ba\u8a8d)<\/p>\n<p>Save &amp; Apply\u3067\u8a3c\u660e\u66f8\u53d6\u5f97\u51e6\u7406\u304c\u8d70\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u5c0e\u5165<\/h3>\n<p>docker-compose \u3092\u4f7f\u3063\u3066\u5c0e\u5165\u3057\u307e\u3059\u3002<\/p>\n<p>LuCI(WebUI)\u304b\u3089\u5b9f\u884c\u3059\u308b\u3068\u3001\u6642\u9593\u306e\u304b\u304b\u308b\u51e6\u7406\u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3001\u3053\u306e\u9805\u76ee\u306fSSH\u3067\u5b9f\u65bd\u3059\u308b\u3053\u3068\u3092\u5f37\u304f\u63a8\u5968\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<pre><code>opkg install wget dockerd luci-app-dockerman docker-compose bash zoneinfo-all<\/code><\/pre>\n<h4>docker-compose\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b<\/h4>\n<p>\u3053\u3053\u3067\u306f\u3001\/root\u4ee5\u4e0b\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<br \/>\n\/\u306e\u5bb9\u91cf\u304c\u5c11\u306a\u3044\u74b0\u5883\u306e\u5834\u5408\u306f\u3001\u3044\u3044\u611f\u3058\u306b\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>mkdir docker\nmkdir docker\/docker-mailserver\ncd docker\/docker-mailserver\/<\/code><\/pre>\n<p>\u4fbf\u5229\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u3044\u305f\u3060\u3044\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre><code>DMS_GITHUB_URL=&#039;https:\/\/raw.githubusercontent.com\/docker-mailserver\/docker-mailserver\/master&#039;\nwget &quot;${DMS_GITHUB_URL}\/mailserver.env&quot;\nwget &quot;${DMS_GITHUB_URL}\/setup.sh&quot;\nchmod a+x .\/setup.sh<\/code><\/pre>\n<p>docker-compose.yml\u3082\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u304c\u3001\u3069\u3046\u305b\u5168\u90e8\u66f8\u304d\u76f4\u3059\u306e\u3067\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u4e0d\u8981\u3067\u3059\u3002\u4e00\u5fdc\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u306f\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><code>wget &quot;${DMS_GITHUB_URL}\/docker-compose.yml&quot;<\/code><\/pre>\n<h4>docker-compose.yml \u3092\u4f5c\u6210\u3059\u308b<\/h4>\n<p>hostname\u306e\u90e8\u5206\u306f\u3001\u5404\u81ea\u7528\u610f\u3057\u305fFQDN\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30c9\u30e1\u30a4\u30f3\u306b\u306fMX\u30ec\u30b3\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code>vi docker-compose.yml<\/code><\/pre>\n<pre><code>version: &quot;3&quot;\nservices:\n  mailserver:\n    image: ghcr.io\/docker-mailserver\/docker-mailserver:latest\n    network_mode: &quot;host&quot;\n    deploy:\n      endpoint_mode: dnsrr\n    container_name: mailserver\n    # Provide the FQDN of your mail server here (Your DNS MX record should point to this value)\n    hostname: example.jp\n    env_file: mailserver.env\n    # More information about the mail-server ports:\n    # https:\/\/docker-mailserver.github.io\/docker-mailserver\/latest\/config\/security\/understanding-the-ports\/\n    # To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.\n    ports:\n      - &quot;25:25&quot;    # SMTP  (explicit TLS =&gt; STARTTLS)\n     # - &quot;110:110&quot;  # POP3  (explicit TLS =&gt; STARTTLS)\n     # - &quot;143:143&quot;  # IMAP4 (explicit TLS =&gt; STARTTLS)\n      - &quot;465:465&quot;  # ESMTP (implicit TLS)\n     # - &quot;587:587&quot;  # ESMTP (explicit TLS =&gt; STARTTLS)\n     # - &quot;993:993&quot;  # IMAP4 (implicit TLS)\n      - &quot;995:995&quot;  # POP3  (implicit TLS)\n    volumes:\n      - .\/docker-data\/dms\/mail-data\/:\/var\/mail\/\n      - .\/docker-data\/dms\/mail-state\/:\/var\/mail-state\/\n      - .\/docker-data\/dms\/mail-logs\/:\/var\/log\/mail\/\n      - .\/docker-data\/dms\/config\/:\/tmp\/docker-mailserver\/\n      - \/usr\/share\/zoneinfo\/Japan:\/etc\/localtime:ro\n      - \/etc\/acme:\/etc\/acme\n    environment:\n      - ENABLE_POP3=1\n    restart: always\n    stop_grace_period: 1m\n    # Uncomment if using `ENABLE_FAIL2BAN=1`:\n    # cap_add:\n    #   - NET_ADMIN\n    healthcheck:\n      test: &quot;ss --listening --tcp | grep -P &#039;LISTEN.+:smtp&#039; || exit 1&quot;\n      timeout: 3s\n      retries: 0<\/code><\/pre>\n<h5>\u3061\u3087\u3063\u3068\u3057\u305f\u89e3\u8aac<\/h5>\n<h6>network_mode: &quot;host&quot;<\/h6>\n<p>\u3053\u308c\u304c\u306a\u3044\u3068\u3001TCP\u306e\u63a5\u7d9a\u5143\u304cDocker\u5185\u306eGateway\u6271\u3044\u3055\u308c\u3066\u3001\u305d\u306eIP\u30a2\u30c9\u30ec\u30b9\u306e\u9006\u5f15\u304d\u304c\u63a5\u7d9a\u5143\u30c9\u30e1\u30a4\u30f3\u3068\u4e00\u81f4\u3057\u306a\u3044(\u305d\u308c\u306f\u305d\u3046)\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30e1\u30fc\u30eb\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044<\/p>\n<h6>ports:<\/h6>\n<p>network_mode\u3092host\u306b\u3057\u305f\u3089ports\u306f\u4e0d\u8981\u8aac\u3042\u308b\u3051\u3069\u3001\u3001\u77e5\u3089\u3093(\u96d1)<\/p>\n<h6>\/usr\/share\/zoneinfo\/Japan:\/etc\/localtime:ro<\/h6>\n<p>\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u30d5\u30a1\u30a4\u30eb\u3078\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3082\u3068\u3082\u3068\u6307\u5b9a\u3055\u308c\u3066\u3044\u305f\u5834\u6240\u306b\u306f\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u5b9f\u614b\u304c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u4ee3\u308f\u308a\u306b\u3001\u76f4\u63a5zoneinfo\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h6>\/etc\/acme:\/etc\/acme<\/h6>\n<p>certbot\u3067\u306f\u306a\u304facme\u3092\u4f7f\u3046\u306e\u3067\u3001letsencrypt\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306f\u306a\u3044\u3068\u3053\u308d\u306b\u8a3c\u660e\u66f8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>.env\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6<\/h3>\n<pre><code>vi mailserver.env<\/code><\/pre>\n<pre><code>SSL_TYPE=manual\nSSL_CERT_PATH=\/etc\/acme\/example.jp\/fullchain.cer\nSSL_KEY_PATH=\/etc\/acme\/example.jp\/example.jp.key<\/code><\/pre>\n<h5>\u3061\u3087\u3063\u3068\u3057\u305f\u89e3\u8aac<\/h5>\n<h6>SSL_CERT_PATH<\/h6>\n<p>Gmail\u304b\u3089POP3S\u30a2\u30af\u30bb\u30b9\u3059\u3068\u304d\u3001fullchain\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308b\u3089\u3057\u3044\u3067\u3059\u3002fullchain\u3067\u306f\u306a\u3044\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u4e2d\u9593\u8a3c\u660e\u66f8\u304c\u8ffd\u8de1\u3067\u304d\u306a\u304f\u3066\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n<h4>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u8ffd\u52a0<\/h4>\n<pre><code>.\/setup.sh email add account@example.jp &quot;P@ssWord&quot;<\/code><\/pre>\n<h4>\u30a8\u30a4\u30ea\u30a2\u30b9\u306e\u8ffd\u52a0<\/h4>\n<pre><code>.\/setup.sh alias add postmaster@example.jp account@example.jp<\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001postmaster\u3068\u304broot\u306b\u5c4a\u304f\u30e1\u30fc\u30eb\u3092account\u3067\u53d7\u4fe1\u3067\u304d\u307e\u3059\u3002<br \/>\npostmaster\u306b\u306f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u901a\u77e5\u3068\u304b\u3082\u884c\u304f\u3088\u3046\u306a\u306e\u3067\u3001\u3044\u3064\u3082\u898b\u3066\u3044\u308b\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306b\u98db\u3070\u3057\u3066\u304a\u304f\u3068\u4fbf\u5229\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>root\u5b9b\u306fpostmaster\u304calias\u306b<a href=\"https:\/\/zenn.dev\/takaha\/articles\/docker-mailserver#postmaster%E3%83%A1%E3%83%BC%E3%83%AB%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E8%A8%AD%E5%AE%9A\" title=\"\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\">\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b<\/a>\u305d\u3046\u3067\u3059\u3002<\/p>\n<h4>CatchAll\u30a2\u30ab\u30a6\u30f3\u30c8<\/h4>\n<p>docker-mailserver \u3067\u306f\u3001\u30ad\u30e3\u30c3\u30c1\u30aa\u30fc\u30eb\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u306a\u3057\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u53d7\u4fe1\u3057\u305f\u3044\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u3053\u308c\u304c\u30ad\u30e3\u30c3\u30c1\u30aa\u30fc\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>.\/setup.sh alias add @example.jp account@example.jp<\/code><\/pre>\n<h4>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u30a8\u30a4\u30ea\u30a2\u30b9\u306e\u4e00\u89a7<\/h4>\n<p>\u73fe\u5728\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u5468\u308a\u306e\u8a2d\u5b9a\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>.\/setup.sh email list\n.\/setup.sh alias list<\/code><\/pre>\n<h4>postfix\u306emain.cf\u3092\u7de8\u96c6<\/h4>\n<p>Postfix\u3084\u30b7\u30b9\u30c6\u30e0\u3067\u4f7f\u7528\u3059\u308b\u81ea\u5206\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u5ba3\u8a00\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u8b66\u544a\u3084\u30a8\u30e9\u30fc\u3092\u56de\u907f\u3057\u307e\u3059\u3002<\/p>\n<pre><code>vi .\/docker-data\/dms\/config\/postfix-main.cf<\/code><\/pre>\n<pre><code>myorigin = $mydomain\nmydestination = $mydomain\n<\/code><\/pre>\n<h4>\u8d77\u52d5<\/h4>\n<pre><code>docker-compose up -d<\/code><\/pre>\n<h3>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a<\/h3>\n<p>LuCI(WebUI)\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n<p>\u300cNetwork\u300d\u2192\u300cFirewall\u300d\u3068\u9032\u3093\u3067\u3001\u300cTraffic Rules\u300d\u30bf\u30d6\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u5de6\u4e0b\u306e\u300cAdd\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u5916\u304b\u3089\u306e 25 465 995 \u3092 Accept \u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9<\/h2>\n<h3>\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c<\/h3>\n<pre><code>.\/setup.sh debug login bash<\/code><\/pre>\n<pre><code>docker-compose exec mailserver bash<\/code><\/pre>\n<h4>\u30e1\u30fc\u30eb\u30ad\u30e5\u30fc\u8a70\u307e\u308a\u78ba\u8a8d<\/h4>\n<pre><code>postqueue -p<\/code><\/pre>\n<h3>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h3>\n<p>\u307e\u3060\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3057\u305f\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u4e00\u5fdc\u3084\u308a\u65b9\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><code>DMS_GITHUB_URL=&#039;https:\/\/raw.githubusercontent.com\/docker-mailserver\/docker-mailserver\/master&#039;\nwget -O setup.sh &quot;${DMS_GITHUB_URL}\/setup.sh&quot;\nchmod a+x .\/setup.sh<\/code><\/pre>\n<pre><code>docker-compose pull\ndocker-compose down\ndocker-compose up -d<\/code><\/pre>\n<h2>\u53c2\u8003\u8cc7\u6599<\/h2>\n<p><a href=\"https:\/\/zenn.dev\/takaha\/articles\/docker-mailserver\">docker-mailserver\u3092\u3055\u304f\u3063\u3068\u7acb\u3061\u4e0a\u3052\u308b(\u4ee4\u548c4\u5e742\u6708\u7248)<\/a><br \/>\n<a href=\"https:\/\/github.com\/docker-mailserver\/docker-mailserver\/issues\/217\">Catch-All Address \u00b7 Issue #217 \u00b7 docker-mailserver\/docker-mailserver \u00b7 GitHub<\/a><\/p>\n<h2>\u5099\u8003<\/h2>\n<p>\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u306f\u3001\u300cScheduled Tasks\u300d\u306b\u767b\u9332\u3055\u308c\u3001\u6bce\u65e50\u66420\u5206\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u306e\u51e6\u7406\u306f\u3001\u4e0b\u8a18\u3067\u3059\u3050\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code># \/etc\/init.d\/acme start<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u306fSystem Log\u306b\u5410\u304b\u308c\u307e\u3059\u3002WebUI\u304b\u3089\u3082\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u3002&quot;acme&quot;\u3068\u304b\u3067\u691c\u7d22\u3092\u304b\u3051\u308b\u3068\u3088\u3044\u3067\u3059\u3002<\/p>\n<p>acme\u3067\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u30c9\u30e1\u30a4\u30f3\u30eb\u30fc\u30c8\u3092\u6301\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u307f\u305f\u3044\u3067\u3001\u4eca\u56de\u306e\u3088\u3046\u306a\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3092\u4f7f\u3046\u65b9\u6cd5(DNS-01)\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>docker image \u306e certbot\/certbot \u306f\u52d5\u304b\u305b\u306a\u304b\u3063\u305f\u2026\u2026(\u529b\u5c3d\u304d\u305f)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u66f8\u304d \u5f0aLAN\u5185\u3067\u30b0\u30ed\u30fc\u30d0\u30eb\u304b\u3089\u306eIPv4\u7740\u4fe1\u63a5\u7d9a\u304c\u5fc5\u8981\u306a\u552f\u4e00\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3002IPv4\u30c7\u30d5\u30a9\u30eb\u30c8\u30eb\u30fc\u30c8\u3068\u7740\u4fe1\u63a5\u7d9a\u53ef\u80fd\u306a\u30b0\u30ed\u30fc\u30d0\u30ebIPv4\u306f\u5225\u306e\u305f\u3081\u3001PBR\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002 LAN\u5185\u3067\u306f\u306a\u304f\u3001\u30eb\u30fc\u30bf\u30fc\u3067 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-server-application"],"_links":{"self":[{"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":16,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":526,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/posts\/500\/revisions\/526"}],"wp:attachment":[{"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/categories?post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/tags?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}