Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Snawoot/postfix-mta-sts-resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Snawoot committed Dec 15, 2018
2 parents f29266d + f724d14 commit bb84706
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
25 changes: 25 additions & 0 deletions contrib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Usage

The default Python version in RHEL7 (and clones) is too old, you need at least 3.5 to run postfix-mta-sts. However, Python 3.6 is availale in the Software collections

For other distributions please edit the Systemd Unit file accordingly

# Create a User (and Group) to run MTA-STS
```bash
useradd -c "Daemon for MTA-STS policy checks" mta-sts -s /sbin/nologin
```

# Systemd Unit file

Place the provided file to /etc/systemd/system and reload the system daemon

```bash
systemctl daemon-reload
```

To enable MTA-STS on system startup run

```bash
systemctl enable mta-sts.service
```

14 changes: 14 additions & 0 deletions contrib/postfix-mta-sts.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Postfix MTA STS daemon
After=syslog.target network.target

[Service]
Type=simple
User=mta-sts
Group=mta-sts
# This is the ExecStart path for RHEL7 using python 36 from the Software collections.
# You may use a different python interpreter on other distributions
ExecStart=/opt/rh/rh-python36/root/bin/mta-sts-daemon

[Install]
WantedBy=multi-user.target

0 comments on commit bb84706

Please sign in to comment.