In my perl cgi script which does my order processing, I call sendmail to send me an email, and send the customer an acknowledgement, whenever the script processes an order.
Since I started with DreamHost a couple weeks ago, I’ve noticed that sometimes I get the email from my script an hour or more after receiving the payment notice from Paypal; and sometimes I receive them in bunches.
Also, for the last couple hours I’ve been testing a couple modified scripts which were sending emails to me yesterday, but sometime this morning, they seem to have quit sending emails, although otherwise they are working.
So, I just uploaded the following test script. When I hit it with my web browser, I get the response “Mail was sent”, but nothing shows up in my email box. It’s been over a couple hours now.
My site sendmails less than 20 messages per day, maybe a few more attempts this morning because I’m testing. So it’s not like I’m overloading any limit.
Does anyone know what might be going on?
Please, go ahead and hit it if you want to:
Print “OK” reply back to client
print “content-type: text/plain\n\n”;
print "Status: ", 200, " ", “\n\n”;
open (MAIL, “|/usr/sbin/sendmail -t”) ;
print MAIL “From: firstname.lastname@example.org\n”;
print MAIL “To: email@example.com\n”;
print MAIL “Errors-To: firstname.lastname@example.org\n”;
print MAIL “Content-Type: text/plain\n”;
print MAIL “Subject: Test of unix sendmail”;
print MAIL “\n\n”;
print MAIL “If you got this, it worked.\n\n” ;
print “Mail was sent.”, “\n” ;