You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2005/07/25 21:05:26 UTC

[Bug 4501] New: Import blacklists/whitelists from referenced external files

http://bugzilla.spamassassin.org/show_bug.cgi?id=4501

           Summary: Import blacklists/whitelists from referenced external
                    files
           Product: Spamassassin
           Version: 3.0.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: holmgren@lysator.liu.se


I would like to tell SA to read addresses to add to blacklist_to, whitelist_from
etc. from a separate file, like this:

blacklist_from file:/etc/mail/blacklist

This file would be a standard simple one-item-per-line file, with # denoting
comments. The reason that the existing include mechanism isn't sufficient is
that I want to share this file with other programs, which don't understand SA's
keywords. (More specifically, I want to put spamtrap addresses in the file. The
file would then be used to fetch addresses to put on webpages as well as to
control the MTA and SA.)

This could of course be generalised in two ways: 1) By adding more import
mechanisms such as "db:" and "http:" in addition to plain text files, and 2) by
allowing it in other places, such as rules.

I guess that I could accomplish my specific goal by writing a plugin, but what
do you say, have this been discussed?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4501] Import blacklists/whitelists from referenced external files

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4501





------- Additional Comments From jm@jmason.org  2005-07-26 11:30 -------
Looks like the AccessDB plugin does more-or-less exactly this.  this would
definitely be best implemented as a patch to that plugin.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4501] Import blacklists/whitelists from referenced external files

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4501





------- Additional Comments From Bob@Menschel.net  2005-07-25 21:21 -------
It would seem to me that the easiest solution, which will allow you to 
> share this file with other programs, which don't understand SA's keywords, 
is to create your own external file, in whatever format you want, and have your
own program which regularly passes the file generating output for each program
that needs this data (SA being only one of them).  

Then, if your /etc/mail/blacklist file contains entries like uid@example.com,
*@example2.com, uid@example3.*, you simply read this file in, and create the
corresponding blacklist_from entries in /etc/spamassassin/myblacklist.cf,
repeating this process daily or weekly or whenever you want. 

Unless others have similar need (and I don't remember such a desire being
discussed in the past year or so), then it seems this is a much more efficient
solution for you (and will happen faster than waiting for devs to figure out how
to do something generalized). 



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4501] Import blacklists/whitelists from referenced external files

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4501





------- Additional Comments From felicity@apache.org  2005-07-25 12:22 -------
Subject: Re:   New: Import blacklists/whitelists from referenced external files

On Mon, Jul 25, 2005 at 12:05:26PM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> I guess that I could accomplish my specific goal by writing a plugin, but what
> do you say, have this been discussed?

My first thought is that it sounds like a modification/addition to the
accessdb eval/plugin.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4501] Import blacklists/whitelists from referenced external files

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4501


felicity@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
   Target Milestone|Undefined                   |Future






------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.