Matt-123 wrote:
> 
>> > I have a file that contains a list of all the IP's that have
>> > successfully POP3'ed there email within last 15 minutes.  Its used for
>> > POPB4SMTP.  Naturally the IP's in the file are constantly changing.
>> >
>> > /etc/virtual/pophosts
>> >
>> > Is there anyway to setup Spamassassin to whitelist all IP's in that
>> > file?  Right now I have it setup in Exim to just not scan messages
>> > from those IP's but I think it would be better to scan and whitelist
>> > them that way bayes would have more good messages to learn from.  Or
>> > will it help bayes any?  If not I'll just leave it the way it is.
>>
>> try plugin for checking pop-before-smtp database:
>> http://wiki.apache.org/spamassassin/POPAuthPlugin
>>
>> However that will only work on your system. Generally I'd advise you/your
>> clients to use standard SMTP authentication
> 
> This seemed like a great solution but naturally did not work.  My
> popb4smtp database is just a flat file that contains IP addresses.
> POPAuthPlugin wants a "access.db style hash file" which I do not have.
> 
> Any fix for that?
> 
> Matt
> 
> 

There is a way, but it's kind of a hack :-).  You *could* have a script run
once every few seconds (maybe 
a "sleep" loop), and look at the file modification time of your flat file. 
If it's different than the last look, run 
makemap.  This would give you a new .db file.   Yes, as I said, it IS a
hack, but it's better than nothing :-)

Also, how is the file flat created? Do you create it somehow, or is it
automatic.  Nothing to prevent you 
from scanning the file with a program, and using the database routines (are
you on Unix?) to directly create
and modify a .db file.

FWIW

Regards,
Steve
-- 
View this message in context: 
http://www.nabble.com/Whitelisting-IP%27s-tp15899667p15923983.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to