sendmail Delays for Hours?
Posted by: jerrykrinock
Posted on: 2006-07-12 14:21:00
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?
Jerry Krinock
Please, go ahead and hit it if you want to:
*********************************************
http://www.sheepsystems.com/cgi/sales/TestSendmail.pl
*********************************************
#!/usr/bin/perl
# Print "OK" reply back to client
print "content-type: text/plainnn";
print "Status: ", 200, " ", "nn";
open (MAIL, "|/usr/sbin/sendmail -t") ;
print MAIL "From: admin@sheepsystems.comn";
print MAIL "To: jerry@sheepsystems.comn";
print MAIL "Errors-To: jerry@ieee.orgn";
print MAIL "Content-Type: text/plainn";
print MAIL "Subject: Test of unix sendmail";
print MAIL "nn";
print MAIL "If you got this, it worked.nn" ;
close (MAIL);
print "Mail was sent.", "n" ;
exit ;
*******************************************