Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mailbox Size

0 views
Skip to first unread message

Andrzej Filip

unread,
Oct 30, 1998, 3:00:00 AM10/30/98
to alexver...@my-dejanews.com
alexver...@my-dejanews.com wrote:
> I've allways wondered about this topic, and all I can find at newsgroups is
> just the same questions, without a good solution, Sorry if this question
> has allready been discussed , But I couldn't found any answers so far...
>
> here it goes:
>
> I need to restrict users mailbox, ie: 10 Mb per user, I heard quotas are not a
> good way to do this.
>
> Another thing I'd like to do is to restrict the maxium message size for smtp.
> at the sendmail.cf i've found the option to do this, but it applies for all
> local connections & connections comming from the internet, I'd like to set
> different values for each.. and if possible, restrict maxium message size per
> USER account. is this possible at all?

1) remove F=m flag from local delivery agent specification

2) replace local mailer program in sendmail.cf by your wrapper script
When mailbox size is ok it calls the original delivery agent.
When its too big it exits with the appropriate exit code chosen from
<sysexits.h>

Sample delivery agent script:
The Bat Book 2nd ed. chapter 24.3

0 new messages