Salvatore,

> Hi, I use postfix-2.1.5 & amavisd-new-2.3.1 and I want to configure the
> message_size_limit for every user in my domain but I have same indecision
> on about configure amavid.conf, in ml I have found this:
>
> @message_size_limit_maps = ({'[EMAIL PROTECTED]' => 20_000_000,
> '[EMAIL PROTECTED]' => 15*1024*1024,
> '[EMAIL PROTECTED]' => 0, # uses global limit
> '.example.com'      => 10*1024*1024 });
> $smtpd_message_size_limit = 20*1024*1024;  # global limit if nonzero
>
> .. it's correct ??

Yes. It is also in the RELEASE_NOTES:

- added a site-wide mail size limit $smtpd_message_size_limit, and a
  per-recipient mail size limit lookups @message_size_limit_maps along with
  SQL and LDAP fields, making it possible to reject mail based on its size.
  The list of lookup tables maps recipients to mail size in bytes, e.g.:

    @message_size_limit_maps = ({'[EMAIL PROTECTED]' => 20_000_000,
                                 '[EMAIL PROTECTED]' => 15*1024*1024,
                                 '[EMAIL PROTECTED]' => 0, # uses global limit
                                 '.example.com'      => 10*1024*1024 });
    $smtpd_message_size_limit = 20*1024*1024;  # global limit if nonzero

  A value of 0 or undef disables the check and is a default. A per-recipient
  limit is bound on the high side by the $smtpd_message_size_limit, and on the
  low side by 64kB, which is a minimal allowed size limit imposed by RFC 2821.

  This limiting really belongs to MTA and is only partially supported here
  (no admin notifications, no quarantine, no final_*_destiny configurability).
  It is mostly provided here to be able to place some sanity limit on runaway
  or malicious clients, or if someone insists on using amavisd-new in a
  pre-queue filtering setup; suggested by Tuomo Soini;


Mark


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to