Home | Comics | wishlist | Donations | Impressum | The Book of Postfix | Postfix - Einrichtung, Betrieb und Wartung | 22.214.171.124
n * (1 + max(expansionfactor)) * $message_size_limit
Let's assume 5 instances, $message_size_limit of 10 MB = 50 MB for the
original mails alone.
Now add space for the unpacked mail: 5*10 MB raw mail size become about 5*8 MB binary size , unpack at ratio 1:2, become 80 MB.
Sum: 130 MB.
/dev/shm /var/amavis tmpfs defaults,noexec,nodev,nosuid,size=150m,mode=750,uid=7509,gid=54322 0 0Use the uid of the user your amavisd-new runs as. As gid use the group clamd runs as. "mode=750" makes sure that other users like clamd which need to be able to read this directory are able to access it. Also choose the size sufficiently large!
/dev/aacd0s2b /var/amavis mfs rw,-s=65536 0 0Where the first column is the device on which your swap lives, the second the mounted directory, and the -s=NNN is the size in 512k blocks. The example creates a 32Mb MFS file system on /var/amavis. Prior to 5.x you need in your kernel config file this entry which is normally the default:
md /var/amavis mfs rw,-s64m 0 0in 5.x you need:
/dev/wd0b /var/amavisd/tmp mfs rw,async,-s=524288 0 0or from the command line
mount_mfs -s 524288 /dev/wd0b /var/amavisd/tmp/
swap - /var/amavis tmpfs - yes size=200Mor from the command line
mkdir /var/amavis mount -F tmpfs -o size=200m swap /var/amavisBut see SUNWdrvs8 here
© by Ralf Hildebrandt
This document contains links to external information sources that I do neither monitor nor control. I explicitly disclaim any liabilities in respect to external references.
You are getting this document without any guarantees. Any methods shown above are meant as demonstration and may be wrong in some place. You may damage your system if you try to follow my hints and instructions. You do this at your own risk!
This file was last modified 17. Jan 2007 by root