fix: mail プロバイダの msmtprc を既定で常に出力 + SMTP メタ項目を拡充
Helm Chart Release / release-chart (push) Successful in 7s

phpfpm の smtp.existingMsmtprcSecret が「references non-existent secret key:
msmtprc」でマウント失敗する件の対処。renderMsmtprc が opt-in で忘れやすかった。

- renderMsmtprc を既定 true に(明示 false のときだけ抑止)
- smtp.tlsVerify(既定 true)を追加。false で msmtprc に tls_certcheck off
  values.schema.json の smtp にも tlsVerify を追加
- 派生キー SMTP_TLS / SMTP_SSL / SMTP_TLS_VERIFY / SMTP_AUTH を Secret に追加
- from 未設定時に msmtprc へ空の from 行を出さないよう修正
- values.yaml / examples / README を更新。0.1.2。
This commit is contained in:
2026-09-08 18:47:25 +09:00
parent 13cb27a5ec
commit 2b17088fae
7 changed files with 93 additions and 21 deletions
+12 -4
View File
@@ -65,20 +65,28 @@ common:
# mail: 外部メールの接続情報(パスワード + サーバ情報)
# --------------------------------------------------------------------------
# providers.<キー> ごとに 1 つの Secret を生成する。Secret には以下が入る:
# 個別キー:
# SMTP_HOST / SMTP_PORT / SMTP_SECURITY / SMTP_USERNAME / SMTP_PASSWORD
# 個別キー(送信 SMTP):
# SMTP_HOST / SMTP_PORT / SMTP_SECURITY (none|starttls|tls)
# SMTP_TLS ... "true" if starttls (フレームワーク互換の派生フラグ)
# SMTP_SSL ... "true" if 暗黙TLS(tls) (同上)
# SMTP_TLS_VERIFY ... 証明書検証 "true"/"false"
# SMTP_USERNAME / SMTP_PASSWORD / SMTP_AUTH ("true" if username あり)
# SMTP_FROM / SMTP_FROM_NAME / SMTP_REPLY_TO / SMTP_AUTH_METHOD
# 個別キー(受信・任意):
# IMAP_HOST / IMAP_PORT / IMAP_SECURITY / IMAP_USERNAME / IMAP_PASSWORD (imap 定義時)
# POP3_HOST / POP3_PORT / POP3_SECURITY / POP3_USERNAME / POP3_PASSWORD (pop3 定義時)
# まとめ:
# smtp.env ... `export KEY=VALUE` 形式。コンテナ内で `source` して利用可能
# msmtprc ... msmtp / PHP sendmail 用設定(renderMsmtprc: true のとき)
# msmtprc ... msmtp / PHP sendmail 用の完成済み設定ファイル
# ★ 既定で常に含まれる。抑止したい場合のみ renderMsmtprc: false
#
# 代表的なプロバイダの設定値は examples/ および README.md の一覧表を参照。
mail:
providers: {}
# gmail:
# enabled: true
# # msmtprc キーを出力するか(既定 true)。IMAP だけ使いたい等で不要なら false
# renderMsmtprc: true
# smtp:
# host: "smtp.gmail.com"
# port: 587
@@ -89,6 +97,7 @@ mail:
# fromName: "Example"
# replyTo: ""
# authMethod: "plain" # plain | login | cram-md5
# tlsVerify: true # false で証明書検証を無効化(社内リレー等)
# imap:
# host: "imap.gmail.com"
# port: 993
@@ -99,7 +108,6 @@ mail:
# # host: "pop.gmail.com"
# # port: 995
# # security: "tls"
# renderMsmtprc: true
# # このプロバイダだけ別ネームスペースへ配る場合(省略時は distribution 準拠)
# namespacesOverride: []
# # このプロバイダ Secret だけに付ける追加アノテーション