question abt quarantine release
Nik Muhammed Muhyyiddin
nik_muhyyiddin at hotmail.com
Sun Sep 21 05:59:37 IST 2008
I used this script
#!/bin/sh
# this is the final destination for the mail to be released:
# postfix's incoming queue
POSTFIX_DEST=/var/spool/postfix/incoming
# check for valid parameters
if [ -z "$1" ]; then
echo "Syntax: release.sh <Message-ID>"
echo "Example: release.sh 678362AC.9CFE7"
exit
fi
# find the specific mail in the quarantine folders
folder=`find /var/spool/MailScanner/quarantine/ -name $1`
mailname=`echo $1 | cut -d . -f1`
# copy the mail
if [ -e $POSTFIX_DEST/$mailname ] ; then
echo "ERROR: $mailname already in $POSTFIX_DEST! EXITING"
echo "This should not happen"
exit 255
fi
cp -avi "$folder/$mailname" "$POSTFIX_DEST/$mailname"
# make it 0700 so that the mail is deemed ready
chmod 0700 $POSTFIX_DEST/$mailname
- nik
-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Benedict
simon
Sent: Sunday, September 21, 2008 2:27 AM
To: mailscanner at lists.mailscanner.info
Subject: question abt quarantine release
Dear AlL,
I am using the following n been workin succesfully
Centos 5.1
smtp server running sendmail
mailscanner
spamassassin+clamav
mailwatch
now i wd like to know the following
any quarantined mail by mailscanner i am using mailwatch to succesfully
release it and it works grt
i would like to know how could i realese mail quarantined by mailscanner
without mailwatch
i have root privileges to the system
apprecite your help
regards
simon
--
Network ADMIN
-------------
KUWAIT MUNICIPALITY:
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list