[Bug 256711] mail/mimedefang: allow setting memory limits in rc.conf

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 19 Jun 2021 09:56:36 +0000

            Bug ID: 256711
           Summary: mail/mimedefang: allow setting memory limits in
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs_at_FreeBSD.org
          Reporter: ml_at_netfence.it
                CC: m.tsatsenko_at_gmail.com
             Flags: maintainer-feedback?(m.tsatsenko_at_gmail.com)
                CC: m.tsatsenko_at_gmail.com

Created attachment 225926
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=225926&action=edit
Allow setting MX_MAX_RSS and MX_MAX_AS in rc.conf

In order to avoid DOSes due to complex MIME, MIMEDefang sets some limits on how
much memory a process can use (MX_MAX_RSS and MX_MAX_AS).

The provided example init script sets these variables to very low values (which
probably made sense when RAM was much scarcer); the port already patches that
file, increasing them, but they are still way too low in some cases, resulting
in some mail messages crashing the filter and not passing.

This patch, while retaining the current port defaults, allows these thresholds
to be set in rc.conf.

You are receiving this mail because:
You are the assignee for the bug.
Received on Sat Jun 19 2021 - 09:56:36 UTC

Original text of this message