sudo chown -R pmta:pmta /etc/pmta sudo chmod 0600 /etc/pmta/license sudo chmod 0644 /etc/pmta/config Use code with caution. Step 4: Configuring the config File
# Define the MTA's hostname hostname = example.com
To ensure your server is working correctly, send a test email:
dnf install -y wget curl tar gzip make gcc libtool pcre-devel zlib-devel openssl-devel powermta 60r3 install
# Process identification pidfile /var/run/pmta.pmta logfile /var/log/pmta/pmta.log spool /var/spool/pmta
Once configured, start the PowerMTA daemon and the web-based monitoring console. Start PMTA: sudo systemctl start pmta sudo systemctl enable pmta Use code with caution. Copied to clipboard Start HTTP Management Console:
<smtp-user your_smtp_username> password "your_strong_password" source smtpuser-auth </smtp-user> sudo chown -R pmta:pmta /etc/pmta sudo chmod 0600
echo "Test Email Body" | mail -s "Test Subject" -r sender@yourdomain.com recipient@example.com Use code with caution.
# Define the MTA's IP address ip_address = 192.168.1.100
# Define the delivery settings delivery_method = mysql delivery_database = powermta delivery_query = SELECT forward_to FROM forwardings WHERE local_part = '%s' AND domain = '%d' password "your_strong_password" source smtpuser-auth <
CentOS 7/8, RHEL 8/9, or Ubuntu 20.04/22.04 LTS Access Level: Root or a user with explicit sudo privileges Dependencies: libc6 , libssl , openssl , and wget DNS and Network Readiness
# Start the PMTA service systemctl start pmta # Enable the web management console (optional) systemctl start pmtahttp # Check status to ensure it's running systemctl status pmta Use code with caution. Copied to clipboard Step 6: Verify Installation