[Mimedefang] Creating a Ram Based Spool Directory

John Rowan Littell littejo at earlham.edu
Tue Jun 3 19:02:01 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----

And just to chime in, for a FreeBSD box, the setup is similar, but
slightly trickier.  First, you have to determine which device file is
your swap slice (often the second, or 'b' slice on the first disk, for
example, /dev/sd0s1b).  Your memory filesystem uses this as a signal
to the kernel to use RAM.  The mount command, assuming a swap slice of
/dev/sd0s1b, will be:

mount -t mfs -o -s1048576 /dev/sd0s1b /var/spool/MIMEDefang

This will create a 512 MB memory filesystem (the -s size is in 512
byte blocks).  Incidentally, 512 MB is the maximum allowed on a
stock FreeBSD system (compile a new kernel to change this).  For
some reason, FreeBSD mounts this with asynchronous updates.  To
force synchronous, ammend the command to

mount -t mfs -o -s1048576,noasync /dev/sd0s1b /var/spool/MIMEDefang

The line to add to /etc/fstab is this:

/dev/sd0s1b  /var/spool/MIMEDefang  mfs  rw,-s1048576,noasync  0  0

Everything else is the same as for other OSen.

  --rowan

Lo, Lucas Albers and the coffee pot sang in unison:

> These are the steps to mount the mimedefang spool directory on a ramdisk.
> on Linux.
>
> Command to mount:
> mount -t tmpfs -o size=200m,mode=0700,uid=defang,gid=defang /dev/shm/
> /var/spool/MIMEDefang
>
> Entry to add in your /etc/fstab
> /var/spool/MIMEDefang   /dev/shm size=200m,mode=0700,uid=defang,gid=defang
> /dev/shm/ /var/spool/MIMEDefang
>
> This will not result in the loss of any mail, if your machine is powered off.
>
> The exact steps are:
> Stop mimedefang.
> add the fstab entry
> mount the volume using the command
> mount /var/spool/MIMEDefang
> start mimedefang.
> Send a test message through.
>
> IT IS IMPORTANT THAT YOU CALCULATE THE CORRECT SPOOL SIZE!
> Please refer to the page, for calculating the size of your ramdisk:
> http://www.mimedefang.org/node.php?id=16
>
> Dave, can you add this to the tips page?
>
> --Luke
> _______________________________________________
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
>

- -- 
John "Rowan" Littell
Systems Administrator
Earlham College Computing Services
http://www.earlham.edu/~littejo/
2003-06-03 17:45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
Comment: Made with pgp4pine 1.76

iQCVAwUBPt0ospdUNSJ2nf/5AQE+hgP/QlTZ+J1O5tZA8AEXaURhz9GdRs5yVgBt
qM4gE5zLF4yCb6qK3cK2ssT+6GNqymbfc32Ct8ZEeF/MlW3EqaOcNlHcsTRIvn/E
D9E5/4u9mGh3O/1KbR7237fN/AU0KnPYiLq1WW5Y+gdUzSvKp/Y0oflpdggC5t/V
NxwlOcDrzp8=
=cdmc
-----END PGP SIGNATURE-----




More information about the MIMEDefang mailing list