| Server IP : 104.129.129.72 / Your IP : 216.73.216.229 Web Server : LiteSpeed System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : answe8064 ( 1002) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/installer/services/ |
Upload File : |
#!/bin/bash
if [ -f "include/startup.sh" ]; then
. include/startup.sh
elif [ -f "../include/startup.sh" ]; then
. ../include/startup.sh
fi
checkTagExist mysqld.success
echo "install postfix from apt" | log
export DEBIAN_FRONTEND="noninteractive"
debconf-set-selections <<< "postfix postfix/destinations string ${HOSTNAME}"
debconf-set-selections <<< "postfix postfix/mailbox_limit string 51200000"
debconf-set-selections <<< "postfix postfix/mailname string ${HOSTNAME}"
debconf-set-selections <<< "postfix postfix/main_mailer_type select Internet Site"
debconf-set-selections <<< "postfix postfix/protocols select ipv4"
debconf-set-selections <<< "postfix postfix/root_address string root"
apt update
installPackage postfix postfix-mysql
waitOrStop 0 "Failed apt install: postfix postfix-mysql"
# Copy Prebuilt config
cp $rootDir/tweaks/extras/postfix-mysql/master.cf /etc/postfix/
systemctl restart postfix
tagScript success
exit 0