Tenon Intersystems Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation

Search tenon.com

Thanks to:

Post.Office

Re: SpamAssassin Whitelist - step by step on how to add domains

To: post_office@xxxxxxxxxxxxxxx
Subject: Re: SpamAssassin Whitelist - step by step on how to add domains
From: Joe Savelberg <joe@xxxxxxxxxxx>
Date: Tue, 22 Jun 2004 07:03:27 +0200
Charles,

Here is a script we're using to add users and domains to our spamassassin whitelist in /etc/mail/spamassassin/local.cf

If the script gets wrapped, you can also get it only from my Post.Office resource page: http://www.euregio.net/joe/postoffice/

Put the script on your server as whitelist.sh and chmod 755 to make it executable.

A great way to create a default configuration file is the online configurator at http://www.yrex.com/spam/spamconfig.php

Hope this helps,

Joe.


----------- Start whitelist.sh ----------------- #!/bin/sh #echo "If you get an error "Could not create INET socket" then #please restart spamd like this: #type "ps -ax | grep spamd" #and for each process id you see in the list you should #type "kill <pid> <pid>" to start spamd again, #type "/usr/bin/spamd -u mta -d"

spamd="/usr/bin/spamd -u mta -d"

echo "Add users to whitelist_from: user@xxxxxxxxxx *@domain.com"
read -p "Users to whitelist: " userlist
myok="n"
read -p "Is this correct:
whitelist_from $userlist
[y|n] " myok
if [ "$myok" = "y" ] ; then
        echo "appending /etc/mail/spamassassin/local.cf"
        echo "whitelist_from $userlist" >> /etc/mail/spamassassin/local.cf
        echo ""
        myok="n"
        read -p "Restart spamd? [y|n] " myok
        if [ "$myok" = "y" ] ; then
                spamdlist=`ps -axw | grep "spamd" | grep -v "grep" | awk 
'{print $1}'`
                echo "List of spamd processes: $spamdlist"
                for i in $spamdlist
                do
                                kill $i
                done
                echo "Starting: $spamd"
                $spamd
                sleep 2
                echo ""
                tail -5 /var/log/mail.log | grep "server started"
                ps -ax | grep "spamd" | grep -v "grep"
                echo ""
        else
                echo "User did not confirm... quitting..."
                exit
        fi
else
        echo "User did not confirm... quitting..."
        exit
fi
#end
----------- End whitelist.sh -----------------


At 17:06 -0700 21/06/2004, Charles Lai wrote:
Does someone have step by step terminal commands on how to add domains to the spamassassin whitelist? I've set up everything else with Post.Office including ClamAV and Vipul's Razor for Spamassassin, but I haven't been able to find any documentation on how to access and modify the config file.
Sincerely,
Charles Lai




--
-----------------+----------------+----------------------------------
Jochen Savelberg | Euregio.Net AG | domain registrations, co-location
joe@xxxxxxxxxxx | Wirtzfeld 140 | hosting, marketing, entertainment
Online Producer | 4760 Bullingen | consulting, training, development
MIS/IT Director | Belgium | http://www.euregio.net
-----------------+----------------+----------------------------------
Internet Services since 1995 - AFS-Returnee '93, Belgium to Australia
---------
Tenon Intersystems' Post.Office Mailing List
To unsubscribe: send mailto:post_office-request@xxxxxxxxxxxxxxx
with the body only containing: unsubscribe
Find the searchable mailing list archives at:
http://postoffice.computeroil.com/


<Prev in Thread] Current Thread [Next in Thread>

| Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |

Powered By iTools

Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara, CA 93101. All rights reserved.
Questions about our website - Contact: webmaster@tenon.com.


Tenon Home  Tenon Home  Tenon Home  Tenon Home Product Info  Tenon Ordering Contact About Register Support Resources Press Mailing Lists