Browse Source

tls_on_connect_ports

Bob Mottram 11 years ago
parent
commit
a099227e49
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      install-freedombone.sh

+ 2
- 2
install-freedombone.sh View File

602
   sed -i '/login_saslauthd_server/,/.endif/ s/# *//' /etc/exim4/exim4.conf.template
602
   sed -i '/login_saslauthd_server/,/.endif/ s/# *//' /etc/exim4/exim4.conf.template
603
   sed -i "/.ifdef MAIN_HARDCODE_PRIMARY_HOSTNAME/i\MAIN_HARDCODE_PRIMARY_HOSTNAME = $DOMAIN_NAME\nMAIN_TLS_ENABLE = true" /etc/exim4/exim4.conf.template
603
   sed -i "/.ifdef MAIN_HARDCODE_PRIMARY_HOSTNAME/i\MAIN_HARDCODE_PRIMARY_HOSTNAME = $DOMAIN_NAME\nMAIN_TLS_ENABLE = true" /etc/exim4/exim4.conf.template
604
   sed -i "s|SMTPLISTENEROPTIONS=''|SMTPLISTENEROPTIONS='-oX 465:25:587 -oP /var/run/exim4/exim.pid'|g" /etc/default/exim4
604
   sed -i "s|SMTPLISTENEROPTIONS=''|SMTPLISTENEROPTIONS='-oX 465:25:587 -oP /var/run/exim4/exim.pid'|g" /etc/default/exim4
605
-  if ! grep -Fxq "tls_on_connect_ports=465" /etc/exim4/exim4.conf.template; then
606
-    sed -i '/03_exim4-config_tlsoptions/a\tls_on_connect_ports=465' /etc/exim4/exim4.conf.template
605
+  if ! grep -q "tls_on_connect_ports=465" /etc/exim4/exim4.conf.template; then
606
+    sed -i '/SSL configuration for exim/i\tls_on_connect_ports=465' /etc/exim4/exim4.conf.template
607
   fi
607
   fi
608
 
608
 
609
   adduser $MY_USERNAME sasl
609
   adduser $MY_USERNAME sasl