Re: Some filtering questions, plz help me ; (

Salvatore Toribio <[email protected]>
Newsgroups gmane.mail.qmail.scanner
Message-ID <a06240802c1d0e654cf97@[10.0.1.2]>
At 19:43 +0200 14-01-2007, [email protected] wrote:
>Hello,
>I have two questions:
>(I am using qmr situation)
>
>1) How to drop mails which are OUTGOING or INCOMING from certain
>@domain.com or [email protected]?
>Ex1: I wish my users not to SEND mails to anyone to @domain.com, or to
>[email protected]
>Ex2: I wish my users not to RECEIVE mails from @domain.com, or from
>[email protected]
>
>2) How to make an EXCEPTION LIST (whitelist) for some of my users which
>can bypass those restrictions(from question 1).
>

Hi Angel

qmail-scanner doesn't have a feature to do what you are asking for 
directly but you can use the rules in quarantine-attachments.txt for 
your first question.

I believe you are using 1.25-st-qms, so enable virus_to_delete if you 
don't have it enabled and add a description for your rule, for 
example:

my $virus_to_delete="mydoom| .... |address not allowed";


Example of rules for quarantine-attachments.txt:

@domain.com	Virus-MAILFROM:	From address not allowed

[email protected]	Virus-RCPTTO:	Recipent address not allowed

Remember to use tabs between the fields and to generate the db after 
the changes.

For the second question you need to modify the qmail-scanner code...

Regards

ST

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.