-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Snawoot/postfix-mta-sts-resolver
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |