|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: limit size per user
From: /dev/rob0 (rob0
gmx.co.uk)
Date: Tue Jun 21 2005 - 06:28:08 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tuesday 21 June 2005 06:13, Beast wrote:
> >>Is there any way to implement mail limitation per user basis?
> [snip]
> Any workaround for this? (possibly using policy server?)
A policy service does indeed have a "size" attribute, so yes, but you
might have problems with SMTP vs. ESMTP connections. IIUC, SIZE is an
ESMTP extension, not a part of the original SMTP specification. From
the SMTPD_POLICY_README:
The "size" attribute value specifies the message size that the
client specified in the MAIL FROM command (zero if none was
specified). With Postfix 2.2 and later, it specifies the actual
message size when the client sends the END-OF-DATA command.
So, you might need to check_policy_service twice: first in
smtpd_recipient_restrictions, then in smtpd_end_of_data_restrictions.
This might be desired anyway, since an ESMTP client might lie about
message size.
--
mail to this address is discarded unless "/dev/rob0"
or "not-spam" is in Subject: header
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]