SMTP codebase import
This commit is contained in:
21
resources/systemd/stalwart-smtp.service
Normal file
21
resources/systemd/stalwart-smtp.service
Normal file
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Stalwart SMTP
|
||||
Conflicts=postfix.service sendmail.service exim4.service
|
||||
ConditionPathExists=/usr/local/stalwart-smtp/etc/config.toml
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
LimitNOFILE=65536
|
||||
KillMode=process
|
||||
KillSignal=SIGINT
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
ExecStart=/usr/local/stalwart-smtp/bin/stalwart-smtp --config=/usr/local/stalwart-smtp/etc/config.toml
|
||||
PermissionsStartOnly=true
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=stalwart-smtp
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
20
resources/systemd/stalwart.smtp.plist
Normal file
20
resources/systemd/stalwart.smtp.plist
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
|
||||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>stalwart.smtp</string>
|
||||
<key>ServiceDescription</key>
|
||||
<string>Stalwart SMTP Server</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/local/stalwart-smtp/bin/stalwart-smtp</string>
|
||||
<string>--config=/usr/local/stalwart-smtp/etc/config.toml</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
Reference in New Issue
Block a user