Update 2 files
- /home/.chezmoiscripts/universal/run_onchange_after_05-postfix.sh.tmpl - /home/dot_config/postfix/com.apple.postfix.master.plist
This commit is contained in:
parent
d17ffbff54
commit
6b63e0a8de
2 changed files with 37 additions and 4 deletions
|
@ -60,10 +60,17 @@ if command -v postfix > /dev/null; then
|
|||
sudo postmap /etc/postfix/sasl_passwd
|
||||
fi
|
||||
|
||||
### Enable / restart postfix
|
||||
if [ -d /Applications ] && [ -d /System ]; then
|
||||
### macOS
|
||||
# Source: https://budiirawan.com/install-mail-server-mac-osx/
|
||||
sudo postfix start
|
||||
sudo postfix reload
|
||||
else
|
||||
### Enable / restart postfix on Linux
|
||||
logg info 'Enabling / restarting postfix'
|
||||
sudo systemctl enable postfix
|
||||
sudo systemctl restart postfix
|
||||
fi
|
||||
else
|
||||
logg warn '/etc/postfix is not a directory! Skipping SendGrid Postfix setup.'
|
||||
fi
|
||||
|
|
26
home/dot_config/postfix/com.apple.postfix.master.plist
Normal file
26
home/dot_config/postfix/com.apple.postfix.master.plist
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?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>com.apple.postfix.master</string>
|
||||
<key>Program</key>
|
||||
<string>/usr/libexec/postfix/master</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>master</string>
|
||||
<string>-e</string>
|
||||
<string>60</string>
|
||||
</array>
|
||||
<key>QueueDirectories</key>
|
||||
<array>
|
||||
<string>/var/spool/postfix/maildrop</string>
|
||||
</array>
|
||||
<key>AbandonProcessGroup</key>
|
||||
<true/>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
Loading…
Reference in a new issue