疎通確認(デフォルトポート 3219 / SMTP 2525)
- GET /health:
curl http://localhost:3219/health
-
POST /webhook:
curl -X POST -H 'Content-Type: application/json' -d '{"message":"hello"}' http://localhost:3219/webhook
-
SMTP:
python3 -c "import smtplib;from email.message import EmailMessage as
M;m=M();m['From']='me@example.com';m['To']='test@example.com';m['Subject']='Test';m.set_content('Hello');s=smtplib.SMTP('localhost',2525);s.send_message(m);s.quit()"
WEBHOOK_PORT/SMTP_PORT は docker 起動時の環境変数で変更可能。
通知をONにするとOSで通知できます。