Starting with 5.5r3, the engine, the web monitor and the command tool can run as the pmta user: sudo -u pmta pmtad, sudo -u pmta pmtahttpd, sudo -u pmta pmta. Right after installation pmta is a user without login.
The conditions are mandatory: run-as-root false and listeners above port 1024; on top of that the nofile and nproc limits in /etc/security/limits.conf may need raising.
A node that ran as root will trip over permissions: the owner of /etc/pmta, /var/lib/pmta, /var/log/pmta, /var/spool/pmta and /opt/pmta is changed by hand, for example with chown -R pmta:pmta.
The Hub places configuration files with the owner pmta — that is file permissions, not a change of the user the engine runs as.
Conditions and how to check each:
| Condition | How | Check |
|---|---|---|
| run-as-root false | the line and a restart | ps -o user= -C pmtad |
| ports above 1024 | smtp-listener | ss -ltnp |
| limits | pmta hard nofile 100000, pmta hard nproc 100000 | sudo -u pmta sh -c ‘ulimit -Hn’ |
| directory owner | chown -R pmta:pmta of the five directories | ls -ld /var/spool/pmta |
# limits for the pmta user, the manual's example pmta hard nofile 100000 pmta hard nproc 100000
4 relations
ps -o user=,comm= -C pmtad ls -ld /etc/pmta /var/lib/pmta /var/log/pmta /var/spool/pmta /opt/pmta
3 articles
◇What protects the web monitor and what that protection is notThree different protections — an address list, encryption and advice not to expose the monitor to the internet; there is not a single account.◇How the node decides whether to let an HTTP request inTwo ways to identify yourself — an access level by address and a key; the key is stronger and works from any address.◇The activation key is a prerequisite for installation, not a step after itWithout an activation key from SparkPost support the engine neither installs nor runs, and the license tier sets the outbound connection ceiling: on Standard everything above 200 is ignored.