/go/installspf prepares Postfix to check the SPF record of incoming mail. It: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Install the SPF policy daemon and register it in Postfix
/go/installspf
Then finish the setup in main.cf and reload Postfix.
Options
None. Any arguments you pass are written to the log file and otherwise ignored.
Examples
# Run the installer
/go/installspf
# Check that the daemon user exists
id policyd-spf
# Check the entries added to master.cf
grep -nE '^(26|submission|smtps|policyd-spf)\b' /etc/postfix/master.cf
# Check that Postfix accepts the configuration
postfix check
# After reloading Postfix, check that ports 26, 465, and 587 are listening
ss -ltnp | grep -E ':(26|465|587)\b'
# Review past runs
tail /var/log/go/installspf.log
Output
The command prints one progress line, Installing SPF, followed by the output of the package manager. It does not print a success message and does not stop on errors: each step runs even if an earlier one failed. The exit status is that of the last command.
Every run adds a line to /var/log/go/installspf.log:
[Nov 20 14:03:11]# installspf
See the full reference at /go/installspf and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
