|
@ -4,8 +4,9 @@ function ee_mod_setup_postfix() |
|
|
{ |
|
|
{ |
|
|
ee_lib_echo "Configuring Postfix, please wait..." |
|
|
ee_lib_echo "Configuring Postfix, please wait..." |
|
|
#Configure Master.cf |
|
|
#Configure Master.cf |
|
|
sed -i 's/#submission/submission/' /etc/postfix/master.cf |
|
|
sed -i 's/#submission/submission/' /etc/postfix/master.cf && |
|
|
sed -i 's/#smtps/smtps/' /etc/postfix/master.cf |
|
|
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 |
|
|
#Configure main.cf |
|
|
#postconf "#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache" |
|
|
#postconf "#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache" |
|
@ -37,7 +38,9 @@ function ee_mod_setup_postfix() |
|
|
|
|
|
|
|
|
# Setting up Postfix MySQL configuration |
|
|
# Setting up Postfix MySQL configuration |
|
|
mkdir -p /etc/postfix/mysql |
|
|
mkdir -p /etc/postfix/mysql |
|
|
cp -av /usr/share/easyengine/mail/virtual_alias_maps.cf /etc/postfix/mysql/virtual_alias_maps.cf |
|
|
cp -av /usr/share/easyengine/mail/virtual_alias_maps.cf /etc/postfix/mysql/virtual_alias_maps.cf && |
|
|
cp -av /usr/share/easyengine/mail/virtual_domains_maps.cf /etc/postfix/mysql/virtual_domains_maps.cf |
|
|
cp -av /usr/share/easyengine/mail/virtual_domains_maps.cf /etc/postfix/mysql/virtual_domains_maps.cf && |
|
|
cp -av /usr/share/easyengine/mail/virtual_mailbox_maps.cf /etc/postfix/mysql/virtual_mailbox_maps.cf |
|
|
cp -av /usr/share/easyengine/mail/virtual_mailbox_maps.cf /etc/postfix/mysql/virtual_mailbox_maps.cf \ |
|
|
|
|
|
ee_lib_error "Unable to copy Postfix MySQL configuration files, exit status = " $? |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|