PMTA

PMTA Commands

In this article we are presenting most useful PMTA (PowerMTA) command that we use on daily basis. As you know PowerMTA offers more reliable, scalable, and flexible sending than any other MTA. PowerMTA is an enterprise-grade email message transfer agent (MTA) for sending high-volume, business-critical email.

It is important to be able to use it efficiently. It is easy to create snippets in the sidebar using iTerm terminal. Give it a try. it helps a lot.

Ok so here are the commands:

Show mail queue:

pmta show queue
pmta show topqueues

Show domains to which mails are being sent

pmta show domains
pmta show topdomains

Show status of Traffic, Connections and Queues

pmta show status

Show jobs

pmta show jobs

Start and Stop PMTA

pmtawatch --start pmta
pmtawatch --stop pmta

Show status of Virtual MTAs

pmta show vmtas

Show status of registration with PowerMTA Management Console

pmta show registration

Show settings

pmta show settings domain

Show license information of PMTA

pmta show license

Show PowerMTA version

pmta show version
pmtad --version
pmtastats --version
pmtaacct2xml --version

Show Date, OS, OS version, OS architecture, Kernel version

pmtashowstacks --version

Executables:

/usr/sbin/pmta 			- PowerMTA main executable
/usr/sbin/pmtaacct2xml 		- PowerMTA accounting file to XML converter
/usr/sbin/pmtaacctfind 		- PowerMTA account finder
/usr/sbin/pmtad 		- PowerMTA daemon
/usr/sbin/pmtagetfile 		- Allows writing files generated by appendtofile into new files
/usr/sbin/pmtahttpd		- PowerMTA web monitor
/usr/sbin/pmtakeytool		- PowerMTA key tool
/usr/sbin/pmtasendfile		- Allows sending files with/without acknowledgment
/usr/sbin/pmtashowstacks	- Shows PowerMTA stack trace if GDB or GNU Project Debugger is installed
/usr/sbin/pmtastats		- PowerMTA statistics program
/usr/sbin/pmtawatch		- PowerMTA daemon monitor
/opt/pmta/api/pipe/appendtofile	- Pipe API application that appends messages to a file
/opt/pmta/api/pipe/newfile	- Pipe API application that writes each message to a separate new file

Service files:

/etc/init.d/pmta		- PowerMTA ESMTP mailer
/etc/init.d/pmtahttp		- PowerMTA web monitor

PID files:

/var/run/pmta.pid		- PowerMTA PID
/var/run/pmtahttp.pid           - PowerMTA web monitor PID

Ports

Port 25		=> pmtad daemon listens on this port
Port 2304	=> pmtahttpd daemon listens on this port

Lock file

/var/lock/subsys/pmta

Mail spool directory

/var/spool/pmta/

Certificate file used by PowerMTA web monitor

/var/lib/pmta/webmon.pem

License file

/etc/pmta/license

Configuration files

/etc/pmta/config		- Main configuration file
/etc/pmta/config-defaults	- Configuration defaults for PowerMTA. This file is read before reading the main configuration file
/etc/pmta/habeas.sample		- Contains sample Habeas headers (http://google.com/search?q=Habeas+headers+in+mail)
/etc/pmta/lsof			- Contains settings invoked by PowerMTA if it runs out of file descriptors
/etc/pmta/mkcrashlog		- Contains settings that formats the PowerMTA crash log

Log files

/var/log/pmta/log			- PowerMTA mail log file
/var/log/pmta/pmtahttp.log		- PowerMTA web monitor log file
/var/log/pmta/pmta.log			- PowerMTA main log file
/var/log/pmta/acct-bounced.csv		- Details of bounced mails in CSV format
/var/log/pmta/acct-delivered.csv	- Details of delivered mails in CSV format
/var/log/pmta/acct-recieved.csv		- Details of received mails in CSV format
/var/log/pmta/totalBounced.csv		- Details of total bounced mails in CSV format
/var/log/pmta/oldBounced.csv		- Old details of all bounced mails in CSV format
/var/log/pmta/oldDelivered.csv		- Old details of all delivered mails in CSV format
/var/log/pmta/oldRecieved.csv		- Old details of all received mails in CSV format
(optional) /opt/pmta/pmta-acct-old-bounced	- Old details of all bounced mails in CSV format
(optional) /opt/pmta/pmta-acct-old-delivered	- Old details of all delivered mails in CSV format
(optional) /opt/pmta/pmta-acct-old-recieved	- Old details of all received mails in CSV format
(syntax) /var/log/pmta/acct-YYYY-MM-DD-0000.csv			- Archived details of mails in CSV format
(syntax) /var/log/pmta/acct-bounced-YYYY-MM-DD-0000.csv		- Archived details of bounced mails in CSV format
(syntax) /var/log/pmta/acct-delivered-YYYY-MM-DD-0000.csv	- Archived details of delivered mails in CSV format
(syntax) /var/log/pmta/acct-recieved-YYYY-MM-DD-0000.csv	- Archived details of received mails in CSV format
(syntax) /var/log/pmta/totalBounced-YYYY-MM-DD-0000.csv		- Archived details of total bounced mails in CSV format

Damien Pierce

Enabling your marketing to be creative and consistent.

Related Articles

Leave a Reply

Your email address will not be published.

Check Also
Close
Back to top button