[Mimedefang] move SPOOLDIR to tmpfs - how to keep bayes and qdir files at reboot?

2014-02-20 Thread Marcus Schopen
Hi,

I'm planning to move SPOOLDIR (/var/spool/MIMEDefang) to tmps.

My /etc/fstab
tmpfs   /var/spool/MIMEDefang  tmpfs
defaults,size=128m,mode=750,uid=ofdefanguser,gid=ofdefanggroup   0 0

This works fine, but mimedefang stores quarantinedir and spamassassin
bayes files in /var/spool/MIMEDefang too. How to handle this.
Copy /var/spool/MIMEDefang/.spamassassin at stop/start of mimedefang to
another directory outside tmpfs. And what about quarantinedir files.
Those fill up the ramdisk. Move them by cronjob?

Ciao
Marcus


___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] move SPOOLDIR to tmpfs - how to keep bayes and qdir files at reboot?

2014-02-20 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 20 Feb 2014, Marcus Schopen wrote:


I'm planning to move SPOOLDIR (/var/spool/MIMEDefang) to tmps.

My /etc/fstab
tmpfs   /var/spool/MIMEDefang  tmpfs
defaults,size=128m,mode=750,uid=ofdefanguser,gid=ofdefanggroup   0 0

This works fine, but mimedefang stores quarantinedir and spamassassin
bayes files in /var/spool/MIMEDefang too. How to handle this.
Copy /var/spool/MIMEDefang/.spamassassin at stop/start of mimedefang to
another directory outside tmpfs. And what about quarantinedir files.
Those fill up the ramdisk. Move them by cronjob?


if you compile MIMEDefang yourself, you can specify another quarantinedir. 
IMHO, you can change the location by setting: 
$Features{'Path:QUARANTINEDIR'}

anytime. E.g. at the top of your filter or in mimedefang.pl.

My .spamassassin is not located in MIMEDefang's spool dir. But I use the 
demon. You can most likly use a symlink, I mean:
On startup you setup the tmpfs and before starting MIMEDefang, e.g. in its 
init.d script, you create the symlink to the permanent spamassassin 
location.


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUwcDAZSHNCne69JnAQKevwf9HVu44ExXxgcS2yG+x3DJk8xrXDjMjrz+
Q3Zz+L5do7M68T5wCVl8JCQ3HScQJx/hmXtv4O9rZIhUqRJF71nt7iC2n62FYEhn
je6+zjL2ytNS7cjLjxTy3bkFpWDs5espXY2pVvEkPF3w6dX48A+kZ1fS2o5VPkts
vx3uaIBmiJB0IAS4Eia36zPi+xwJLZhktBX7zcQ2JfDEBlUmttqHEC4jOk6PGI/2
8ntld3+5/l2mmglT5lPcMnUJFpkucs9YF+SOqJGbsBFrOXGXRv22zi4PgKp+9i0B
MDFa0hVG7Kvkf+bkzuV0KJE1gNctNNE4opziXpWn3oQ6fjEJgnpBBA==
=Yt9Q
-END PGP SIGNATURE-
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang