PowerMTA, or Power Mail Transfer Agent, is a robust and flexible email delivery solution widely used by businesses for sending high volumes of emails efficiently. Installing PowerMTA on CentOS 7 provides a stable platform for managing email campaigns effectively. In this guide, we'll walk through the step-by-step process of installing PowerMTA on CentOS 7.
Prerequisites:
Before proceeding with the installation, ensure you have the following:
- A CentOS 7 server with root access.
- Basic knowledge of the Linux command line.
- A valid PowerMTA license.
Step 1: Download PowerMTA
- Visit the official Port25 website to download the PowerMTA software package.
- Choose the appropriate version for CentOS 7 and download the package to your server.
Step 2: Install Required Dependencies
- Connect to your CentOS 7 server via SSH.
- Update the system packages:
Vps Server
The second thing you will need is a VPS server. a public server to install & Setup SMTP.
In My Post i Am Using Digitalocean Vps Server.
Here is a list of some companies:
Software Need
-Putty
PuTTY is a free and open-source terminal emulator, serial console and network file transfer application.
2. Install Process
:-First Create a Vps Server.
- Go to Digitalocean And Create A Droplet
2. Choose an image
3.Choose a plan (i am using $10 machine)
Enter Your Root Password:-
4.Choose a hostname
In Hostname Put Your Domain Name. i am Using Server.icsindiahost.tk. server is sub domain. Server.yourdomain.com
5.Now Click Create droplet. Few Minutes After You Receive a Email.
:-Install PowerMta Mail Server Using Putty
- First Open Putty Software And Put Your Server Ip Address.
2. Now Login as Root User .
3. Vesta Control Panel Install:-
- # Connect to your server as root via SSHssh [email protected]
- # Download installation script curl -O http://vestacp.com/pub/vst-install.sh
- # Run it bash vst-install.sh
- The installation is complete
4 .Install PowerMTA:-
1.Upload the PMTA5.0r8 installation package Using Winscp Software.
2.Second, install the PMTA5.0 mail system
rpm -Uvh PowerMTA-5.0r8.rpm
PowerMTA Installed Successfully. Now You Need Configure Some File.
Then Copy your license file to /etc/pmta/ and you are done!
3. Configure config file:-
Config file located in /etc/pmta/ directory just open it so we edit and configure.
You will find a place where you can change the IP address And Also Find a Place Where You Can Change Your domain Name.
Now restart PowerMTA service using the following command:
service pmta restart
Configuration Is Complete.
4. Send a Test Email:-
Hostname: Your Ip Server Ip Address/domain Name
Username: Your in config file
Password: Your password XXXXX from the section in config file
Port: 25
Go to SMTPER.NET and enter your server details as follows:
installation and configuration PowerMTA Completed.
Configure SPF, DKIM and DMARC:-
Dkim (DomainKeys Identified Mail) :–
Run the following commands:
1: openssl genrsa -out dkim.private.key 1024
2: openssl rsa -in dkim.private.key -out dkim.public.key -pubout -outform PEM
Now Open Dkim.public.key File and copy dkim code.
Dkim Format
"v=DKIM1; k=rsa; p=Your Dkim Code"
Now Open your DNS zone in and add the following record
SPF (Sender Policy Framework):–
To set up SPF. Open your DNS zone in and add the following record:
v=spf1 a ip4:XXX.XXX.XXX.XXX ~all
XXX.XXX.XXX.XXX = Replace with your server IP.
DMARC (Domain-based Message Authentication, Reporting & Conformance):–
Open your DNS zone in and add the following record
v=DMARC1; p=none; fo=1; rua=mailto:[email protected]; ruf=mailto:[email protected]
By following this guide, you have successfully installed PowerMTA on CentOS 7, providing a reliable platform for managing email delivery at scale. Remember to configure and monitor PowerMTA regularly to ensure optimal performance and deliverability of your email campaigns.