| Dell Dimension 8200 | SolarisTM 10 x86 1/06 | 
POP Before SMTP with sendmail-8.13.8 + smtpfeed + clamav-milter AND SMTP認証 + SMTPS + POP3S
cyrus-sasl-2.1.22
1. BerkeleyDB.4.4.20のインストール
2. drac-1.12のインストール
3. cyrus-saslのインストール
4. SSL鍵とSSL証明書と ca-bundle.crtの作成
5. qpopper4.0.9のインストール
6. smtpfeed-1.20のインストール
7. clamav-milter (ウィルス対策)
8. sendmail-8.13.8のインストール
9. sendmail-8.13.8の設定
9-2. (バーチャルドメインの設定)
/* #include <crypt.h> */  | 
pwcheck_method: pwcheck  | 
#!/sbin/sh
# /usr/local/sbin/pwcheck
PS='/usr/bin/ps'
GREP='/usr/local/bin/grep'
AWK='/usr/local/bin/awk'
ALL_PID=`$PS -aef ¦ $GREP "/usr/local/sbin/pwcheck" ¦ $GREP -v grep ¦ $AWK '{print $2}'`
PID=`echo $ALL_PID ¦ $AWK '{print $1}'`
case "$1" in
'start')
        if [ -f /usr/local/sbin/pwcheck ]; then
                if [ $PID ]; then
                        echo "pwcheck has started"
                else
                        /usr/local/sbin/pwcheck
                        echo "Starting:  pwcheck"
                fi
        fi
        ;;
'stop')
        if [ $PID ]; then
                while [ $PID ]
                do
                        kill -9 $PID
                        ALL_PID=`$PS -aef ¦ $GREP /usr/local/sbin/pwcheck ¦ $GREP -v grep ¦ $AWK '{print $2}'`
                        PID=`echo $ALL_PID ¦ $AWK '{print $1}'`
                done
                echo "Stopping:  pwcheck"
        else
                echo "pwcheck has NotRnning"
        fi
        ;;
'restart')
        $0 stop
        sleep 3
        $0 start
        ;;
'status')
        if [ $PID ]; then
                echo "pwcheck starts"
        else
                echo "pwcheck has NotRnning"
        fi
        ;;
*)
        echo "Usage: $0 { start ¦ stop ¦ restart ¦ status }"
        exit 1
        ;;
esac
exit 0 |