postconf -e smtpd_tls_exclude_ciphers="aNULL"
postconf -e smtpd_tls_mandatory_exclude_ciphers="aNULL"
postconf -e smtpd_tls_exclude_ciphers="aNULL"
postconf -e smtpd_tls_mandatory_exclude_ciphers="aNULL"
# ako je postavljen snakeoil certifikat za smtpd_tls_* postavi isti za smtp_tls_*
smtpd_tls_cert_file="`postconf -h smtpd_tls_cert_file`"
if [ "$smtpd_tls_cert_file" = "/etc/ssl/certs/ssl-cert-snakeoil.pem" ]; then
# ako je postavljen snakeoil certifikat za smtpd_tls_* postavi isti za smtp_tls_*
smtpd_tls_cert_file="`postconf -h smtpd_tls_cert_file`"
if [ "$smtpd_tls_cert_file" = "/etc/ssl/certs/ssl-cert-snakeoil.pem" ]; then
smtpd_tls_cert_file="`postconf -h smtpd_tls_cert_file`"
if [ -z "$smtpd_tls_cert_file" ]; then
postconf -e smtpd_tls_cert_file="/etc/ssl/certs/ssl-cert-snakeoil.pem"
smtpd_tls_cert_file="`postconf -h smtpd_tls_cert_file`"
if [ -z "$smtpd_tls_cert_file" ]; then
postconf -e smtpd_tls_cert_file="/etc/ssl/certs/ssl-cert-snakeoil.pem"
postconf -e smtpd_tls_key_file="/etc/ssl/private/ssl-cert-snakeoil.key"
fi
smtp_tls_cert_file="`postconf -h smtp_tls_cert_file`"
if [ -z "$smtp_tls_cert_file" ]; then
postconf -e smtp_tls_cert_file="/etc/ssl/certs/ssl-cert-snakeoil.pem"
postconf -e smtpd_tls_key_file="/etc/ssl/private/ssl-cert-snakeoil.key"
fi
smtp_tls_cert_file="`postconf -h smtp_tls_cert_file`"
if [ -z "$smtp_tls_cert_file" ]; then
postconf -e smtp_tls_cert_file="/etc/ssl/certs/ssl-cert-snakeoil.pem"