aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostclass/smtp_server/20-postfix
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-10-03 22:38:06 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-10-03 22:38:06 -0400
commita1bddcb1de1053994fb445267ca5d1ffaecb0fb5 (patch)
treeba2f614ac93dabc6b148037fc604966c7907b384 /scripts/hostclass/smtp_server/20-postfix
parent47f90d0916ac34ef132e3bb6da92a4a67dffbba8 (diff)
downloadinfrastructure-a1bddcb1de1053994fb445267ca5d1ffaecb0fb5.tar.gz
more postfix/rspamd stuff
Diffstat (limited to 'scripts/hostclass/smtp_server/20-postfix')
-rw-r--r--scripts/hostclass/smtp_server/20-postfix4
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/hostclass/smtp_server/20-postfix b/scripts/hostclass/smtp_server/20-postfix
index 6f891da..0d4830f 100644
--- a/scripts/hostclass/smtp_server/20-postfix
+++ b/scripts/hostclass/smtp_server/20-postfix
@@ -21,7 +21,6 @@ postfix_public_tls_cert="${acme_cert_dir}/postfix.crt"
postfix_public_tls_key="${acme_cert_dir}/postfix.key"
postfix_local_tls_cert="${postfix_conf_dir}/postfix.crt"
postfix_local_tls_key="${postfix_conf_dir}/postfix.key"
-postfix_dhparams="${postfix_conf_dir}/dhparams.pem"
# Install packages.
pkg install -y \
@@ -55,9 +54,6 @@ install_directory -m 0750 -o "$saslauthd_user" -g "$postfix_user" "$saslauthd_ru
install_certificate -m 0644 -o root -g "$postfix_user" postfix "$postfix_local_tls_cert"
install_certificate_key -m 0640 -o root -g "$postfix_user" postfix "$postfix_local_tls_key"
-# Generate dhparams.
-[ -f "$postfix_dhparams" ] || openssl dhparam -out "$postfix_dhparams" 2048
-
if [ "$postfix_public_fqdn" != "$fqdn" ]; then
# Acquire public TLS certificate.
install_file /usr/local/etc/sudoers.d/acme