Skip to content

Instantly share code, notes, and snippets.

@HerrSpace
Created May 24, 2017 23:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HerrSpace/faf77931a10098d3aa8fddc8dd9d5c44 to your computer and use it in GitHub Desktop.
Save HerrSpace/faf77931a10098d3aa8fddc8dd9d5c44 to your computer and use it in GitHub Desktop.
A systemd service file for opensmtpd.
[Unit]
Description=Opensmtpd Mailserver
[Service]
Type=simple
ExecStartPre=/usr/sbin/smtpd -n
ExecStart=/usr/sbin/smtpd -d
ExecStop=/usr/sbin/smtpctl stop
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment