Vcom Web Tech

Step-by-Step Guide to Installing AutoPMTA on CentOS 6

Introduction

Ensuring reliable email delivery is crucial for businesses and organizations relying on email marketing or transactional emails. PowerMTA (PMTA) stands out as a robust email delivery solution, offering scalability and advanced features. AutoPMTA, a management tool for PMTA, enhances its usability by providing a user-friendly interface for configuration and monitoring.

In this guide, we’ll walk through the process of installing AutoPMTA on a CentOS 6 server. CentOS 6, although older, is still in use in various environments, and understanding its setup process remains valuable for legacy systems.

 Prerequisites

Before we begin, ensure you have:

1. CentOS 6 Server: Access to a CentOS 6 server with root or sudo privileges.

2. AutoPMTA Package: Downloaded the AutoPMTA package from the official website.

3. Basic Knowledge: Familiarity with Linux command line and server management.

Step-by-Step Installation Guide

1. Remove Base repo file and add

rm -rf /etc/yum.repos.d/CentOS-Base.repo

vi /etc/yum.repos.d/CentOS-Base.repo

2. Update System Packages

Next update all installed packages to their latest versions:

sudo yum update

3. Install Required Dependencies

AutoPMTA may require additional packages. Install these dependencies using YUM:

sudo yum install wget unzip

4. Download and Extract AutoPMTA

Navigate to the directory where you want to install AutoPMTA. Use `wget` to download the AutoPMTA package and `unzip` to extract it:

wget http://www.autopmta.com/download/autopmta.zip

unzip autopmta.zip

5. Install AutoPMTA

run the installation script:

sh autopmta.sh

___         __        ____  __  ____________

/ | _ / / / _ \/ |/ /_ / | / /| |/ / / / / _ \/ // / /|/ / / / / /| | / / // / // // / / / / / / / / |
/
/ |_,/_/____// // // // // ||

1) Interspire 3) Mumara 5) quit
2) Mailwizz 4) PowerMTA-Only

?1

Please enter the domain to be configured on this server (no http or www) ex. greek :

example.com

Please enter a word , letter or term that will serve as reverseDNS, eg mail, mta, rdns NOTE = Do not use numbers!

mail

Please enter your MySQL password you want to use:

your_password

Please enter your SMTP username? example: contact

admin

Do you want to forward all emails sent to [email protected] to an external address? (yes/no)

no

What is the fixed sending speed per hour you want to configure for each IP ? e.g. 10000

1000

What is the external email to receive email monitoring of this server ?

click enter button

This server will carry out a complete maintenance routine daily
Enter the time at which this routine should happen :
Example : Eleven o’clock is 23 , midnight is 00 , three in the morning is 03 …
Based on the example , enter the time of maintenance with a decimal number 00-23
Please note: ( 00/23 )

02

This server will perform daily backups of applications and store the copy of the last 7 days
Still want to configure Backup FTP service once a week ? (yes/no)

no

Do you want to configure the user pinger in mysql with external access ? (yes/no)

yes

Do you want to set up a special port for ssh ? (yes/no)

no

What is the fixed sending speed per hour you want to configure for each IP ? e.g. 10000

1000

Do you want to set a different limit of 250 emails per ip per hour? RECOMMENDED is 50 and below emails per ip per hour (yes/no)

yes

What is the maximum amount of emails by IP / hour you want to configure for each provider ? e.g. 40

45

Would you like the installer to automatically import 1 million spamtraps? (yes/no)

yes

You want to install Interspire with Plugins? (ANSWER YES) (yes/no)

yes

Follow the prompts during installation. Provide necessary information such as installation path and administrative credentials.

 6. Start AutoPMTA Service And Web Monitor

Once installed, start the AutoPMTA service:

sudo service pmta start

sudo service pmtahttp start

 7. Access AutoPMTA Web Interface

AutoPMTA provides a web-based interface for managing PMTA configurations. Access it using a web browser:

http://your-server-ip:1212

Replace `your-server-ip` with your server’s IP address. Log in using the credentials set during installation.

8. Copy SMTP Data

copy smtp data and add to mailing application

SMTP data

     – Email address: [email protected]

     – User: admin

     – Password: vipa2049899ca0c

9. Add DNS Records on Your Domain

DNS information :
$TTL 38400
@ IN SOA ns1.example.com. postmaster.example.com. (
20240719073846 ; serial
90M ; refresh
15M ; retry
14D ; expire
3600 ; default_ttl
)

example.com. 14400 IN NS ns1.example.com.
example.com. 14400 IN NS ns2.example.com.

ns1 14400 IN A x.x.x.x
ns2 14400 IN A x.x.x.x

example.com. 14400 IN A x.x.x.x

localhost 14400 IN A 127.0.0.1

example.com. 14400 IN MX 0 example.com.

server IN A x.x.x.x
www IN A x.x.x.x

mail0 IN A x.x.x.x

example.com. IN TXT “v=spf1 a mx ptr a:example.com ip4:x.x.x.0/24 ?all”

_adsp._domainkey.example.com. IN TXT “dkim=all”

_domainkey.example.com. IN TXT “o=~; [email protected]

_dmarc.example.com. IN TXT “v=DMARC1; pct=100; ruf=mailto:[email protected]; rua=mailto:[email protected]; p=reject; adkim=r; aspf=r”

default._domainkey IN TXT ( “v=DKIM1; k=rsa; “
“p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqZOBGsWUfQl+YvbwglTCu6jkYwAzpO9UoXoCufW7HbheVQUgjkXYN+wy3FoguOBdsc+GBGNFzx0Q7ABlChTMDjUG+J3jAiyoo78VX8ot46oo64yulug3GlBY8s8DGckveMC46s2CsEc+KGJW6z1cmHvlZlIdgox82DE7o/3gN0QIDAQAB” )

Conclusion

By following these steps, you’ve successfully installed AutoPMTA on your CentOS 6 server. This setup empowers you to efficiently manage and monitor your PMTA instances, ensuring optimized email delivery performance. For further customization and advanced configurations, consult the [email protected]

Enhance your email delivery reliability today with AutoPMTA and CentOS 6!

Feel free to customize this guide further based on your specific environment and requirements. Happy emailing!

Leave a Comment

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

Scroll to Top