How to configure Hostname in PowerMTA

By default, PowerMTA uses the server’s hostname. You can specify a custom hostname per Virtual MTA. To set a hostname for VitualMTA, add host-name entry as follows. host-name smtp1.serverok.in #domain-key default,smtp1.serverok.in,/etc/pmta/default.smtp1.serverok.in.pem max-msg-rate 100/h

Install PowerMTA

Install the requirments yum install unzip net-tools telnet git gdb -y If you already have a mail server remove it. yum remove postfix -y If you want to keep current mail server, you can run PowerMTA on a port other than 25. cd /root/PMTA/ unzip PowerMTA5.0r1.zip cd /root/PMTA/PowerMTA5.0r1 yum install PowerMTA-5.0r1-201909161531.x86_64.rpm service pmta stop service … Read more

PowerMTA test using telnet

To test PowerMTA using telnet, run telnet localhost 25 Now paste following content ehlo localhost mail from: admin@smtp1.serverok.in rcpt to: you@your-domain.com data Subject: Testing This is text email. . quit To see logs tail -f /var/log/pmta/pmta.log To see PowerMTA queue, run pmta show queues See PowerMTA

PowerMTA IP Rotation

To setup IP rotation in PowerMTA, configure multiple IP on the server. Setup rDNS for each of these IP, point a sub domain to these IPs same as the reverse DNS entry. Here is an exable First we need to edit DNS records. Add folowing A records. pmta1.sevrerok.in A 176.123.8.12 pmta2.sevrerok.in A 176.123.8.13 pmta3.sevrerok.in A … Read more

PowerMTA route mails through another SMTP server for a domain

If you want to route emils from PowerMTA though another SMTP server, you can use following config. In this example, all outgoing emails to @outlook.com domain will get routed through Amazon SES. Edit PowerMTA config file vi /etc/pmta/config Add folowing queue-to amazon-ses.route auth-username USER_NAME_HERE auth-password PASSWORD_HERE route email-smtp.us-west-2.amazonaws.com:587 use-starttls yes require-starttls yes Restart PowerMTA systemctl … Read more

Enable Web Monitor UI in PowerMTA

PowerMTA comes with a Web Monitor UI, that will show you some stats about your mail server, also able to run some commands, edit PowerMTA configuration file. To enable Web Monitor UI, you need to white list your IP address in PowerMTA configuration, for this you need a fixed IP Address. vi /etc/pmta/config Find http-access … Read more

PowerMTA allow an IP to sent email

To allow a web server to send email through PowerMTA with out autentication, you need to edit PowerMTA configuration file vi /etc/pmta/config Add a source entry for the IP address that you need to allow relaying mails always-allow-relaying yes smtp-service yes Replace IP_ADDRESS with IP address of web server that you need to allow sending … Read more

Create DKIM in PowerMTA

To generate DKIM, run the command This will create 2 files. private.pem and public.pem Create a file and copy the content of the file private.pem in it. Public Key The file public.pem contains the public key, which you need to put in your DNS zone. public.pem file contains something that looks like the following. NOTE: … Read more

Change SMTP port in PowerMTA

To change SMTP port in PowerMTA, edit file vi /etc/pmta/config Find line starting with smtp-listener This line specify port used by PowerMTA server. You can change the power on this line. If you need PowerMTA listen to multiple ports, duplicate the line and change port, this will make PowerMTA work using both ports. smtp-listener 0/0:2525 … Read more

Create SMTP user in PowerMTA

Once you have PowerMTA installed, you need to create SMTP user. To create an SMTP user, edit file vi /etc/pmta/config Find # # password “changeme” # Add below password “SMTP_PASSWORD_HERE” source {smtpuser-auth} smtp-service yes always-allow-relaying yes require-auth true process-x-virtual-mta yes default-virtual-mta vmta-1 remove-received-headers true #add-received-headers false hide-message-source true #smtp-source-host 79.137.44.176 smtp1.serverok.in #domain-key default,smtp1.serverok.in,/etc/pmta/default.smtp1.serverok.in.pem max-msg-rate 100/h … Read more

PowerMTA

PowerMTA is a highly configurable mail server for email marketing. Unlike general email servers, PowerMTA can be configured to meet your special mail delivery requirements. List mails in the queue To reload PowerMTA PowerMTA config file location To see mail queue status, run