You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The nightly mass-check setup on the SpamAssassin zone, spamassassin.zones.apache.org, uses helper "slaves" to actually scan the mail in order to reduce CPU load.

Setup

Here's how to set up a new slave.

  • Install perl, and all of SpamAssassin's required modules, and whatever modules are required for "mass-check" (see MassCheck) to operate.
  • Create a user called "mccli". It does not need a password. This is the user the mass-checks will run as.
  • Generate an SSH key for that user:
  sudo -u mccli -H bash
  ssh-keygen -t rsa
  • Add the master server's SSH key to '~/.ssh/authorized_keys':
  curl http://bbmass.spamassassin.org/pubkey.txt > ~/.ssh/authorized_keys
  chmod 600 ~/.ssh/authorized_keys
  • Ensure the new slave's SSH server is accessible to the net, and allows logins as "mccli".
  • on the Zone, test it:
  sudo -u bbmass -H ssh mccli@hostname.domain.com echo tst

You will be prompted to accept a new host fingerprint; you should then see the string "tst".

Once this works, edit the files in SVN in trunk/build/nightlymc/corpus.*, and add the host's username/hostname combo to the "clienthosts" lists for each of the files:

clienthosts=mccli@vmsa.apache.org mccli@host.domain.org mccli@another.domain.org

The new mass-check client should be used in the next nightly mass-check.

  • No labels