Koozali.org: home of the SME Server

Spamassassin: managing the whitelist [Solved]

Offline Frank VB

  • ****
  • 127
  • +0/-0
Spamassassin: managing the whitelist [Solved]
« on: July 19, 2007, 04:25:01 PM »
On my SME 7.1.3. server I have a panel in the Server manager called "E-mail WBL" (it's in the Configuration section). On this panel there is a button labelled "ACCEPT". If I click on this button I get a page where I can add a domain/e-mail address in the "spamassassin whitelist_from" textbox below.

My question: if I have to add more than one entry in this textbox, how do I separate the entries? Do I separate them with a comma (or other delimiter), such as in:

*@domain1.com, *@domain2.com

or do I put them on two separate lines:

*@domain1.com
*@domain2.com

This may sound like a stupid question, but I've searched the FAQ's, manuals and forum and haven't found an answer (yet).

On the same topic: Could anyone clearly explain what the difference is between the "spamassassin whitelist_from" and "qpsmtpd whitelistsenders" list? Should I add addresses/domains to both lists, or to only one of them?

Thanks!

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Spamassassin: managing the whitelist [Solved]
« Reply #1 on: July 20, 2007, 05:41:34 AM »
What contrib gave you those panels ?
Regards,
William

IF I give advise.. It's only if it was me....

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Spamassassin: managing the whitelist [Solved]
« Reply #2 on: July 20, 2007, 06:48:48 AM »
I put my lists in separate lines.

One deals with how the message is processed by the mail system and the other the spamassassin application

Quote from: "william_syd"
What contrib gave you those panels ?

http://mirror.contribs.org/smeserver/contribs/dmay/smeserver/7.x/testing/smeserver-wbl/

Offline Frank VB

  • ****
  • 127
  • +0/-0
Spamassassin: managing the whitelist [Solved]
« Reply #3 on: July 20, 2007, 09:38:17 AM »
Thank you for the answer, Stuntshell! It works. And yes, it's the smeserver-wbl contrib from Darrell May, version 0.0.1-a8.

Frank

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Spamassassin: managing the whitelist [Solved]
« Reply #4 on: July 20, 2007, 12:19:39 PM »
Interesting.

With qmail doing the badmailfrom I get
Quote
550 sorry, your envelope sender is in my badmailfrom list


With qpstmp doing the badmailfrom I get
Quote
550 User unknown
Regards,
William

IF I give advise.. It's only if it was me....

Offline shawnbishop

  • *****
  • 298
  • +0/-0
Re: Spamassassin: managing the whitelist [Solved]
« Reply #5 on: March 05, 2008, 04:25:26 PM »
Hi

I am looking for the file were I can manually edit the white list and black list, i get the following output but cant find anything with my current entries in

/etc/e-smith/db/wbl
/etc/e-smith/db/wbl/defaults
/etc/e-smith/db/wbl/defaults/badmailfrom
/etc/e-smith/db/wbl/defaults/badmailfrom/type
/etc/e-smith/db/wbl/defaults/whitelisthosts
/etc/e-smith/db/wbl/defaults/whitelisthosts/type
/etc/e-smith/db/wbl/defaults/badhelo
/etc/e-smith/db/wbl/defaults/badhelo/type
/etc/e-smith/db/wbl/defaults/whitelistsenders
/etc/e-smith/db/wbl/defaults/whitelistsenders/type
/etc/e-smith/db/wbl/defaults/whitelisthelo
/etc/e-smith/db/wbl/defaults/whitelisthelo/type
/etc/e-smith/db/spamassassin/defaults/wbl.global
/etc/e-smith/db/spamassassin/defaults/wbl.global/type
/etc/e-smith/db/spamassassin/defaults/wbl.global_to
/etc/e-smith/db/spamassassin/defaults/wbl.global_to/type
/etc/e-smith/web/functions/wbl
/etc/e-smith/web/panels/manager/cgi-bin/wbl
/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/wbl.pm


Where I can I manually add about 1000 email addresses??


Offline bosco555

  • *****
  • 152
  • +0/-0
Re: Spamassassin: managing the whitelist [Solved]
« Reply #6 on: March 18, 2008, 08:41:02 PM »

Where I can I manually add about 1000 email addresses??


Hi Shawnbishop,

the command you are looking for is:

db spamassassin setprop wbl.global *@domain.com Black

You could create a text file with all the email addresses (one per line) to be black-listed and then create a small script to parse the text file and black-list its contents.  Do not forget to add/type the following either at the end of your script or after you have finished entering the bad emails:

expand-template /etc/mail/spamassassin/local.cf
svc -t /service/spamd/

to see your handywork:

db spamassassin show

Hope this helps
gb