using tmpfs files system

Julian Field MailScanner at
Thu Jun 28 21:58:54 IST 2007

Hash: SHA1

Hugo van der Kooij wrote:
> On Thu, 28 Jun 2007, Julian Field wrote:
>> Hash: SHA1
>> You should put mount instructions in /etc/fstab. Just follow the other
>> mounts that are already there. You will probably find a line for
>> /dev/shm. Just copy that line, and change /dev/shm to
>> /var/spool/MailScanner/incoming. Don't comment out or delete the
>> original line, you want both of them!
>> You can mount as many places as you like with tmpfs.
>> Then it will be automatically mounted every time you reboot.
>> If you want to mount it immediately, after you have put it in /etc/fstab
>> then just issue the command
>>    mount /var/spool/MailScanner/incoming
>> with no other parameters. It will pull all the information it needs out
>> of /etc/fstab.
>> Putting lines in rc.local is not the standard way of doing this! :-)
> The worst part is that you would mount a tmpfs AFTER starting 
> MailScanner.
> And changing working areas while a process is using them might lead to 
> failures.
Very true. Best to stop MailScanner before you do the mount command, and 
then start it again afterwards. I don't think I could guarantee its 
behaviour if you mount a new filesystem over the top of its working 
directories while it's running :-)

> Hugo.


- -- 
Julian Field MEng CITP
Buy the MailScanner book at

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit

Version: PGP Desktop 9.6.2 (Build 2014)
Charset: ISO-8859-1


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit

More information about the MailScanner mailing list