Browse Source

Updated Posfix support for Debian 6

old-stable
gau1991 11 years ago
parent
commit
d059eb6bd1
  1. 30
      src/modules/stack/install/mail/ee_mod_setup_postfix.sh

30
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"

Loading…
Cancel
Save