PMTA

Powermta Introduction

PowerMTA is a Commercial Mail Transfer Agent (MTA) used by many email service providers (ESPs), Mass Mailing Companies And Paid SMTP Providers Like Sendgrid.comMandrill.comSMTP.comSendloop.com, and many others.

cat > /etc/yum.repos.d/webmin.repo << EOF
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
EOF
rpm –import http://www.webmin.com/jcameron-key.asc
yes | yum update
yum -y install webmin
chkconfig webmin on
yum -y install nano
iptables -I INPUT -p tcp –dport 10000 -j ACCEPT
iptables -I INPUT -p tcp –dport 20000 -j ACCEPT
iptables -I INPUT -p tcp –dport 31425 -j ACCEPT
iptables -I INPUT -p tcp –dport 2087 -j ACCEPT
iptables -I INPUT -p tcp –dport 110 -j ACCEPT
iptables -I INPUT -p tcp –dport 25 -j ACCEPT
iptables -I INPUT -p tcp –dport 2525 -j ACCEPT
iptables -I INPUT -p tcp –dport 26 -j ACCEPT
iptables -I INPUT -p tcp –dport 465 -j ACCEPT
iptables -I INPUT -p tcp –dport 587 -j ACCEPT
iptables -I INPUT -p tcp –dport 993 -j ACCEPT
iptables -I INPUT -p tcp –dport 995 -j ACCEPT
iptables -I INPUT -p tcp –dport 80 -j ACCEPT
iptables -I INPUT -p tcp –dport 443 -j ACCEPT
iptables -I INPUT -p udp –dport 53 -j ACCEPT
iptables -I INPUT -p tcp –dport 53 -j ACCEPT
iptables -I INPUT -p tcp –dport 3306 -j ACCEPT
iptables -I INPUT -p tcp –dport 2096 -j ACCEPT
iptables -I INPUT -p tcp –dport 2031 -j ACCEPT
iptables -I INPUT -p tcp –dport 2030 -j ACCEPT
iptables -I INPUT -p tcp –dport 143 -j ACCEPT
service iptables save
service iptables restart

===================================================

Webpanel Centos

cd /usr/local/src
wget http://centos-webpanel.com/cwp-latest
sh cwp-latest

yum -y install mysql mysql-devel mysql-server mod_auth_mysql
yum -y install gdb php-gd php-cli php-common php-mysql
yum -y  install bind.x86_64 bind-utils.x86_64
yum -y install ntp.x86_64 gcc.x86_64 dos2unix.x86_64 sudo.x86_64 wget.x86_64 make.x86_64
yum -y install perl-ExtUtils-MakeMaker.x86_64 cronie.x86_64 cronie-anacron.x86_64  crontabs.noarch  iptraf.x86_64  nano.x86_64 telnet.x86_64 lsof.x86_64
rpm -ivh /home/PowerMTA-4.0r6.x86_64.rpm

chown pmta:pmta /etc/pmta/config;
chmod 640 /etc/pmta/config;
mkdir -p /var/spool/pmtaPickup/;
mkdir -p /var/spool/pmtaPickup/Pickup;
mkdir -p /var/spool/pmtaPickup/BadMail;
mkdir -p /var/spool/pmtaIncoming;
chown pmta:pmta /var/spool/pmtaIncoming;
chmod 755 /var/spool/pmtaIncoming;
chown pmta:pmta /var/spool/pmtaPickup/*
mkdir -p /var/log/pmta;
mkdir -p /var/log/pmtaAccRep;
mkdir -p /var/log/pmtaErr;
mkdir -p /var/log/pmtaErrRep;
chown pmta:pmta /var/log/pmta;
chown pmta:pmta /var/log/pmtaAccRep;
chown pmta:pmta /var/log/pmtaErr;
chown pmta:pmta /var/log/pmtaErrRep;
chmod 755 /var/log/pmta;
chmod 755 /var/log/pmtaAccRep;
chmod 755 /var/log/pmtaErr;
chmod 755 /var/log/pmtaErrRep;

#relay-domain
relay-domain example.com
smtp-listener 0/0:2525

Startup error: Insufficient process resources

ulimit -H -n 80000

Edit sysctl.conf file:
nano /etc/sysctl.conf
Add this line:
fs.file-max = 80000


or  sysctl -w fs.file-max=80000
Then run command to load config:
sysctl -p
nano  /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
sudo sysctl -p
# reload systemctl  centos-7
 sudo systemctl daemon-reload
reboot 

PMTA

    Recent Comments

    No comments to show.

    Recent Comments

      Categories

      Recent Posts

      Installing PMTA

      PMTA Powermta Introduction PowerMTA is a Commercial ...

      By Ilirjan Trushilla / January 14, 2023

      Sender Dependent

      Introduction to Outgoing IPs By default, ...

      By Ilirjan Trushilla / January 14, 2023

      Preheader

      You can insert invisible pre-header text ...

      By Ilirjan Trushilla / January 14, 2023

      Calendar

      April 2024
      M T W T F S S
      1234567
      891011121314
      15161718192021
      22232425262728
      2930  

      Archives