<br><font size=3>Try some Permutation of the following I think this might
work. Not sure tho. </font>
<br>
<br><font size=3>From: </font><a href=mailto:doron@crc.co.za></u></font><font size=3 color=blue><u>doron@crc.co.za</a><font size=3>
&nbsp; 1024 &nbsp;<b>Yes</b><br>
FromOrTo: &nbsp; &nbsp; &nbsp; default &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;-1 &nbsp;<b>No</b> </font>
<br>
<br>
<br><font size=3>Carinus</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Doron Shmaryahu&quot;
&lt;doron@crc.co.za&gt;</b> </font>
<br><font size=1 face="sans-serif">Sent by: mailscanner-bounces@lists.mailscanner.info</font>
<p><font size=1 face="sans-serif">2006/02/24 08:05</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
MailScanner discussion &lt;mailscanner@lists.mailscanner.info&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&quot;MailScanner discussion&quot; &lt;mailscanner@lists.mailscanner.info&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">RE: MailScanner per user mail size limit</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Hi,</font>
<br><font size=3>&nbsp;</font>
<br><font size=3>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</font>
<br><font size=3>&nbsp;I created a &nbsp;rule file contaiining the following:</font>
<br><font size=3>&nbsp;</font>
<br><font size=3>From: </font><a href=mailto:doron@crc.co.za></u></font><font size=3 color=blue><u>doron@crc.co.za</a><font size=3>
&nbsp; 1024<br>
FromOrTo: &nbsp; &nbsp; &nbsp; default &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;-1 &nbsp;</font>
<br><font size=3>&nbsp;</font>
<br><font size=3>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.</font>
<br><font size=3>&nbsp;</font>
<br><font size=3>I see the correct size reporting from sendmal from=&lt;</font><a href=mailto:doron@crc.co.za></u></font><font size=3 color=blue><u>doron@crc.co.za</a><font size=3>&gt;,
size=317660. Is there anything else I am missing ?</font>
<br><font size=3>&nbsp;</font>
<br><font size=3>thanks again</font>
<br><font size=3><br>
Doron</font>
<br>
<br>
<hr><font size=3><b>From:</b> mailscanner-bounces@lists.mailscanner.info
[mailto:mailscanner-bounces@lists.mailscanner.info] <b>On Behalf Of </b>Brad
Beckenhauer<b><br>
Sent:</b> 24 February 2006 05:14 AM<b><br>
To:</b> MailScanner discussion<b><br>
Subject:</b> Re: MailScanner per user mail size limit<br>
</font>
<br><font size=3>&gt;&gt;&gt; Doron Shmaryahu&lt;doron@crc.co.za&gt; 2/23/2006
4:22:49 PM &gt;&gt;&gt;</font>
<br><font size=3>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>
--</font>
<br><font size=3>This shoudl work for you.</font>
<br><font size=3>Create this file &quot;MaximumAttachmentSize.rules&quot;
in your &quot;rules&quot; </font>
<br><font size=3>directory and modify your MailScanner.conf as noted.</font>
<br><font size=3>&nbsp;</font>
<br><font size=3>#</font>
<br><font size=3># 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>
# &quot;Maximum Attachment Size = -1&quot;<br>
# to<br>
# &quot;Maximum Attachment Size = %rules-dir%/MaximumAttachmentSize.rules&quot;<br>
#<br>
# Example values, adjust as needed<br>
# 1k &nbsp; &nbsp;= 1024 bytes<br>
# 10k &nbsp; = 10240 bytes<br>
# 100K &nbsp;= 102400 bytes<br>
# 1MB &nbsp; = 1024000 bytes<br>
# 10MB &nbsp;= 10240000 bytes<br>
# 100MB = 102400000 bytes<br>
# 250MB = 256000000 bytes<br>
# 500MB = 512000000 bytes<br>
# 1GB &nbsp; = 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 &nbsp; &nbsp; Pattern &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; Size Limit<br>
# From: </font><a href=mailto:user@good.domain.com></u></font><font size=3 color=blue><u>user@good.domain.com</a><font size=3>
&nbsp; 1024000 &nbsp;# Limit FROM specified user to 1MB<br>
# From: </font><a href=mailto:*@friendly.domain.com></u></font><font size=3 color=blue><u>*@friendly.domain.com</a><font size=3>
&nbsp; &nbsp;10240000 # Limit FROM specified domain to 10MB<br>
# From: 123.234.567.2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;1024000 &nbsp;# Limit FROM IP address to 1MB<br>
# From: 123.234. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1024000 &nbsp;# Limit FROM IP range to
1MB<br>
# From: /^192\.168\.13[4567]\./ &nbsp; 1024000 &nbsp;# Limit FROM IP range
to 1MB<br>
# To: &nbsp; </font><a href=mailto:abc@xyz.com></u></font><font size=3 color=blue><u>abc@xyz.com</a><font size=3>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; # No Attachments allowed TO this user<br>
# To: &nbsp; </font><a href=mailto:*@yahoo.com></u></font><font size=3 color=blue><u>*@yahoo.com</a><font size=3>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1024000
&nbsp; # Limit all TO this Domain to 1MB</font>
<br><font size=3>#</font>
<br><font size=3>To: </font><a href=mailto:user1@your.domain></u></font><font size=3 color=blue><u>user1@your.domain</a><font size=3>
&nbsp; &nbsp; &nbsp; 102400 &nbsp; # Limit FROM specified user to 10Kbytes</font>
<br><font size=3>To: </font><a href=mailto:user2@your.domain></u></font><font size=3 color=blue><u>user2@your.domain</a><font size=3>
&nbsp; &nbsp; 1024000 &nbsp; # Limit FROM specified user to 1MB<br>
To: </font><a href=mailto:user3@your.domain></u></font><font size=3 color=blue><u>user3@your.domain</a><font size=3>
&nbsp; 10240000 &nbsp; # Limit FROM specified user to 10MB<br>
FromOrTo: &nbsp; &nbsp; &nbsp; default &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;-1 &nbsp; # Default, No attachment Size Checking.<br>
</font><font size=2><tt>-- <br>
MailScanner mailing list<br>
mailscanner@lists.mailscanner.info<br>
http://lists.mailscanner.info/mailman/listinfo/mailscanner<br>
<br>
Before posting, read http://wiki.mailscanner.info/posting<br>
<br>
Support MailScanner development - buy the book off the website! <br>
</tt></font>
<br><p><br />
  -- 
  <br />
  This e-mail and its contents are subject to the <br />
  <strong>South African Medical Research 
  Council </strong><br />
  e-mail legal notice available at <a href="http://www.mrc.ac.za/about/EmailLegalNotice.htm">http://www.mrc.ac.za/about/EmailLegalNotice.html</a></p>