You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2007/09/24 22:23:59 UTC

[Spamassassin Wiki] Update of "MassCheckSlave" by JustinMason

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by JustinMason:
http://wiki.apache.org/spamassassin/MassCheckSlave

New page:
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.