inGuide | Digital Marketing, Online Business & WordPress
  • Home
  • Blog
  • Deals
  • Services
  • Forum
    • New Forum
  • Free Resources
    • inSend: Mailwizz
  • Contact
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
Email Marketing

Install & Configure PowerMTA on CentOS with IP rotation

install-configure-powermta-centos-8

Installing & configuring PowerMTA could be a daunting task for beginners. However, if you are in digital marketing especially email marketing you would be tempted to try PowerMTA once in a life. Therefore, I have came up with the simplest way to install PowerMTA step by step on CentOS 7/8.

Beginning

First of all, PowerMTA can be installed standalone as well as along with some control panels like VestaCP, CyberPanel, cPanel, Virtualmin/Webmin, CentOS Web Panel, Froxlor, etc. In another article, I already have discussed the installation of VestaCP. If you want to install PowerMTA on VestaCP you can follow it.

In this article, I will be talking about standalone installation. Let’s Begin.

Requirement for PowerMTA

  1. VPS or cloud or dedicated server with at least 2GB of RAM (recommended minimum 8GB). I am using Contabo in this demonstration. Install CentOS on the cloud.
    Best and cheap VPS for email marketing
  2. A domain name. I prefer to buy domain names from Namecheap, Godaddy.
  3. PowerMTA rpm file and license. You can get it from Sparkpost.

Environment Setup

First of all, you need to install a couple of software to connect/upload files to the server.

Connecting to server

If you are windows then you will need a SSH client to connect to server. A simple and easy SSH client is putty

Open the putty and paste the IP address of your server

enter-ip-putty

Enter the username, it could be root or anything else provided by your hosting.

Now enter the password. In order to paste anything on putty, use the right click of the mouse.

enter-username-password-in-putty

Note that password won’t be displayed, therefore you don’t have to right click again and again, just click once.

Checking port accessibilty

Nowadays most of the cloud service providers sell cloud/VPS with port 25 blocked. Unless port 25 is open emailing wouldn’t be possible from your server. Therefore, it’s a good idea to check if outgoing traffic is permitted on port 25.

Install telnet with following command

yum install telnet -y
telnet smtp.gmail.com 25

The output will be something like this

If you are not getting above result, this means port 25 is blocked for outgoing traffic or, in other words, your hosting provider has blocked port 25. You may want to request them to open port 25.

To exit the above command windows type

quit

followed by enter.

VPS Setup

First of all you need to install CentOS 7/8 on VPS or cloud, which I already did on Contabo. If your hosting is different then make sure to select CentOS 7/8, when placing order.

Let’s update the CentOS

yum update -y

After the update finishes off, set up the hostname as follows

hostnamectl set-hostname mail.yourdomain.com

Don’t forget to replace yourdomain.com with your domain name. After that check, whether hostname is updated or not.

hostname

You will see the output of hostname the following

Domain Setup

Now we will set up the domain. Login to your domain registrar and create A record. Also, make sure you have MX record for your domain. If not then create one.

TypeNameValue
AmailYour IP ADDRESS
MX@mail.yourdomain.com

In the MX record set the priority to 10.

Uploading the PowerMTA

Now it’s time to upload the rpm package and license to your cloud/VPS. For this purpose, you will need an FTP client like FileZilla or WinSCP.

After the upload, follow the next section for installation.

Installation and Configuration of PowerMTA

Now we have the rpm package on the server. Let’s check the content of current directory to make sure uploaded file exist in it.

ls -l

Now, after verification, it’s time to install PowerMTA.

rpm -ivh PowerMTA.rpm

Don’t forget to replace PowerMTA.rpm with your rpm package name.

Next step is to copy the license file to the /etc/pmta directory.

After this step it’s time to configure pmta so download the config file here.

Next, we are going to make changes in the configuration file on the PC itself. Open it in notepad or notepad++.

Replace the IP address and domain name.

Also, update the SMTP details to make them unique.

Now, before sending out first email, you need to create following DNS records.

  • SPF record :
v=spf1 a mx a:yourdomain.com ip4:44.91.76.19 ~all
  • DMARC record: For _dmarc.yourdomain.com
v=DMARC1; p=none
  • rDNS record: To create rDNS record login to hosting and look for your server IP.
  • DKIM record: Creating DKIM records is a little complicated. It’s been discussed in a separate article.

Testing of SMTP

