LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-21-2003, 12:39 PM   #1
stephbock
LQ Newbie
 
Registered: Jan 2003
Posts: 4

Rep: Reputation: 0
Question 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)
 
Old 01-21-2003, 12:40 PM   #2
stephbock
LQ Newbie
 
Registered: Jan 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I meant LINUX

sorry - should have said LINUX in headline
 
Old 01-21-2003, 12:41 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,454
Blog Entries: 54

Rep: Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895
Logs? Errors?
 
Old 01-21-2003, 12:46 PM   #4
stephbock
LQ Newbie
 
Registered: Jan 2003
Posts: 4

Original Poster
Rep: Reputation: 0
nothing - thats what puzzles me. It says it has sent....nothing happens.....

clueless here
 
Old 01-21-2003, 01:49 PM   #5
jkrohn
Member
 
Registered: Jan 2003
Location: Urbana, IL
Distribution: Slackware, Mandrake
Posts: 62

Rep: Reputation: 15
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.
 
Old 01-21-2003, 02:00 PM   #6
stephbock
LQ Newbie
 
Registered: Jan 2003
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 01-21-2003, 03:56 PM   #7
jkrohn
Member
 
Registered: Jan 2003
Location: Urbana, IL
Distribution: Slackware, Mandrake
Posts: 62

Rep: Reputation: 15
No, it won't help you send mail any eaiser The -T flag is so that perl will not accept tainted data.

Jkrohn
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Second X Server behaving (at least to me) strangely exitsfunnel Linux - Software 2 05-13-2005 05:52 PM
PPP behaving strangely since network change. joe83 Slackware 5 09-25-2004 09:30 PM
BitTorrent Tracker Behaving Strangely When Run Through Linux Iptables Firewall tvynr Linux - Networking 0 04-07-2004 03:54 PM
ATI Drivers (or something) behaving strangely... doxxan Linux - Hardware 3 02-19-2004 02:37 PM
GTK-based Apps Behaving Strangely After Upgrading to Kernel 2.6.2 johnleemk Linux - Software 2 02-08-2004 07:46 AM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration