Hmmm. I am pretty sure it's not an SMTP problem as the program does not directly interact with SMTP, rather, it sends a command to another server which then forms and sends a mail message. Also, I am using qmail instead of sendmail. Thanks for your advice. I will look into your other tips.