Koozali.org: home of the SME Server

Spamassasin White/Black List

Offline eiceic

  • ****
  • 118
  • +0/-0
    • http://www.eicsoftware.com
Spamassasin White/Black List
« 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]

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
Spamassasin White/Black List
« Reply #1 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

Offline eiceic

  • ****
  • 118
  • +0/-0
    • http://www.eicsoftware.com
Automation
« Reply #2 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

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
Re: Automation
« Reply #3 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

Offline eiceic

  • ****
  • 118
  • +0/-0
    • http://www.eicsoftware.com
Thanks
« Reply #4 on: June 02, 2005, 01:18:05 AM »
Thanks again Michael -- just what I needed

Chris