Install PowerMTA
Install the requirments
1 |
yum install unzip net-tools telnet git gdb -y |
If you already have a mail server remove it.
1 |
yum remove postfix -y |
If you want to keep current mail server, you can run PowerMTA on a port other than 25.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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
1 2 |
service pmta start service pmtahttp start |
If you get any error, run powermta in debug mode
1 |
pmtad --debug |
To customoize your PowerMTA install, edit config file
1 |
vi /etc/pmta/config |
After editing config file, you need to restart PowerMTA
1 |
service pmta restart |
Or reload, which is faster
1 |
service pmta reload |
See PowerMTA