Unix/Perl/Sendmail behaving strangely!
Hi,
I recently moved to a new server running Linux 7.2 and Perl 5.006001 and some of our cgi scripts have started behaving strangely. One thing is, it does not send out emails anymore, well, to some it does, but not to all. The cgi call to sendmail I use is: open (MAIL, "|$mailprog -t"); print MAIL "To: $t_name <$t_email>\n"; print MAIL "From: $m_fullname <$bounce_email>\n"; print MAIL "Reply-To: $site_name <$bounce_email>\n"; print MAIL "Subject: $subject\n"; Does anybody have any suggestions? I have been pulling out my hair here :( Thanks, Stephanie :) (other software: Apache/1.3.22 (Unix) (Red-Hat/Linux) FrontPage/5.0.2.2623 mod_python/2.7.6 Python/1.5.2 mod_ssl/2.8.5 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.1.2 mod_perl/1.26 mod_throttle/3.1.2) |
I meant LINUX
sorry - should have said LINUX in headline :)
|
Logs? Errors?
|
nothing - thats what puzzles me. It says it has sent....nothing happens.....
clueless here :( |
I was having the same issues when using RH 8 and
#!/usr/bin/perl -T Would NEVER send out an email even though the scripts work on many other machines. Removed the -T and bam, was sending emails like a charm again. Not a fix per se as you want to not use -T but perhaps a clue to get your problem solved. |
Thanks for the reply.
However, mine is configured to #!/usr/bin/perl without the -T ?? Could it be worth a try adding this? Thanks Stephanie :) |
No, it won't help you send mail any eaiser :) The -T flag is so that perl will not accept tainted data.
Jkrohn |
All times are GMT -5. The time now is 07:15 AM. |