Install PowerMTA

Install the requirments

yum install unzip net-tools telnet git gdb -y

If you already have a mail server remove it.

yum remove postfix -y

If you want to keep current mail server, you can run PowerMTA on a port other than 25.

cd /root/PMTA/
unzip PowerMTA5.0r1.zip
cd /root/PMTA/PowerMTA5.0r1
yum install PowerMTA-5.0r1-201909161531.x86_64.rpm
service pmta stop
service pmtahttp stop
rm -f /usr/sbin/pmtad
rm -f /usr/sbin/pmtahttpd
cd  /root/PMTA/PowerMTA5.0r1/usr/sbin
cp * /usr/sbin
chmod -R 755 /usr/sbin/pmta
chmod -R 755 /usr/sbin/pmtad
chmod -R 755 /usr/sbin/pmtahttpd
cp /root/PMTA/PowerMTA5.0r1/license /etc/pmta

Restart PowerMTA

service pmta start
service pmtahttp start

If you get any error, run powermta in debug mode

pmtad --debug

To customoize your PowerMTA install, edit config file

vi /etc/pmta/config

After editing config file, you need to restart PowerMTA

service pmta restart

Or reload, which is faster

service pmta reload

See PowerMTA

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *