Skip to content

Commit d059eb6

Browse files
author
gau1991
committed
Updated Posfix support for Debian 6
1 parent cdb6dbd commit d059eb6

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

src/modules/stack/install/mail/ee_mod_setup_postfix.sh

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,27 @@ function ee_mod_setup_postfix()
2222
sed -i 's/#smtps/smtps/' /etc/postfix/master.cf \
2323
|| ee_lib_error "Unable to setup details in master.cf file, exit status = " $?
2424

25-
#Configure main.cf
26-
#postconf "#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache"
27-
#postconf "#smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache"
28-
#postconf "#smtpd_tls_cert_file=/etc/ssl/certs/dovecot.pem"
29-
#postconf "#smtpd_use_tls=yes"
30-
#postconf "#smtpd_tls_auth_only = yes"
25+
# Handle SMTP authentication using Dovecot"
26+
# On Debian6 following command not work
27+
# postconf "smtpd_sasl_type = dovecot"
3128

32-
#Handle SMTP authentication using Dovecot"
33-
postconf "smtpd_sasl_type = dovecot"
34-
postconf "smtpd_sasl_path = private/auth"
35-
postconf "smtpd_sasl_auth_enable = yes"
29+
postconf -e "smtpd_sasl_type = dovecot"
30+
postconf -e "smtpd_sasl_path = private/auth"
31+
postconf -e "smtpd_sasl_auth_enable = yes"
3632

37-
postconf "smtpd_relay_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination"
33+
postconf -e "smtpd_relay_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination"
3834

3935
# other destination domains should be handled using virtual domains
40-
postconf "mydestination = localhost"
36+
postconf -e "mydestination = localhost"
4137

4238
# using Dovecot's LMTP for mail delivery and giving it path to store mail
43-
postconf "virtual_transport = lmtp:unix:private/dovecot-lmtp"
39+
postconf -e "virtual_transport = lmtp:unix:private/dovecot-lmtp"
4440

4541
# virtual mailbox setups
46-
postconf "virtual_uid_maps = static:5000"
47-
postconf "virtual_gid_maps = static:5000"
48-
postconf "virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual_domains_maps.cf"
49-
postconf "virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf"
42+
postconf -e "virtual_uid_maps = static:5000"
43+
postconf -e "virtual_gid_maps = static:5000"
44+
postconf -e "virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual_domains_maps.cf"
45+
postconf -e "virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf"
5046
#postconf "message_size_limit = 20971520"
5147

5248

0 commit comments

Comments
 (0)