LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Unix/Perl/Sendmail behaving strangely! (https://www.linuxquestions.org/questions/linux-general-1/unix-perl-sendmail-behaving-strangely-42294/)

stephbock 01-21-2003 12:39 PM

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)

stephbock 01-21-2003 12:40 PM

I meant LINUX
 
sorry - should have said LINUX in headline :)

unSpawn 01-21-2003 12:41 PM

Logs? Errors?

stephbock 01-21-2003 12:46 PM

nothing - thats what puzzles me. It says it has sent....nothing happens.....

clueless here :(

jkrohn 01-21-2003 01:49 PM

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.

stephbock 01-21-2003 02:00 PM

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 :)

jkrohn 01-21-2003 03:56 PM

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.