From d059eb6bd17a5fe386801dfe17ec8a26bf4845fa Mon Sep 17 00:00:00 2001 From: gau1991 Date: Wed, 3 Sep 2014 16:25:39 +0530 Subject: [PATCH] Updated Posfix support for Debian 6 --- .../install/mail/ee_mod_setup_postfix.sh | 30 ++++++++----------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/src/modules/stack/install/mail/ee_mod_setup_postfix.sh b/src/modules/stack/install/mail/ee_mod_setup_postfix.sh index 59dac0d6..feb80e48 100644 --- a/src/modules/stack/install/mail/ee_mod_setup_postfix.sh +++ b/src/modules/stack/install/mail/ee_mod_setup_postfix.sh @@ -22,31 +22,27 @@ function ee_mod_setup_postfix() sed -i 's/#smtps/smtps/' /etc/postfix/master.cf \ || ee_lib_error "Unable to setup details in master.cf file, exit status = " $? - #Configure main.cf - #postconf "#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache" - #postconf "#smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache" - #postconf "#smtpd_tls_cert_file=/etc/ssl/certs/dovecot.pem" - #postconf "#smtpd_use_tls=yes" - #postconf "#smtpd_tls_auth_only = yes" + # Handle SMTP authentication using Dovecot" + # On Debian6 following command not work + # postconf "smtpd_sasl_type = dovecot" - #Handle SMTP authentication using Dovecot" - postconf "smtpd_sasl_type = dovecot" - postconf "smtpd_sasl_path = private/auth" - postconf "smtpd_sasl_auth_enable = yes" + postconf -e "smtpd_sasl_type = dovecot" + postconf -e "smtpd_sasl_path = private/auth" + postconf -e "smtpd_sasl_auth_enable = yes" - postconf "smtpd_relay_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination" + postconf -e "smtpd_relay_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination" # other destination domains should be handled using virtual domains - postconf "mydestination = localhost" + postconf -e "mydestination = localhost" # using Dovecot's LMTP for mail delivery and giving it path to store mail - postconf "virtual_transport = lmtp:unix:private/dovecot-lmtp" + postconf -e "virtual_transport = lmtp:unix:private/dovecot-lmtp" # virtual mailbox setups - postconf "virtual_uid_maps = static:5000" - postconf "virtual_gid_maps = static:5000" - postconf "virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual_domains_maps.cf" - postconf "virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf" + postconf -e "virtual_uid_maps = static:5000" + postconf -e "virtual_gid_maps = static:5000" + postconf -e "virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual_domains_maps.cf" + postconf -e "virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf" #postconf "message_size_limit = 20971520"