in reply to Using perl to deliver e-mails
http://www.sendmail.org/faq/section3.html#3.34
This sounds like it may be your issue.
Cheers, KM