diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-06-09 01:34:02 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-06-09 01:34:02 +0900 |
| commit | 733ae6e5c4362aa85d54cb7b0674483d3f6862cd (patch) | |
| tree | 20f311ef697b06e46c91b0a55a6e4e11395b1583 /mail/entrypoint.sh | |
| parent | 72ff02cf231c60314ca4557c576f513088830e40 (diff) | |
Switch mail container from SES relay to direct delivery
Port 25 outbound is no longer blocked on Hetzner, so SES relay is
unnecessary. Remove relayhost, SASL auth config, and libsasl2-modules.
Postfix now delivers directly to recipient MX; inet_protocols=ipv4
already present to avoid IPv6 PTR issues.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'mail/entrypoint.sh')
| -rwxr-xr-x | mail/entrypoint.sh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/mail/entrypoint.sh b/mail/entrypoint.sh index 45798fe..9ba6655 100755 --- a/mail/entrypoint.sh +++ b/mail/entrypoint.sh @@ -35,13 +35,6 @@ cp -f /etc/hosts /var/spool/postfix/etc/hosts 2>/dev/null || true cp -f /etc/services /var/spool/postfix/etc/services 2>/dev/null || true cp -f /etc/nsswitch.conf /var/spool/postfix/etc/nsswitch.conf 2>/dev/null || true -# Create sasl_passwd for SES relay from environment variables -if [[ -n "${SES_ACCESS_KEY_ID:-}" && -n "${SES_SMTP_PASSWORD:-}" ]]; then - echo "[email-smtp.us-east-1.amazonaws.com]:587 ${SES_ACCESS_KEY_ID}:${SES_SMTP_PASSWORD}" > /etc/postfix/sasl_passwd - chmod 600 /etc/postfix/sasl_passwd - postmap /etc/postfix/sasl_passwd -fi - # Start Postfix postfix start |
