Files
secret-manager/examples/mail-providers.values.yaml
claude 2b17088fae
Helm Chart Release / release-chart (push) Successful in 7s
fix: mail プロバイダの msmtprc を既定で常に出力 + SMTP メタ項目を拡充
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。
2026-09-08 18:47:25 +09:00

125 lines
4.1 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# =========================================================================
# 代表的な外部メールプロバイダの設定例
# -------------------------------------------------------------------------
# 使い方:
# helm upgrade --install secrets ./secret-manager \
# -n secret-manager --create-namespace \
# -f examples/mail-providers.values.yaml \
# --set mail.providers.gmail.smtp.password="$GMAIL_APP_PASSWORD"
#
# パスワード等の実値はこのファイルに書かず、--set / SOPS 経由で注入すること。
# =========================================================================
distribution:
namespaces:
- default
- web
- batch
includeReleaseNamespace: true
common:
namePrefix: "cred-"
immutable: false
mail:
providers:
# ---- Gmail / Google Workspace -----------------------------------------
# 事前に「アプリ パスワード」を発行しておくこと(2段階認証必須)。
gmail:
enabled: true
smtp:
host: "smtp.gmail.com"
port: 587
security: "starttls"
username: "no-reply@your-domain.com"
password: "REPLACE_VIA_--set"
from: "no-reply@your-domain.com"
fromName: "Your Service"
authMethod: "login"
imap:
host: "imap.gmail.com"
port: 993
security: "tls"
renderMsmtprc: true # 既定値なので本来は省略可
# ---- Microsoft 365 / Exchange Online ---------------------------------
m365:
enabled: true
smtp:
host: "smtp.office365.com"
port: 587
security: "starttls"
username: "no-reply@your-domain.com"
password: "REPLACE_VIA_--set"
from: "no-reply@your-domain.com"
authMethod: "login"
imap:
host: "outlook.office365.com"
port: 993
security: "tls"
renderMsmtprc: true # 既定値なので本来は省略可
# ---- SendGrid -------------------------------------------------------
# username は固定文字列 "apikey"、password が API キー本体。
sendgrid:
enabled: true
smtp:
host: "smtp.sendgrid.net"
port: 587
security: "starttls"
username: "apikey"
password: "REPLACE_VIA_--set"
from: "no-reply@your-domain.com"
fromName: "Your Service"
authMethod: "plain"
renderMsmtprc: true # 既定値なので本来は省略可
# ---- Amazon SES ---------------------------------------------------
# SES SMTP 認証情報(IAM のアクセスキーとは別物)を使う。リージョンをホスト名に反映。
ses:
enabled: true
smtp:
host: "email-smtp.ap-northeast-1.amazonaws.com"
port: 587
security: "starttls"
username: "REPLACE_VIA_--set"
password: "REPLACE_VIA_--set"
from: "no-reply@your-domain.com"
authMethod: "login"
renderMsmtprc: true # 既定値なので本来は省略可
# ---- Mailgun -----------------------------------------------------
mailgun:
enabled: true
smtp:
host: "smtp.mailgun.org"
port: 587
security: "starttls"
username: "postmaster@mg.your-domain.com"
password: "REPLACE_VIA_--set"
from: "no-reply@your-domain.com"
authMethod: "plain"
renderMsmtprc: true # 既定値なので本来は省略可
# ---- 汎用 / 社内 SMTP リレー(認証なし・TLSなし)--------------------
internal-relay:
enabled: false
smtp:
host: "mail-relay.svc.cluster.local"
port: 25
security: "none"
from: "no-reply@your-domain.com"
# ---- 社内 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)