Mounting mqueue.in as a tempfs...on FreeBSD

James Gray james_gray at OCS.COM
Tue Mar 23 23:15:21 GMT 2004


Jason Williams wrote:
> At 04:57 PM 3/23/2004 -0500, you wrote:
>
>>It's much faster, there is a MailScanner FAQ about using tmpfs and the
>>speed advantages, yes there is the risk of losing mail if the machine
>>crashes.
>
>
> Anyone figured out how to do it in FreeBSD? I can't quite seem to get it
> right. Every time I mount it a different way, MS can't read the directory
> and it doesn't work correctly.
>
> I appreciate anyone who can help me figure this out.
>
> Jason

Have a look at the archives for this list and take a peek at
http://www.stahl.bau.tu-bs.de/~hildeb/postfix/amavisd_tmpfs.shtml
(refers to amavis, but is easily adapted to MailScanner).

BTW, here's the lines from my /etc/fstab:
# First line is where swap is located, 2nd is the tmpfs dir (256Mb)
/dev/da0s2b  none                            swap sw           0 0
/dev/da0s2b  /var/spool/MailScanner/incoming mfs  rw,-s=524288 0 0

Then stop mailscanner, "mount /var/spool/MailScanner/incoming", start
mailscanner, and check your logs.  Voila.

HTH

James



More information about the MailScanner mailing list