Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: eiceic on June 01, 2005, 06:56:32 PM

Title: Spamassasin White/Black List
Post by: eiceic on June 01, 2005, 06:56:32 PM
I already have a huge white / black list in a text file from my previous anti-spam solution.   Is the SpamAssasin WL/BL stored in a text file or mysql where I can push the whole list at once?

Thanks,

Chris Buechler[/i]
Title: Spamassasin White/Black List
Post by: m on June 01, 2005, 07:59:10 PM
They are stored in /home/e-smith/spamassassin_V3
under key wbl.global in property/value pairs = domain/[Black|White]

So loop through your black list and execute for each domain entry the command
/sbin/e-smith/db spamassassin_V3 setprop wbl.global domain_name Black

Do the same with your white list and use 'White' as the value

Go to the servermanager panel and klick save&restart

I haven't tested this, but that should be the way how to do it.

Michael
Title: Automation
Post by: eiceic on June 02, 2005, 12:16:22 AM
Excellent!  That worked great.

Can I use the same/simlar technique to automate adding users, ibays, hosts, etc.?

I'd like to be able to install SME, and then run a script that asks me a few more questions and adds the users/ibays/etc..

Thanks,

Chris Buechler
Title: Re: Automation
Post by: m on June 02, 2005, 12:42:45 AM
Quote from: "eiceic"
Excellent!  That worked great.

Thanks.

Quote

Can I use the same/simlar technique to automate adding users, ibays, hosts, etc.?

Sure.

But before re-inventing the wheel for adding/deleting users you may want to have look on:
http://www.neddix.com/sme6/nx-sme-adduser/

You should also have a look here:
http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/lazy-admin-tools.htm

Good luck,
Michael
Title: Thanks
Post by: eiceic on June 02, 2005, 01:18:05 AM
Thanks again Michael -- just what I needed

Chris