|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Custom message_size_limit
From: Asfihani (asfik
cakraweb.co.id)
Date: Sat May 08 2004 - 02:14:34 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
Is it possible to add some custom restriction in smtpd based on
message_size_limit, maybe it called check_message_size_limit?
The idea is borrowed from DATABYTES value in qmail which is
exportable, for example based on IP address/network.
Here an example:
smtpd_mumble_restrictions =
permit_mynetworks
reject_unauth_destination
check_message_size_limit hash:/etc/postfix/message_size_limit
...
/etc/postfix/message_size_limit:
# client from 10.0.0.1 max 1024000
10.0.0.1 1024000
# user
domain.tld max 2048000
user
domain.tld 2048000
And yes, the access format is different from access(5) definition.
If I recall correctly, Postfix has implemented this restriction with
creating policy script.
Maybe I'm expecting too much from Postfix, but I think it's easier to
apply without creating another policy :-)
Have nice weekend,
Asfihani
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]