There's no existing solution that I'm aware of, but it's not my field of expertise either.
If you specifically wanted to run SpamAssassin, you'll probably have more luck using a container-based solution so that you can actually run the same program, rather than shoehorning the application in to Lambda (even though it might be technically possible to get it running in a Lambda function, depending on the binary's dependencies).