<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV dir=ltr align=left><SPAN class=146225405-24022006>Hi,</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006>thanks for response. I
have done as suggested below. I changed the line to read:Maximum Attachment Size
= /usr/local/etc/MailScanner/rules/MaximumAttachmentSize.rules<BR></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006> I created a
rule file contaiining the following:</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006>From: <A
href="mailto:doron@crc.co.za">doron@crc.co.za</A>
1024<BR>FromOrTo:
default
-1 </SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006>so in theory that should
block anything from me bigger than 1k. I have also restarted MailScanner but it
does not block it nothing. I have sent a couple of attachments above 200k but
still nothing. I turned Debug = yes so i could check for errors and
nothing.</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006>I see the correct size
reporting from sendmal from=<<A
href="mailto:doron@crc.co.za">doron@crc.co.za</A>>, size=317660. Is there
anything else I am missing ?</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=146225405-24022006>thanks again</SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=146225405-24022006><BR>Doron</SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<B>From:</B> mailscanner-bounces@lists.mailscanner.info
[mailto:mailscanner-bounces@lists.mailscanner.info] <B>On Behalf Of </B>Brad
Beckenhauer<BR><B>Sent:</B> 24 February 2006 05:14 AM<BR><B>To:</B> MailScanner
discussion<BR><B>Subject:</B> Re: MailScanner per user mail size
limit<BR><BR></DIV>
<DIV></DIV>
<DIV>>>> Doron Shmaryahu<doron@crc.co.za> 2/23/2006 4:22:49 PM
>>><BR>
<DIV style="COLOR: #000000">Hi,<BR><BR>I have MailScanner 4.50.15 running on a
FreeBSD 4.11 machine. All is<BR>working perfectly. I have read through the docs
on creating per user<BR>mail limits but until now I have still not been able to
make it work. I<BR>would like the rule file to control mail size limits for each
user.<BR><BR>Are there any problems with this ?<BR><BR>Could someone provide me
a example rule file or any hints/docs would be<BR>appreciated.<BR><BR>Thanks in
advance<BR><BR>Doron <BR>--<BR></DIV>
<DIV style="COLOR: #000000">This shoudl work for you.</DIV>
<DIV style="COLOR: #000000">Create this file "MaximumAttachmentSize.rules" in
your "rules" </DIV>
<DIV style="COLOR: #000000">directory and modify your MailScanner.conf as
noted.</DIV>
<DIV style="COLOR: #000000"> </DIV>
<DIV style="COLOR: #000000">#</DIV></DIV>
<DIV># File Location/Name:<BR>#
%rules-dir%/MaximumAttachmentSize.rules<BR>#<BR># This is where you can build a
ruleslist<BR># that allows you to specify attachment size limits in
bytes<BR>#<BR># In MailScanner.conf change:<BR># "Maximum Attachment Size =
-1"<BR># to<BR># "Maximum Attachment Size =
%rules-dir%/MaximumAttachmentSize.rules"<BR>#<BR># Example values, adjust as
needed<BR># 1k = 1024 bytes<BR># 10k = 10240
bytes<BR># 100K = 102400 bytes<BR># 1MB = 1024000 bytes<BR>#
10MB = 10240000 bytes<BR># 100MB = 102400000 bytes<BR># 250MB = 256000000
bytes<BR># 500MB = 512000000 bytes<BR># 1GB = 1024000000
bytes<BR>#<BR># Size limits and Default should be smaller than the
partition<BR># where they are temporarily stored. ;-)<BR>#<BR># Set
addresses/domains to be limited as follows:<BR>#
Direction
Pattern
Size Limit<BR># From: <A
href="mailto:user@good.domain.com">user@good.domain.com</A>
1024000 # Limit FROM specified user to 1MB<BR># From: <A
href="mailto:*@friendly.domain.com">*@friendly.domain.com</A>
10240000 # Limit FROM specified domain to 10MB<BR># From:
123.234.567.2
1024000 # Limit FROM IP address to 1MB<BR># From:
123.234.
1024000 # Limit FROM IP range to 1MB<BR># From:
/^192\.168\.13[4567]\./ 1024000 # Limit FROM IP range to
1MB<BR># To: <A
href="mailto:abc@xyz.com">abc@xyz.com</A>
0 # No Attachments allowed
TO this user<BR># To: <A
href="mailto:*@yahoo.com">*@yahoo.com</A>
1024000 # Limit all TO this Domain to 1MB</DIV>
<DIV>#</DIV>
<DIV>To: <A href="mailto:user1@your.domain">user1@your.domain</A>
102400 # Limit FROM specified user to
10Kbytes</DIV>
<DIV>To: <A
href="mailto:user2@your.domain">user2@your.domain</A>
1024000 # Limit FROM specified user to 1MB<BR>To: <A
href="mailto:user3@your.domain">user3@your.domain</A> 10240000
# Limit FROM specified user to
10MB<BR>FromOrTo:
default
-1 # Default, No attachment Size
Checking.<BR><BR></DIV></BODY></HTML>