migrate to mailgun as smtp relay as sendgrid got enshitified [ci skip]
This commit is contained in:
parent
db6eea389f
commit
276217cef9
5 changed files with 34 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue