attempt to fix the sasl on postfix -> fail; rely on local networks auth [ci skip]
This commit is contained in:
parent
a79744b2e3
commit
0c41f40c46
3 changed files with 18 additions and 9 deletions
|
|
@ -2,9 +2,7 @@ variable "tls_secret_name" {}
|
||||||
variable "mailserver_accounts" {}
|
variable "mailserver_accounts" {}
|
||||||
variable "postfix_account_aliases" {}
|
variable "postfix_account_aliases" {}
|
||||||
variable "opendkim_key" {}
|
variable "opendkim_key" {}
|
||||||
variable "sasl_passwd" {
|
variable "sasl_passwd" {}
|
||||||
default = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "kubernetes_namespace" "mailserver" {
|
resource "kubernetes_namespace" "mailserver" {
|
||||||
metadata {
|
metadata {
|
||||||
|
|
@ -25,6 +23,9 @@ resource "kubernetes_config_map" "mailserver_env_config" {
|
||||||
labels = {
|
labels = {
|
||||||
app = "mailserver"
|
app = "mailserver"
|
||||||
}
|
}
|
||||||
|
annotations = {
|
||||||
|
"reloader.stakater.com/match" = "true"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
|
|
@ -33,6 +34,7 @@ resource "kubernetes_config_map" "mailserver_env_config" {
|
||||||
ENABLE_FAIL2BAN = "0"
|
ENABLE_FAIL2BAN = "0"
|
||||||
ENABLE_FETCHMAIL = "0"
|
ENABLE_FETCHMAIL = "0"
|
||||||
ENABLE_POSTGREY = "0"
|
ENABLE_POSTGREY = "0"
|
||||||
|
ENABLE_SASLAUTHD = "0"
|
||||||
ENABLE_SPAMASSASSIN = "0"
|
ENABLE_SPAMASSASSIN = "0"
|
||||||
ENABLE_SRS = "1"
|
ENABLE_SRS = "1"
|
||||||
FETCHMAIL_POLL = "120"
|
FETCHMAIL_POLL = "120"
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ readme_directory = no
|
||||||
alias_maps = hash:/etc/aliases
|
alias_maps = hash:/etc/aliases
|
||||||
alias_database = hash:/etc/aliases
|
alias_database = hash:/etc/aliases
|
||||||
mydestination = $myhostname, localhost.$mydomain, localhost
|
mydestination = $myhostname, localhost.$mydomain, localhost
|
||||||
mynetworks = 127.0.0.0/8 [::1]/128 [fe80::]/64 10.47.0.11/32
|
mynetworks = 127.0.0.0/8 [::1]/128 [fe80::]/64
|
||||||
mailbox_size_limit = 0
|
mailbox_size_limit = 0
|
||||||
recipient_delimiter = +
|
recipient_delimiter = +
|
||||||
inet_interfaces = all
|
inet_interfaces = all
|
||||||
|
|
@ -43,10 +43,13 @@ smtp_tls_CApath = /etc/ssl/certs
|
||||||
smtpd_helo_required = yes
|
smtpd_helo_required = yes
|
||||||
smtpd_delay_reject = yes
|
smtpd_delay_reject = yes
|
||||||
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_helo_hostname, permit
|
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_helo_hostname, permit
|
||||||
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
#smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
||||||
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_recipient_domain, reject_rbl_client bl.spamcop.net
|
#smtpd_relay_restrictions = reject_sender_login_mismatch permit_sasl_authenticated permit_mynetworks defer_unauth_destination
|
||||||
|
smtpd_relay_restrictions = reject_sender_login_mismatch permit_sasl_authenticated permit_mynetworks defer_unauth_destination
|
||||||
|
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_recipient_domain, reject_rbl_client bl.spamcop.net, permit_mynetworks
|
||||||
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unauth_pipelining
|
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unauth_pipelining
|
||||||
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unknown_sender_domain
|
#smtpd_sender_restrictions = reject_sender_login_mismatch, permit_sasl_authenticated, permit_mynetworks, reject_unknown_sender_domain
|
||||||
|
smtpd_sender_restrictions = reject_sender_login_mismatch, reject_authenticated_sender_login_mismatch, reject_unknown_sender_domain, permit_sasl_authenticated, permit_mynetworks
|
||||||
disable_vrfy_command = yes
|
disable_vrfy_command = yes
|
||||||
|
|
||||||
# Postscreen settings to drop zombies/open relays/spam early
|
# Postscreen settings to drop zombies/open relays/spam early
|
||||||
|
|
@ -70,10 +73,14 @@ postscreen_bare_newline_action = enforce
|
||||||
# SASL
|
# SASL
|
||||||
smtpd_sasl_auth_enable = no
|
smtpd_sasl_auth_enable = no
|
||||||
#smtpd_sasl_auth_enable = yes
|
#smtpd_sasl_auth_enable = yes
|
||||||
#smtpd_sasl_path = /var/spool/postfix/private/auth
|
##smtpd_sasl_path = /var/spool/postfix/private/auth
|
||||||
|
#smtpd_sasl_path = /var/spool/postfix/private/smtpd
|
||||||
|
##smtpd_sasl_type = dovecot
|
||||||
#smtpd_sasl_type = dovecot
|
#smtpd_sasl_type = dovecot
|
||||||
|
##smtpd_sasl_security_options = noanonymous
|
||||||
#smtpd_sasl_security_options = noanonymous
|
#smtpd_sasl_security_options = noanonymous
|
||||||
#smtpd_sasl_local_domain = $mydomain
|
##smtpd_sasl_local_domain = $mydomain
|
||||||
|
##broken_sasl_auth_clients = yes
|
||||||
#broken_sasl_auth_clients = yes
|
#broken_sasl_auth_clients = yes
|
||||||
|
|
||||||
# SMTP configuration
|
# SMTP configuration
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue