smtp: more relaxed error handling for spamd errors.

(cherry picked from commit 3336125de07fc1249ecc6d3c05e5ac4d8277ab19)