| 1 | #!/opt/local/bin/zsh |
|---|
| 2 | |
|---|
| 3 | sudo launchctl stop "org.postfix.master" |
|---|
| 4 | sudo launchctl unload -w "/System/Library/LaunchDaemons/org.postfix.master.plist" |
|---|
| 5 | |
|---|
| 6 | pushd "/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" |
|---|
| 15 | popd; |
|---|
| 16 | |
|---|
| 17 | sudo launchctl load -w "/System/Library/LaunchDaemons/org.postfix.master.plist" |
|---|
| 18 | sudo 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 : |
|---|