Page 1 of 1

max mail/attachment size

Posted: Fri Jun 09, 2006 7:45 am
by ebag
Hi,

I want to restrict the maximum size of emails to be accepted by my Scalix server. I have created a rule file called "MAX-SIZE" in /var/opt/scalix/rules/ with the following content:
SIZE=10240 ACTION=REJECT NDN-INFO="Message too large, maximum is 10 MB"
then, I executed these commands
ommodrt -m <mailnode name> -d MAX-SIZE
omshut
omrc

My server now accepts only mails that are smaller than 10 Megs, so far so good I thought, but it seems to accept the mail first and then places it back in the inbox of the user. His/her mailclient will download that mail again, adding to the bandwith used.

What do I need to do so that the mail is rejected at SMTP stage, so that the mail won't be moved to the users INBOX?

Posted: Sat Jun 10, 2006 12:59 am
by ScalixSupport
Have you tried setting mailbox size restrictions?

Thanks,
Don

Posted: Sat Jun 10, 2006 3:13 pm
by ebag
I don't want to resstrict the size of the mailboxes, I want to restrict the size of each mail accepted by the smtp server, so that my system doessn't get clogged up with huge emails

Posted: Mon Jun 12, 2006 7:49 pm
by ScalixSupport
Messages over the limit aren't returned to the inbox. They are delivered to the sent items folder. The message rejection returned and delivered to the inbox of the sender is only 1k.

I don't think there is a way to stop messages that are over the limit from being stored in the sent items folder. In fact you wouldn't want this behavior because if the message wasn't on the sent items folder it would be lost. Instead you would want to modify the already constructed message on the sent items folder to get it under the size restriction and send again.

Regards,
Don