Changeset View
Changeset View
Standalone View
Standalone View
docker/kolab/utils/10-change-port-numbers.sh
Show All 13 Lines | sed -i \ | ||||
guam cmd="imapd" listen=127.0.0.1:13143 prefork=1' \ | guam cmd="imapd" listen=127.0.0.1:13143 prefork=1' \ | ||||
-e '/SERVICES/ a\ | -e '/SERVICES/ a\ | ||||
imap cmd="imapd" listen=127.0.0.1:11143 prefork=1' \ | imap cmd="imapd" listen=127.0.0.1:11143 prefork=1' \ | ||||
-e 's/listen="127.0.0.1:9993"/listen=127.0.0.1:11993/g' \ | -e 's/listen="127.0.0.1:9993"/listen=127.0.0.1:11993/g' \ | ||||
/etc/cyrus.conf | /etc/cyrus.conf | ||||
systemctl restart cyrus-imapd | systemctl restart cyrus-imapd | ||||
sed -i -e '/submission/,10d' /etc/postfix/master.cf | # Remove the submission block, by matching from submission until the next empty line | ||||
sed -i -e '/submission inet/,/^$/d' /etc/postfix/master.cf | |||||
# Insert a new submission block with a modified port | |||||
cat >> /etc/postfix/master.cf << EOF | cat >> /etc/postfix/master.cf << EOF | ||||
127.0.0.1:10587 inet n - n - - smtpd | 127.0.0.1:10587 inet n - n - - smtpd | ||||
-o cleanup_service_name=cleanup_submission | -o cleanup_service_name=cleanup_submission | ||||
-o syslog_name=postfix/submission | -o syslog_name=postfix/submission | ||||
#-o smtpd_tls_security_level=encrypt | #-o smtpd_tls_security_level=encrypt | ||||
-o smtpd_sasl_auth_enable=yes | -o smtpd_sasl_auth_enable=yes | ||||
-o smtpd_sasl_authenticated_header=yes | -o smtpd_sasl_authenticated_header=yes | ||||
-o smtpd_client_restrictions=permit_sasl_authenticated,reject | -o smtpd_client_restrictions=permit_sasl_authenticated,reject | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |