max mail/attachment size

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

ebag
Posts: 12
Joined: Wed Apr 12, 2006 7:54 am

max mail/attachment size

Postby ebag » Fri Jun 09, 2006 7:45 am

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?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Sat Jun 10, 2006 12:59 am

Have you tried setting mailbox size restrictions?

Thanks,
Don

ebag
Posts: 12
Joined: Wed Apr 12, 2006 7:54 am

Postby ebag » Sat Jun 10, 2006 3:13 pm

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jun 12, 2006 7:49 pm

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


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 11 guests

cron