Shai wrote:

Hi,

I have setup my QS like so:

./configure --admin virus --domain mydomain.com --notify
admin,sender --scanners fprot,vexira --local-domains
mydomain.com,myotherdomain.com

./configure --install --admin virus --domain mydomain.com --notify
admin,sender --scanners fprot,vexira --local-domains
mydomain.com,myotherdomain.com

/var/qmail/bin/qmail-scanner-queue.pl -r
setuidgid qmaild /var/qmail/bin/qmail-scanner-queue.pl -g

With this setup, only [EMAIL PROTECTED] gets a report of virii going to
myotherdomain.com. Is there a way to setup a [EMAIL PROTECTED] for each of my
domains and then each admin can view his domains virus activity?

AFAIK...no way to do this via Q-S but, off-hand, I'm thinking you could use procmail/maildrop to do so.


For example [untested] procmail recipe for [EMAIL PROTECTED] account:

--- /home/adminuser/.qmail-virus --
|preline /usr/bin/procmail -m /home/adminuser/.procmailrc-virus

--- /home/adminuser/.procmailrc-virus ---
PATH=/usr/bin:/usr/local/bin:.
MAILDIR=$HOME/Maildir/       #make sure it exists!
DEFAULT=$MAILDIR
LOGFILE=$MAILDIR/procmail.log
LOCKFILE=$HOME/.lockmail
VERBOSE=1
LINEBUF=8192

# first match on the fact that QS send virus rpts as
# "System Anti-Virus Administrator"
:0 h
* ^From:.*System Anti-Virus Administrator.*
{
# test for which domain should get notice
# based on QS message body textlike:
# Your message was sent with the following envelope:
# MAIL FROM: [EMAIL PROTECTED]
# RCPT TO: [EMAIL PROTECTED]
#
:0 B
* ^RCPT TO:.*myotherdomain1.com.*
{
# redirect the message:
:0
[EMAIL PROTECTED]
}
#
:0 B
* ^RCPT TO:.*myotherdomain2.com.*
{
# redirect the message:
:0
[EMAIL PROTECTED]
}
# and so on...
#
# default (no matches) will fall into $HOME/Maildir/
}
----
might be some fancier ways of using $MATCH in procmail recipe, but this oughta be enough to get started.
And...beware procmail.log will grow unbounded. Periodically clean/delete as needed.








-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to