migrate to mailgun as smtp relay as sendgrid got enshitified [ci skip]

This commit is contained in:
Viktor Barzin 2025-05-31 21:29:36 +00:00
parent db6eea389f
commit 276217cef9
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
5 changed files with 34 additions and 2 deletions

View file

@ -49,7 +49,8 @@ resource "kubernetes_config_map" "mailserver_env_config" {
POSTFIX_MESSAGE_SIZE_LIMIT = 1024 * 1024 * 200 # 200 MB
POSTFIX_REJECT_UNKNOWN_CLIENT_HOSTNAME = "1"
# TLS_LEVEL = "intermediate"
DEFAULT_RELAY_HOST = "[smtp.sendgrid.net]:587"
# DEFAULT_RELAY_HOST = "[smtp.sendgrid.net]:587"
DEFAULT_RELAY_HOST = "[smtp.eu.mailgun.org]:587"
SPOOF_PROTECTION = "1"
SSL_TYPE = "manual"
SSL_CERT_PATH = "/tmp/ssl/tls.crt"

View file

@ -2,7 +2,8 @@
# see defaults - https://github.com/docker-mailserver/docker-mailserver/blob/master/target/postfix/main.cf
variable "postfix_cf" {
default = <<EOT
relayhost = [smtp.sendgrid.net]:587
#relayhost = [smtp.sendgrid.net]:587
relayhost = [smtp.eu.mailgun.org]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd
smtp_sasl_security_options = noanonymous