[linux-network] Qmail Gelen - Giden Yedekleme

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Tolga Cengiz (tolga@alanyatirim.com.tr)
Date: Thu 16 Sep 2004 - 12:48:39 EEST


Selamlar eski qmail server ımla ufak bir script ile geden gilen maillerimin
yedeğini tutabiliyordum fakat qmailrocks tan kurduğum mail server da bu
script çalışmıyor yalnız eski sistem redhat 8.0 yeni sistem redhat 9.0 acaba
sorun bundan mı kaynaklanıyor onuda tam bilmiyorum + sorun aslında giden
leri yakalayamaması gelenleri yedekliyor ama giden mailleri hiç bir şekilde
yedekliyemiyor

Script Bu şekilde :

#!/bin/sh
### VARIABLES #########
# Replace this with your domain
MYDOM=domain.com
# The MYJ account is where all junk emails will go. Create this account.
MYJ=log
# Just leave this as is, but you can change it
MYMD=MAILER-DAEMON
# Just leave this as is
TODAY=`date`

# Start functions here

# Forward to Junk Quarantine
fwdjunk () {
        # Forward to Junk Quarantine
        # Read about qmail-inject.
        /var/qmail/bin/qmail-inject -f"postmaster@domain.com"
"yedek@yedek.com" < $tmpfile

        # This will clean up the temporary file.
        rm -f $tmpfile
}
######################
# MAIN part of the script.

tmpfile=/tmp/tmpmail$$
cat - > $tmpfile
fwdjunk

# This will clean up the temporary file
rm -f $tmpfile

exit 0

Yardımlarınızı bekliyorum saygılar

Tolga


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.