Now after hard work, it’s time to test the server. Go to https://smtper.net and fill in the details as follows. Also, check out 10 tools to check the efficacy of your SMTP server.

SMTP Hostmail.yourdomain.com
SMTP port2525
Use autheticationYes
Loginadminuser
PasswordadminPassWord
Email From[email protected]
Email to[email protected]

Let’s open Gmail to check whether an email has been delivered or not.

Voila! We successfully installed and configured PowerMTA.

Let me know in comment if you have any question. I will be happy to answer.

February 15, 2021/38 Comments/by Dhiraj Rahul
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail
https://inguide.in/wp-content/uploads/2021/02/PowerMTA.png 886 1831 Dhiraj Rahul https://inguide.in/wp-content/uploads/2021/02/inguide_logo_red_340_156-300x138.png Dhiraj Rahul2021-02-15 04:23:352021-12-06 05:56:31Install & Configure PowerMTA on CentOS with IP rotation
38 replies
  1. Essa
    Essa says:
    May 8, 2021 at 1:03 pm

    Thank you so much i was looking for this article

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      May 8, 2021 at 3:46 pm

      You are welcome.

      Reply
  2. Dave
    Dave says:
    June 6, 2021 at 12:13 pm

    Hello thanks sir..

    Must I install any control panel on my server before installing PMTA?

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      June 9, 2021 at 4:07 am

      No, it’s not necessary.

      Reply
  3. kamrul
    kamrul says:
    July 14, 2021 at 8:48 am

    he bro can u assist me to add dkim record…I previously added dkim record properly..but now it’s not working

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      July 20, 2021 at 10:54 am

      https://inguide.in/generate-and-validate-dkim-online-super-easy-way/

      Reply
  4. Freehosting
    Freehosting says:
    July 20, 2021 at 6:20 pm

    Hi Bro,

    I am getting below error any suggestions ?
    SMTP send error
    Mailbox unavailable. The server response was: 5.7.1 relaying denied: in “RCPT TO:”

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      July 21, 2021 at 4:00 am

      Check your credentials and do not spoof/masquerade.

      Reply
  5. Atul Bhosle
    Atul Bhosle says:
    October 21, 2021 at 8:10 am

    Hi everything went perfect
    I just wanted to know to to do ip rotation and how many ips acn i add and how many domains can i use on 1 pmta server

    Reply
  6. wensel morrison
    wensel morrison says:
    November 12, 2021 at 7:39 pm

    Hello,
    Am happy with your tutoral but i want to know how to get the powerMTA software for installation

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      November 13, 2021 at 1:29 pm

      you can buy it from sparkpost.com

      Reply
  7. Pryan
    Pryan says:
    November 13, 2021 at 12:13 pm

    dkim does not pass for subdomain, is there a work around?

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      November 13, 2021 at 1:30 pm

      You are doing it wrong. try again.

      Reply
      • Pryan
        Pryan says:
        November 13, 2021 at 3:57 pm

        how can i share what i did with you please?

        Reply
        • Pryan
          Pryan says:
          November 13, 2021 at 4:01 pm

          i keep getting dkim invalid on mailtester. i created record for it on dns and also added a new part for subdomain in pmta

          domain-key key1,*,/etc/pmta/key1.example.com.pem
          domain-key key1,*,/etc/pmta/key1.sub.example.com.pem

          created record key1._domainkey.sub.
          Value v=DKIM1\; k=rsa\; p=MIIBIjA

          Reply
          • Dhiraj Rahul
            Dhiraj Rahul says:
            November 20, 2021 at 1:58 am

            Edit v=DKIM1\; k=rsa\; p=MIIBIjA
            and get rid of “\”
            to get this v=DKIM1; k=rsa; p=MIIBIjA..

  8. marshall
    marshall says:
    November 27, 2021 at 4:16 am

    This man lectures are the reason I know some certain things that are very useful in email marketing today and I wish him more knowledge and wisdom.

    Reply
  9. Irene
    Irene says:
    December 19, 2021 at 2:11 am

    Trying to install PowerMTA and running into this error. I have searched Google for hours trying to find a solution but have come up empty handed. Do you know how to fix this?

    error opening /var/run/pmta.pid: Error opening /var/run/pmta.pid: file not found, status = ENOENT

    Reply
  10. manikandan
    manikandan says:
    December 20, 2021 at 8:49 pm

    Hello Bro
    can you please explain about how to install postfix in losthost and also i need to know how to access that postfix by web console. by installation with php and sql server please help me

    Reply
  11. Sayan Roy
    Sayan Roy says:
    February 9, 2022 at 9:14 am

    Hi,
    Thank you for the article. I have installed powerMTA using this article, but I would like to use 587 port instead of 25. Can you please guide how to achieve that?

    Reply
  12. y
    y says:
    March 28, 2022 at 12:37 pm

    mv: cannot move ‘oempro432’ to ‘/var/www/html/oem’: No such file or directory
    chmod: cannot access ‘/var/www/html/oem/*’: No such file or directory
    error reading information on service httpd: No such file or directory
    error reading information on service mysqld: No such file or directory
    install.sh: line 66: /etc/init.d/iptables: No such file or directory
    error reading information on service iptables: No such file or directory
    install.sh: line 68: /etc/init.d/httpd: No such file or directory
    install.sh: line 69: /etc/init.d/mysqld: No such file or directory
    install.sh: line 77: /etc/init.d/crond: No such file or directory
    install.sh: line 78: /etc/init.d/mysqld: No such file or directory
    Redirecting to /bin/systemctl restart pmtahttp.service
    Failed to restart pmtahttp.service: Unit pmtahttp.service not found.

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      April 19, 2022 at 2:09 pm

      What is this install.sh file?

      Reply
  13. Sourabh
    Sourabh says:
    June 8, 2022 at 7:43 am

    Not able to open port 25.
    please help me with that ??

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      June 16, 2022 at 1:49 pm

      Contact Hosting Provider

      Reply
  14. konzo
    konzo says:
    September 2, 2022 at 10:36 pm

    does the pmta as work on ubuntu 20.

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      September 9, 2022 at 2:18 am

      Yes

      Reply
  15. big
    big says:
    September 10, 2022 at 9:07 pm

    Starting pmta (via systemctl): Job for pmta.service failed because the control process exited with error code. See “systemctl status pmta.service” and “journal ctl -xe” for details.
    [FAILED]

    mine kept failing

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      September 16, 2022 at 6:26 am

      share output of
      systemctl status pmta.service

      Reply
      • Muthukumar Sunderrajan
        Muthukumar Sunderrajan says:
        September 27, 2022 at 1:27 am

        how can we do that

        Reply
        • Dhiraj Rahul
          Dhiraj Rahul says:
          September 28, 2022 at 8:07 am

          Do what?

          Reply
  16. Hector
    Hector says:
    October 12, 2022 at 11:51 am

    Hello, Nice video tutortial, Howevr you didn’t cover the IP rotation part.
    or do you have a different video for that?

    Reply
  17. someone
    someone says:
    November 3, 2022 at 3:45 am

    can you please help me about thq

    Reply
  18. someone
    someone says:
    November 3, 2022 at 3:50 am

    can you please help me about that error
    PowerMTA5.rpm is for architecture amd64 ; the package cannot be built on this system
    im trying to install it on oracle instance with
    Canonical-Ubuntu-20.04-aarch64-2022.08.15
    can you please suggest any version of powermta working great with that version of ubunto or any help please

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      November 4, 2022 at 9:12 am

      RPM package can be installed on RedHat based distribution. Try installing it on
      1. CentOS
      2. AlmaLinux
      3. RockyLinux

      Reply
  19. Endy
    Endy says:
    February 9, 2023 at 11:08 am

    Please how do i get the PowerMTA.rpm

    Reply
  20. king clane
    king clane says:
    August 4, 2023 at 11:08 pm

    I am having issues with the dns configuration.

    Reply
  21. Crompton Mario
    Crompton Mario says:
    January 22, 2024 at 12:00 pm

    Hi

    can you please help me about that TLS configuration in PowerMTA™ 4.0r10

    Reply
  22. Mohamed
    Mohamed says:
    April 28, 2024 at 12:59 pm

    Hi do these things still work?

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

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

Table of Contents

Search Search

Recent Posts

  • Install Mattermost on Ubuntu/Debian
  • 17 Popular Free & Paid Mail Transfer Agents
  • Top 10 VPN Service Providers & Why!!
  • 15 Best Canva Alternatives for Graphic Design [Free & Paid]
  • 12 Best third-party SEO tools for your website
  • Best NFT Marketplace For Beginners
  • Best WordPress ad management plugin
  • What is Domain Name System blacklist (DNSBL)?
  • Introduction to the Basics of Linux
  • What is Proxy Server?

Categories

  • Chat & Collaboration
  • Domain
  • Email Marketing
  • Email Service
  • Graphic Design
  • Hosting
  • Learning Management System
  • Linux
  • Miscellaneous
  • Proxy
  • Search Engine Optimization
  • SMS
  • SMTP server
  • WooCommerce
  • Wordpress
  • WP Security
Popular
  • Postal-smtp-server
    Build Postal SMTP Server & Send Bulk Emails Step by...March 25, 2021 - 5:19 am
  • install-configure-powermta-centos-8
    Install & Configure PowerMTA on CentOS with IP rot...February 15, 2021 - 4:23 am
  • postal-create-SMTP-add-domain-SSL
    Simplest Way to Configure Postal & Create SMTP + Install...March 27, 2021 - 9:20 am
  • Install CyberPanel on Ubuntu and Create WordPress Websi...September 22, 2021 - 10:05 am
  • Create Mail Server on Windows with Open Source hMailSer...June 13, 2021 - 10:15 am
  • zimbra-free-ssl-certificate-install
    How to Install Free SSL Certificate on Zimbra Mail Serv...May 9, 2021 - 2:21 pm
  • install-zimbra-mail-server-on-centos-8
    Install Zimbra Mail Server on CentOS 7/8 Step by StepMay 9, 2021 - 6:05 am
  • Install and Configure MailCow – Best Self Hosted Mail...May 12, 2021 - 10:32 am
  • lets-encypt-certificate
    Installing Let’s Encrypt Free SSL Certificate on ...March 24, 2021 - 7:36 am
  • install-wordpress-cloud-hosting
    Super Easy Way to Install WordPress on Cloud Hosting in...March 30, 2021 - 1:35 am
Comments
  • vikasCannot "Build a new mail server" #3295 On a fresh installation...May 15, 2025 - 1:19 pm by vikas
  • SivaHow can find about aol blocking and know about email inbox...February 26, 2025 - 7:04 pm by Siva
  • RAKESH GUPTAWe want to change our default CentOS Mail Server to something...December 5, 2024 - 7:15 am by RAKESH GUPTA
  • LavisHey, Can you help me to choose good SMTP server between...November 18, 2024 - 11:12 am by Lavis
  • ApostleThis question is never answeredOctober 29, 2024 - 6:19 am by Apostle
Tags
Ahrefs Aol Canva dkim dkim generator dkim powermta dmarc generator easyengine email deliverability free Gmail install docker ubuntu install free ssl zimbra install mailcow install mailwizz install wordpress install wordpress on google install zimbra centos 8 iredmail mailcow Mailu mailu docker compose mailwizz Memberpress MTA open source chat app outlook Plugin Postal postal server postal smtp private chat server rocket.chat SEO smtp server spf generator Talos VPN WooCommerce WordPress wordpress on cloud hosting Yahoo zimbra zimbra mail server zimbra ssl

Follow us on Facebook

X Logo X Logo Followon X

Information

  • About
  • Account
  • Blog
  • Contact
  • Deals
  • List of VPS Hosting that Provides Open Port 25
  • Login
  • Newsletter
  • Privacy Policy
  • Terms of Service
  • Thank You
  • Verify Account

Resources

  • Account
  • Deals
  • Downloads
  • List of VPS Hosting that Provides Open Port 25
  • Login
  • Services
  • Thank You
  • Verify Account

Categories

  • Chat & Collaboration
  • Domain
  • Email Marketing
  • Email Service
  • Graphic Design
  • Hosting
  • Learning Management System
  • Linux
  • Miscellaneous
  • Proxy
  • Search Engine Optimization
  • SMS
  • SMTP server
  • WooCommerce
  • Wordpress
  • WP Security

Archive

  • November 2025
  • July 2023
  • June 2023
  • May 2023
  • January 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • September 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
© Copyright - inGuide | Digital Marketing, Online Business & WordPress
  • Terms of Service
  • Privacy Policy
Link to: 6 Free Control Panel as cPanel alternative in 2021 Link to: 6 Free Control Panel as cPanel alternative in 2021 6 Free Control Panel as cPanel alternative in 2021 Link to: Best and Cheap VPS hosting for email marketing Link to: Best and Cheap VPS hosting for email marketing hostingBest and Cheap VPS hosting for email marketing
Scroll to top Scroll to top Scroll to top