Thursday, August 07, 2014

Konfigurasi External Mail (CentOS 6.0)

Isi script :
[root@webmailx ~]# more .sync
#!/bin/sh

    export MAILTO=kkkkkk@zzzzzz.go.id
    export RSYNC_RSH="/usr/bin/ssh -p xxxx"

    unset SSH_AUTH_SOCK

    if egrep -q '^rsync.*root' /proc/*/cmdline > /dev/null  2>&1
    then
            echo `date` already in progress >> /sync.log/sync.log
            exit 0
    fi