Koozali.org: home of the SME Server

Limiting email attachment Sizes in Qmail.

Ashley SHaw

Limiting email attachment Sizes in Qmail.
« on: April 01, 2003, 01:34:23 PM »
Hi there everyone,

I have searched the forums for a solution to limit users qmail attachment sizes (not just for webmail), but it has been to no avail. I have a 64k dedicated connection to the net that is being clogged by irresponsible users. I am going to implement SquidGuard or/and DansGaurdian with SpamAssasin, this combination will make a great difference to the bandwidth problem, but the users are still mailing large attachments. Is there a way to limit users to e.g.1Mb attachments? If so does it require extra software or can Qmail itself be configured to apply these limits?

Thanks alot in advance!!   ;-)

Cheers
Ashley in South Africa

Bertrand CHERRIER

Re: Limiting email attachment Sizes in Qmail.
« Reply #1 on: April 01, 2003, 01:50:05 PM »
in the /var/qmail/control directory you can create a file name databytes, it will fix the maximum size of an outgoing message (take into account the mime enveloppe for your attachement size limit -+=25%)

http://www.lifewithqmail.org/lwq.html

Damien Curtain

Re: Limiting email attachment Sizes in Qmail.
« Reply #2 on: April 01, 2003, 02:11:56 PM »
Ashley SHaw wrote:
>
> Hi there everyone,
>
> I have searched the forums for a solution to limit users
> qmail attachment sizes (not just for webmail), but it has
> been to no avail. I have a 64k dedicated connection to the
> net that is being clogged by irresponsible users. I am going
> to implement SquidGuard or/and DansGaurdian with SpamAssasin,
> this combination will make a great difference to the
> bandwidth problem, but the users are still mailing large
> attachments. Is there a way to limit users to e.g.1Mb
> attachments? If so does it require extra software or can
> Qmail itself be configured to apply these limits?

I think you'll find you can do:
/sbin/e-smith/db configuration setprop smtpfront-qmail MaxMessageSize
/sbin/e-smith/signal-event email-update

Where is the maximum message size in bytes.
--
 Damien

Troy Robinson

Re: Limiting email attachment Sizes in Qmail.
« Reply #3 on: April 04, 2003, 06:06:12 AM »
Any other ideas???
I've tried both these methods and it still won't change the attachment size limit.
Am running e-smith 5.1

Thanks in advance.
Troy