LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2004, 02:11 PM   #1
dmedici
Member
 
Registered: Aug 2003
Posts: 57

Rep: Reputation: 15
sendmail won't send from shell or php script


I was able to successfully test outgoing mail from my Fedora core 2 machine with mail -s "test" root, when I set it up. I have since added a few virtual hosts to the apache server which work fine. Now the mail command results in the following logged to /var/log/maillog

Aug 5 14:53:13 delight sendmail[2814]: i75IrCY0002814: from=root, size=36, class=0, nrcpts=1, msgid=<200408051853.i75IrCY0002814@delight.asce
nsionweb.com>, relay=root@localhost
Aug 5 14:53:13 delight sendmail[2815]: i75IrD3w002815: tcpwrappers (delight.ascensionweb.com, 127.0.0.1) rejection
Aug 5 14:53:13 delight sendmail[2814]: i75IrCY0002814: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30036,
relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Aug 5 14:53:13 delight sendmail[2814]: i75IrCY0002814: i75IrCY1002814: DSN: Service unavailable
Aug 5 14:53:13 delight sendmail[2814]: i75IrCY1002814: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31060, relay=[127.0.0.1],
dsn=5.0.0, stat=Service unavailable
Aug 5 14:53:13 delight sendmail[2814]: i75IrCY1002814: i75IrCY2002814: return to sender: Service unavailable
Aug 5 14:53:13 delight sendmail[2814]: i75IrCY2002814: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32084, relay=[127.0.
0.1], dsn=5.0.0, stat=Service unavailable
Aug 5 14:53:13 delight sendmail[2814]: i75IrCY1002814: Losing ./qfi75IrCY1002814: savemail panic
Aug 5 14:53:13 delight sendmail[2814]: i75IrCY1002814: SYSERR(root): savemail: cannot save rejected email anywhere

the php script we use results in a similar log:

Aug 5 12:12:36 delight sendmail[31902]: i75GCapX031902: from=apache, size=1272, class=0, nrcpts=1, msgid=<200408051635.85e103302544@wow.warcr
aftstrategy.com>, relay=apache@localhost
Aug 5 12:12:36 delight sendmail[31903]: i75GCac8031903: tcpwrappers (delight.ascensionweb.com, 127.0.0.1) rejection
Aug 5 12:12:36 delight sendmail[31902]: i75GCapX031902: to=massmooth@hotmail.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, ma
iler=relay, pri=31272, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Aug 5 12:12:36 delight sendmail[31902]: i75GCapX031902: i75GCapY031902: DSN: Service unavailable
Aug 5 12:12:37 delight sendmail[31902]: i75GCapY031902: to=apache, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=32296, relay=[127.0.0.1
], dsn=5.0.0, stat=Service unavailable
Aug 5 12:12:37 delight sendmail[31902]: i75GCapY031902: i75GCapZ031902: return to sender: Service unavailable
Aug 5 12:12:37 delight sendmail[31902]: i75GCapZ031902: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=33320, relay=[127.0
.0.1], dsn=5.0.0, stat=Service unavailable
Aug 5 12:12:37 delight sendmail[31902]: i75GCapY031902: Losing ./qfi75GCapY031902: savemail panic
Aug 5 12:12:37 delight sendmail[31902]: i75GCapY031902: SYSERR(apache): savemail: cannot save rejected email anywhere


Could someone please point me in the right direction to deciphering this log? Does is have something to do with the virtual hosts, if so how do I configure the outgoing mail to be delivered to anywhere.

Regards,

Dan
 
Old 08-24-2004, 06:25 AM   #2
balaji2001com
Member
 
Registered: Jun 2003
Location: Chennai,India
Distribution: Almost all the flavours of linux
Posts: 39

Rep: Reputation: 15
Talking

Hi there. This is a problem with your hosts.alloq file. If you use tcp wrappers then have the entry of delight.ascensionweb.com in your ALL. Or else have this entry pointing to the 127.0.0.1 in your /etc/hosts file. check and tell me wheter this works.
 
Old 08-24-2004, 03:15 PM   #3
dmedici
Member
 
Registered: Aug 2003
Posts: 57

Original Poster
Rep: Reputation: 15
Hosts.allow file was the ticket!

Thanks much!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Call a shell script from php? jharper101 Programming 2 02-15-2005 12:51 AM
write a shell script to send email yenonn Programming 4 02-11-2005 10:06 PM
PHP -- How to execute a shell script from PHP using FTP functions?? zoonalex Programming 3 07-29-2004 11:51 AM
Help with PHP sendmail script! cucolin@ Programming 2 06-28-2004 03:43 PM
converting shell script to php script ? ibro Linux - General 6 05-24-2004 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration