Discussion:
mbox size limit
(too old to reply)
Anton Krall
2005-02-04 03:42:24 UTC
Permalink
Guys.

Im using postfix, mbox and virtual users and I was wondering if there is a
way to limit mbox sizes, since Im using virtual users, then quotas are out
of the question but is there any way to limit mbox sizes on a per domain or
per users (virtual) basis? And also, check constantly the sizes and in case
an mbox is over sized then reject incoming mail with a certain message and
also, deliver a notice to the mbox owner?

Any ideas? thx

Anton Krall
Victor Duchovni
2005-02-04 04:25:04 UTC
Permalink
Post by Anton Krall
Guys.
Im using postfix, mbox and virtual users and I was wondering if there is a
way to limit mbox sizes, since Im using virtual users, then quotas are out
of the question but is there any way to limit mbox sizes on a per domain or
per users (virtual) basis? And also, check constantly the sizes and in case
an mbox is over sized then reject incoming mail with a certain message and
also, deliver a notice to the mbox owner?
To enforce quotas on delivery, use filesystem quotas, assign each user
a different uid. Pick an OS with working filesystem quotas.

To enforce quotas when mail is received, periodically construct an
access map of over-quota users.
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:***@postfix.org?body=unsubscribe%20postfix-users>
Anton Krall
2005-02-04 05:01:27 UTC
Permalink
I cant assign uid to the users since they are virtual and I already have
everything setup using vpop3d, openwebmail etc.. But, how would I go about
limiting delivery of new mail when their mbox file is X size?

Can postfix do this? Can it be done on a per user basis?

-----Original Message-----
From: Victor Duchovni [mailto:***@MorganStanley.com]
Sent: Jueves, 03 de Febrero de 2005 10:25 p.m.
To: Anton Krall
Cc: 'Postfix users'
Subject: Re: mbox size limit
Post by Anton Krall
Guys.
Im using postfix, mbox and virtual users and I was wondering if there
is a way to limit mbox sizes, since Im using virtual users, then
quotas are out of the question but is there any way to limit mbox
sizes on a per domain or per users (virtual) basis? And also, check
constantly the sizes and in case an mbox is over sized then reject
incoming mail with a certain message and also, deliver a notice to the
mbox owner?
To enforce quotas on delivery, use filesystem quotas, assign each user a
different uid. Pick an OS with working filesystem quotas.

To enforce quotas when mail is received, periodically construct an access
map of over-quota users.
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:***@postfix.org?body=unsubscribe%20postfix-users>
Victor Duchovni
2005-02-04 05:08:08 UTC
Permalink
Post by Anton Krall
I cant assign uid to the users since they are virtual and I already have
everything setup using vpop3d, openwebmail etc..
A common approach is separate uids with a common gid, so that the POP/IMAP
server can read/write the mailboxes with group privs. This of course assumes
that the POP/IMAP server will not re-create the mailbox file anew, owned
by its own uid.
Post by Anton Krall
But, how would I go about
limiting delivery of new mail when their mbox file is X size?
Generate a list from cron and insert into an access(5) table.
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:***@postfix.org?body=unsubscribe%20postfix-users>
Anton Krall
2005-02-04 05:59:54 UTC
Permalink
The access table sounds good... No need to modify anything else.. If I was
setting everything up from scratch I would go for the gid way, sounds more
stable but, how does this sound?

Run a cron to check for mbox sizes, if mbox size > than allowed, add user to
an access table as denied and leave a local message on his mailbox so he can
clean it up... Sounds good?

-----Original Message-----
From: owner-postfix-***@postfix.org
[mailto:owner-postfix-***@postfix.org] On Behalf Of Victor Duchovni
Sent: Jueves, 03 de Febrero de 2005 11:08 p.m.
To: postfix-***@postfix.org
Subject: Re: mbox size limit
Post by Anton Krall
I cant assign uid to the users since they are virtual and I already
have everything setup using vpop3d, openwebmail etc..
A common approach is separate uids with a common gid, so that the POP/IMAP
server can read/write the mailboxes with group privs. This of course assumes
that the POP/IMAP server will not re-create the mailbox file anew, owned by
its own uid.
Post by Anton Krall
But, how would I go about
limiting delivery of new mail when their mbox file is X size?
Generate a list from cron and insert into an access(5) table.
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:***@postfix.org?body=unsubscribe%20postfix-users>
Anton Krall
2005-02-04 06:02:43 UTC
Permalink
I see that you can use numerical codes or just REJECT, etc on the access
table... Whats the RFC way to tell the sender that the mailbox for its
destination was full? Of course, telling this in a numeric and verbose way?

-----Original Message-----
From: owner-postfix-***@postfix.org
[mailto:owner-postfix-***@postfix.org] On Behalf Of Victor Duchovni
Sent: Jueves, 03 de Febrero de 2005 11:08 p.m.
To: postfix-***@postfix.org
Subject: Re: mbox size limit
Post by Anton Krall
I cant assign uid to the users since they are virtual and I already
have everything setup using vpop3d, openwebmail etc..
A common approach is separate uids with a common gid, so that the POP/IMAP
server can read/write the mailboxes with group privs. This of course assumes
that the POP/IMAP server will not re-create the mailbox file anew, owned by
its own uid.
Post by Anton Krall
But, how would I go about
limiting delivery of new mail when their mbox file is X size?
Generate a list from cron and insert into an access(5) table.
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:***@postfix.org?body=unsubscribe%20postfix-users>
Anton Krall
2005-02-04 06:12:16 UTC
Permalink
Victor: where should I define that access table?
smtpd_recipient_restrictions ? smtpd_sender_restrictions?

-----Original Message-----
From: owner-postfix-***@postfix.org
[mailto:owner-postfix-***@postfix.org] On Behalf Of Victor Duchovni
Sent: Jueves, 03 de Febrero de 2005 10:25 p.m.
To: Anton Krall
Cc: 'Postfix users'
Subject: Re: mbox size limit
Post by Anton Krall
Guys.
Im using postfix, mbox and virtual users and I was wondering if there
is a way to limit mbox sizes, since Im using virtual users, then
quotas are out of the question but is there any way to limit mbox
sizes on a per domain or per users (virtual) basis? And also, check
constantly the sizes and in case an mbox is over sized then reject
incoming mail with a certain message and also, deliver a notice to the
mbox owner?
To enforce quotas on delivery, use filesystem quotas, assign each user a
different uid. Pick an OS with working filesystem quotas.

To enforce quotas when mail is received, periodically construct an access
map of over-quota users.
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:***@postfix.org?body=unsubscribe%20postfix-users>
Magnus Bäck
2005-02-04 06:25:08 UTC
Permalink
On Friday, February 04, 2005 at 07:12 CET,
Post by Anton Krall
Victor: where should I define that access table?
smtpd_recipient_restrictions ? smtpd_sender_restrictions?=20
The restriction is put on each recipient address, so it should go in the
recipient restrictions.

--=20
Magnus B=E4ck
***@dsek.lth.se
Anton Krall
2005-02-04 07:25:15 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...