Hisham wrote: > Since i'll be having 2 ASSP servers in round robin MX records. We'll be > using server 1 as admin point, send spam reports, generate spamdb ,...etc > > What are the files/folders to be copied from server 1 to server 2 to > keep them both identical ? (i.e. assp.conf ) And what tools do you use > for the sync process ?. We are not planning to use MySql connectivity.
I created the following scripts. Those run on one assp server and can sync any amount of assp servers (the examples below involve 2 servers). With the first script it's possible you may lose some files if they have the same name but it's not a big deal. Before rebuilding spamdb run this in cron: ----------------- # Sync the spam and notspam folders rsync -avz --remove-source-files 10.1.1.1:/opt/assp/errors/ /opt/assp/errors/ rsync -avz --remove-source-files 10.1.1.1:/opt/assp/spam/ /opt/assp/spam/ rsync -avz --remove-source-files 10.1.1.1:/opt/assp/notspam/ /opt/assp/notspam/ ----------------- After rebuilding spamdb run this in cron: ----------------- # Copy spamdb to the other assp servers rcp -p /opt/assp/spamdb* 10.1.1.1:/opt/assp/ ----------------- Run this several times a day in cron to merge whitelists: ----------------- # Script run by cron to merge the whitelists on all assp servers # and copy them back to the servers if scp 10.1.1.1:/opt/assp/whitelist /opt/assp/temp/whitelist_1 then if cp /opt/assp/whitelist /opt/assp/temp/whitelist_local then if LANG=C sort -t^B -mu +0 -1 /opt/assp/temp/whitelist* -o /opt/assp/temp/new-whitelist then mv /opt/assp/temp/new-whitelist /opt/assp/temp/whitelist chown assp.assp /opt/assp/temp/whitelist scp /opt/assp/temp/whitelist 10.1.1.1:/opt/assp/whitelist cp /opt/assp/temp/whitelist /opt/assp/whitelist fi fi fi ----------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Assp-user mailing list Assp-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/assp-user