As I just found out, according to RFC 2234 the version string "v=spf1" is case-insensitive. To fix this in my RMSPF, in the function checkversion() replace memcmp() with memicmp(). Roger