[Mailmunge] Spool Ram Drive
dianne at skollsoft.com
Wed Aug 4 08:06:55 EDT 2021
On Wed, 04 Aug 2021 07:25:25 -0400
postfix--- via Mailmunge <mailmunge at lists.mailmunge.org> wrote:
> In figuring out a size for the spool ram drive, is it roughly
> (Mailmunge:MX_MAXIMUM) x's (Postfix:message_size_limit) ?
I typically put this in /etc/fstab:
tmpfs /var/spool/mailmunge tmpfs nosuid,nodev,uid=mailmunge,gid=mailmunge,mode=0750
This makes a RAM drive up to 1/2 the size of physical RAM. Under Linux,
though, a tmpfs volume only uses as much memory as there are actual
files in it, so it typically occupies much less than 1/2 of RAM.
The odds of getting MX_MAXIMUM maximally-sized messages all at once
is pretty darn low. The theoretical maximum would actually be roughly
twice this, because mailmunge decodes the MIME parts into the RAM disk
as well as storing the original messages.
More information about the Mailmunge