Here's a script to run in ksh that will do it.

for email in `cat /path/to/list/emails`
do
/usr/local/bin/spamassassin --add-addr-to-whitelist=$email
Done

Keith

-----Original Message-----
From: Colin A. Bartlett [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 8:08 AM
To: 'Sherif Mohamad'; [EMAIL PROTECTED]
Subject: RE: Howto import addresses to autowhitelist


Sherif Mohamad Sent: Thursday, May 20, 2004 7:14 AM


> I have a file containing 500,000 email addresses and I want to import 
> it to spamassassin autowhitelist db. How can I do that ?

The point of the AWL is that it's just that... automatic. It's a system
of simply factoring into a message's score the average score that all
mail from that sender has received previously. So you can't import names
into AWL. You would have to train each message sent by those users by
running it through SA which would score each message and use previous
scores from each recipient to determine the next score. Obviously not
practical or even possible since all you have are the addresses, not
messages sent by these users. I think what you WANT is just to WHITELIST
these users which, as you discovered, is horribly inefficient for
500,000 users.


cheers,
Colin

Colin A. Bartlett
Kinetic Web Solutions
www.kineticweb.biz 


*****
"The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon, this information by persons or entities other 
than the intended recipient is prohibited.  If you received this in error, 
please contact the sender and delete the material from all computers."  113

Reply via email to