PMTA PowerMTA 4.5r1/5.0b1: manual install on CentOS7

  • Thread starter Underground Forum
  • Start date
  • Tags
    pmta server
Underground Forum

Underground Forum

  • #1

RPM package install​

A clean install for those who don't want to install extra packages. A server running CentOS 7 is suitable.

Pmta install


Download the RPM package​

PMTA 4.5r1:
Please, Login or Register to view URLs content!

PMTA 5.0b1:
Content of this hidden block can only be seen by members of: Verified
Drop it in the root directory of your server.

Pmta install​

Open the terminal and run those commands one by one:
ulimit -H -n 10240
sed -i -e "s/^SELINUX=.*/SELINUX=permissive/" /etc/selinux/config
setenforce 0
yum install iptables-services
systemctl enable iptables
/sbin/iptables -P INPUT ACCEPT
/sbin/iptables -P FORWARD ACCEPT
/sbin/iptables -P OUTPUT ACCEPT
iptables -F
service iptables save
rpm -i PowerMTA-5.0b1.rpm
/etc/init.d/pmtahttp stop
/etc/init.d/pmta stop

Replace the files in the usr/sbin and etc/pmta folders with the ones in the Path folder:

Patch for PMTA 4.0r1:
Please, Login or Register to view URLs content!

Patch for PMTA 5.0b1:
Content of this hidden block can only be seen by members of: Verified

Download standard configs and place them in ect/pmta folder:
Please, Login or Register to view URLs content!
Please, Login or Register to view URLs content!

Put dkim.key in the ect/
Please, Login or Register to view URLs content!

Open the virtualhost.txt file:

Replace:​
DOMAIN.COM - to your domain (10 times)​
Replace:​
000.00.000.000 - to your IP (1 time)​
Replace:​
XXXXX - to another password​
Replace:​
key1 - to any other selector (1 time)​


Launch PMTA with commands in the terminal:
/etc/init.d/pmta start

/etc/init.d/pmtahttp start


In case of errors​


If port 25 is blocked. You need to find out what kind of process interferes with the work:
sudo netstat -tunlp | grep 25

Example:
tcp6 0 0 :::2525 :::* LISTEN 14310/pmtad

Then kill the process that is preventing startup:

kill 14310
(You may have a different number)

and reload PMTA again:

service pmta restart
 
Last edited:
  • Like
Reactions: kaspeRR and oom
O

oom

  • #2

RPM package install​

A clean install for those who don't want to install extra packages. A server running CentOS 7 is suitable.

View attachment 634

Download the RPM package​

PMTA 4.5r1:
Please, Login or Register to view URLs content!

PMTA 5.0b1:
*** Hidden text: cannot be quoted. ***

Drop it in the root directory of your server.

Pmta install​

Open the terminal and run those commands one by one:
ulimit -H -n 10240
sed -i -e "s/^SELINUX=.*/SELINUX=permissive/" /etc/selinux/config
setenforce 0
yum install iptables-services
systemctl enable iptables
/sbin/iptables -P INPUT ACCEPT
/sbin/iptables -P FORWARD ACCEPT
/sbin/iptables -P OUTPUT ACCEPT
iptables -F
service iptables save
rpm -i PowerMTA-5.0b1.rpm
/etc/init.d/pmtahttp stop
/etc/init.d/pmta stop

Replace the files in the usr/sbin and etc/pmta folders with the ones in the Path folder:

Patch for PMTA 4.0r1:
Please, Login or Register to view URLs content!

Patch for PMTA 5.0b1:
*** Hidden text: cannot be quoted. ***


Download standard configs and place them in ect/pmta folder:
Please, Login or Register to view URLs content!
Please, Login or Register to view URLs content!

Put dkim.key in the ect/
Please, Login or Register to view URLs content!

Open the virtualhost.txt file:

Replace:​
DOMAIN.COM - to your domain (10 times)​
Replace:​
000.00.000.000 - to your IP (1 time)​
Replace:​
XXXXX - to another password​
Replace:​
key1 - to any other selector (1 time)​


Launch PMTA with commands in the terminal:
/etc/init.d/pmta start

/etc/init.d/pmtahttp start


In case of errors​


If port 25 is blocked. You need to find out what kind of process interferes with the work:
sudo netstat -tunlp | grep 25

Example:
tcp6 0 0 :::2525 :::* LISTEN 14310/pmtad

Then kill the process that is preventing startup:

kill 14310
(You may have a different number)

and reload PMTA again:

service pmta restart
Thnx.
Is that guide for cent only?
 
  • Like
Reactions: D•Jass
D•Jass

D•Jass

Staff member
Verified
  • #3
CentOS only.
 
redispade

redispade

Verified
  • #4
Thank you, does the patch work on the debian version of the file?
 
Last edited:
  • Like
Reactions: Adilobrf
Adilobrf

Adilobrf

  • #5
Merci frère
 
oxiaozheng

oxiaozheng

  • #6
Merci frère
 
M

marcelodias

  • #7
Thank you
 
eoiurty

eoiurty

  • #8
thx
 
xeon19

xeon19

  • #9
Thanks !
 
X

xipox

Premium
Verified
  • #10
Thank you! ;)
 
K

kaspeRR

  • #11
Why only CentOS 7?
 
Top