howto/SetupPostfix: Restart_Postfix.command

File Restart_Postfix.command, 660 bytes (added by martin.osx@…, 16 years ago)

Z-Shell script to restart postfix.

Line 
1#!/opt/local/bin/zsh
2
3sudo launchctl stop         "org.postfix.master"
4sudo launchctl unload -w    "/System/Library/LaunchDaemons/org.postfix.master.plist"
5
6pushd "/private/etc/postfix"
7    postmap "canonical"
8    postmap "sender_canonical"
9    postmap "virtual"
10    postmap "relocated"
11    postmap "transport"
12    postmap "generic"
13    postmap "sasl_passwd"
14    postmap "header_checks"
15popd;
16
17sudo launchctl load   -w    "/System/Library/LaunchDaemons/org.postfix.master.plist"
18sudo launchctl start        "org.postfix.master"
19
20# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 expandtab :
21# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :