If I recall there are instructions and code on the mozilla site somewhere for running your own sync server.