James wrote:
I added a header check to reject empty subjects.
"normal" people do send mail without a subject, and I didn't see much spam without a subject. so I don't think this is an effective anti-spam measure.
if you really hate empty subjects, you may want to do the check in spamassassin instead.
The error from the server for an empty subject is: "Server replied: 550 5.7.1 message content rejected" Can I change it to say "empty subject rejected?
yes. /^Subject:\s*$/ 550 5.7.1 emtpy subject rejected