LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 02-13-2007, 12:10 PM   #1
snapperhead
LQ Newbie
 
Registered: Dec 2004
Posts: 14

Rep: Reputation: 0
sendmail and cgi script problem


I am having a problem trying to figure out why I can not use my sendmail out of a cgi script (Ubuntu).
I have turned on my sendmail and from command line, I can issue a /usr/sbin/sendmail -v username@domain.com. When I do this, an email is sent and delivered.
When I send an email to the local user using the same technique this works fine also and I see a message.
So I know the sendmail is working.

I also know that the .cgi is working because I am running another .cgi script just fine....other than invoking the the sendmail from this very script.
My email logs do not show me much of anything.


In the script itself, I have tried referencing /usr/sbin/sendmail as well as the /usr/lib/sendmail
Neither seems to work. Option -t is set...I have given the script 777 permissions.
How can I figure out what the script is doing or where it is erroring ?
I am not even sure that the script is invoking the sendmail..?
Any script gurus willing render an opinion on what else I could/should do to troubleshoot this ?

Thanks In Advance
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CGI-Script Problem shipon_97 Linux - Newbie 1 05-09-2006 02:30 AM
Problem excuting cgi script in OpenBSD gani *BSD 3 05-26-2005 06:40 AM
CGI-script problem on Apache2 jkt2000 Linux - Networking 3 01-28-2005 04:38 AM
Apache cgi-script problem palanisaravanan Linux - General 6 02-07-2004 09:41 AM
Apache CGI Problem : Browser not running script Zaknafien Linux - Software 3 12-31-2003 01:16 PM


All times are GMT -5. The time now is 01:55 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
Open Source Consulting | Domain Registration