On Sun, 2006-01-01 at 20:22 -0600, Johnny Hughes wrote:
> On Mon, 2006-01-02 at 08:50 +0700, Fajar Priyanto wrote:
> > On Sunday 01 January 2006 09:47 pm, Johnny Hughes wrote:
> > > On Sun, 2006-01-01 at 08:44 -0600, Johnny Hughes wrote:
> > > > I just upgraded to the newest spamassassin-toaster RPM.
> > > >
> > > > A customized local.cf file was rewritten by the RPM and it did not save
> > > > a backup copy. I had backed up the file because I saw in the changelog
> > > > that it was going to be changed, so this wasn't a huge deal this time.
> > > >
> > > > BUT... I thought that local.cf was the file where local changes should
> > > > be made, so shouldn't it be marked as a configuration file inside the
> > > > RPM so that the worse case condition is that you get a .rpmnew file
> > > > created ... or at least a .rpmsave file.
> > >
> > > Of course, the file is really:
> > >
> > > /etc/mail/spamassassin/local.cf
> >
> > Hi Johnny, can you share with us, what changes do you make in your local.cf
> > in
> > order to make spamassassin more effective?
> >
> > Also, where can I set that all spam caught be deleted automatically? Also
> > the
> > score?
> >
> > Previously I use qmail-scanner and we can change it in qmail-scanner pl.
>
> How I am moving items to quarantine (if you don't have a quarantine, it
> will delete SPAM in this setup) is to change the simscan-toaster SRPM:
>
> My simscan-toaster.spec looks like this for the config section:
>
> ------------
> %configure \
> --enable-user=clamav \
> --disable-ripmime \
> --enable-spam \
> --enable-received \
> --enable-quarantinedir=/var/qmail/quarantine \
> --enable-clamavdb-path=/usr/share/clamav \
> --enable-custom-smtp-reject
> ------------
>
> So, I removed:
>
> --enable-spam-passthru
>
> and I added
>
> --enable-quarantinedir=/var/qmail/quarantine
>
> Then I create the directory /var/qmail/quarantine and do:
>
> chown -R clamav:vchkpw /var/qmail/quarantine
>
> After that, all items that are spam (or viruses) are written to the
> quarantine directrory.
>
> Then I created a clean-up script named clean_quarantine that runs
> everyday (put it in /etc/cron.daily) ... it looks like this:
>
> --------------
> #! /bin/bash
>
> PATH=/bin:/sbin:/usr/bin:/usr/sbin
>
> /usr/bin/find /var/qmail/quarantine -mtime +14 -exec rm {} \;
> --------------
>
> As to changes to local.cf ... the only change I have changed in there
> now is that I have changed hits required from 5 to 6.Just for the record, I have now added some other things to local.cf: I moved my bayes databases to /var/qmail/bayes .. so created that directory and chmod'ed it with permissions like /var/qmail/quarantine above ... here are all the customizations I have now in local.cf: bayes_path /var/qmail/bayes/bayes bayes_file_mode 0664 use_bayes 1 use_bayes_rules 1 bayes_auto_learn 1 I want everything in /var/qmail and /var/log/qmail and /home/vpopmail (as I am using DRBD and failover on this server).
signature.asc
Description: This is a digitally signed message part
