postfix
来自「邮件系统是Linux网络应用的重要组成」· 代码 · 共 47 行
TXT
47 行
#!/bin/sh# Gerben Wierda, Oct 2001. Adapted from an existing example. I waive every# copyright on this and I also do not give any warranty.# Updated Sepember 29, 2002# To work properly, the POSTFIX variable needs to be set to -YES-# in /etc/hostconfig. /etc/rc.commonif [ "${POSTFIX:=-NO-}" = "-YES-" -a "${MAILSERVER:=-NO-}" = "-YES-" ]then ConsoleMessage "Cannot run concurrent postfix and sendmail" sleep 2 exitfi### Start mail server##if [ "$1" == "start" ]then if [ "${POSTFIX:=-NO-}" = "-YES-" ] then ConsoleMessage "Starting Postfix mail services" /usr/sbin/postfix start fielif [ "$1" == "stop" ]then ConsoleMessage "Stopping Postfix mail services" /usr/sbin/postfix stopelif [ "$1" == "restart" ]then if [ "${POSTFIX:=-NO-}" = "-YES-" ] then ConsoleMessage "Reloading Postfix configuration" /usr/sbin/postfix reload else ConsoleMessage "Stopping Postfix mail services" /usr/sbin/postfix stop fifi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?