Hi All, <br><br>I am runnig sendmail 8.13.8 with <span style="font-weight: bold;">MailScanner-4.58.9-1</span> on CentOS 5. I want to setup a rule which filters message sizes. <br><br>Below is the situation. <br><br>I have 20 users. They currently have full freedom to send and recive mails. No message size checking is done.
<br><br>Now I want to limit message size per user basic. <br><br>Let's say that <br> 5 users can only send mails up to 7 MB and they can recieve up to 5 MB. <br> 10 users can only send mails up to 10 MB and they can recieve up to 7 MB.
<br> and the remaining 5 users can only send mails up to 2MB and they can recieve up to 3 MB<br><br>How to set a rule like this. <br><br>In Mailscanner, There is a file called max.message.size.rules<br>
<br>It is given below. I wrote a rule. But it still does not work. <br>pls see below<br><br>[root@mailgw rules]# cat max.message.size.rules<br><br>To: <a href="mailto:userx@example.com">userx@example.com</a> 5M<br>
To: *@<a href="http://example.com">example.com</a> 3M<br>From: <a href="mailto:userx@example.com">userx@example.com</a> 7M<br>From: *@<a href="http://example.com">example.com</a> 2M<br><br>
<br># FromOrTo: default 0<br><br clear="all"><br><br>Could you pls let me know where I have gone wrong? <br><br><br>-- <br>Thank you<br>Indunil Jayasooriya<br>