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
+17 -6
View File
@@ -41,7 +41,7 @@ mail:
host: "imap.gmail.com"
port: 993
security: "tls"
renderMsmtprc: true
renderMsmtprc: true # 既定値なので本来は省略可
# ---- Microsoft 365 / Exchange Online ---------------------------------
m365:
@@ -58,7 +58,7 @@ mail:
host: "outlook.office365.com"
port: 993
security: "tls"
renderMsmtprc: true
renderMsmtprc: true # 既定値なので本来は省略可
# ---- SendGrid -------------------------------------------------------
# username は固定文字列 "apikey"、password が API キー本体。
@@ -73,7 +73,7 @@ mail:
from: "no-reply@your-domain.com"
fromName: "Your Service"
authMethod: "plain"
renderMsmtprc: true
renderMsmtprc: true # 既定値なので本来は省略可
# ---- Amazon SES ---------------------------------------------------
# SES SMTP 認証情報(IAM のアクセスキーとは別物)を使う。リージョンをホスト名に反映。
@@ -87,7 +87,7 @@ mail:
password: "REPLACE_VIA_--set"
from: "no-reply@your-domain.com"
authMethod: "login"
renderMsmtprc: true
renderMsmtprc: true # 既定値なので本来は省略可
# ---- Mailgun -----------------------------------------------------
mailgun:
@@ -100,7 +100,7 @@ mail:
password: "REPLACE_VIA_--set"
from: "no-reply@your-domain.com"
authMethod: "plain"
renderMsmtprc: true
renderMsmtprc: true # 既定値なので本来は省略可
# ---- 汎用 / 社内 SMTP リレー(認証なし・TLSなし)--------------------
internal-relay:
@@ -110,4 +110,15 @@ mail:
port: 25
security: "none"
from: "no-reply@your-domain.com"
renderMsmtprc: true
# ---- 社内 SMTP(自己署名証明書。STARTTLS だが証明書検証はしない)------
internal-tls-relay:
enabled: false
smtp:
host: "mail.internal.example"
port: 587
security: "starttls"
username: "app"
password: "REPLACE_VIA_--set"
from: "no-reply@your-domain.com"
tlsVerify: false # 自己署名のため証明書検証を無効化(msmtprc に tls_certcheck off)