mailiverse/install/setup-postfix.remote

18 lines
458 B
Plaintext
Executable File

set -x
echo "1" | apt-get install postfix postfix-mysql postfix-pcre --yes
cp sudoers.d-postfix-user /etc/sudoers.d/postfix-user
chmod 0440 /etc/sudoers.d/postfix-user
cd /etc/postfix
rm main.cf
rm master.cf
ln -fs /home/postfix-user/config/main.cf
ln -fs /home/postfix-user/config/master.cf
#ln -fs /home/postfix-user/config/virtual_domains.pcre
ln -fs /home/postfix-user/config/virtual_domains
ln -fs /home/postfix-user/config/virtual_mailbox_maps.cf