Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 15th, 2004, 11:29 AM
RandomEngy RandomEngy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 4 RandomEngy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 53 sec
Reputation Power: 0
Problem sending with sendmail

It's apache with PHP on a Red Hat server. I have a PHP script that looks like:

PHP Code:
<?php

mail
("name@domain.com","Testing","Yo","From: Test <test@test.edu>");

echo 
"Attempting mail send";

?>


When I try to access the page, it sits there with a blank page for a while, then finally shows the "Attempting mail send" message. However, no email shows up and this appears in the sendmail log:

Code:
Jul 15 10:16:55 ckserver sendmail[11284]: My unqualified host name (ckserver) unknown; sleeping for retry
Jul 15 10:17:55 ckserver sendmail[11284]: unable to qualify my own domain name (ckserver) -- using short name
Jul 15 10:17:56 ckserver sendmail[11284]: i6FFHtfN011284: from=apache, size=102, class=0, nrcpts=1, msgid=<200407151517.i6FFHtfN011284@ckserver>, relay=apache@localhost
Jul 15 10:17:56 ckserver sendmail[11284]: i6FFHtfN011284: to=name@domain.com, ctladdr=apache (48/48), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30099, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]


What's going on here?

Reply With Quote
  #2  
Old July 15th, 2004, 07:11 PM
obi_wonton's Avatar
obi_wonton obi_wonton is offline
(not) Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Location: Toronto, CANADA
Posts: 598 obi_wonton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 4 m 13 sec
Reputation Power: 5
It seems like it can't qualify it's domain. I'm not sure exactly what that means, but no one else is helping you...
Have you mapped "ckserver" to 127.0.0.1??

check /etc/hosts file, should look something like:
127.0.0.1 [tab] localhost [tab] localhost.localdomain [tab] ckserver

Reply With Quote
  #3  
Old July 15th, 2004, 08:56 PM
cbchev68 cbchev68 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: NH
Posts: 228 cbchev68 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 25 m 38 sec
Reputation Power: 6
Look in your sendmail configuration file, and confirm that it is configured to accept mail on 127.0.0.1..

please attach your sendmail config file for further help.

Reply With Quote
  #4  
Old July 16th, 2004, 09:16 AM
RandomEngy RandomEngy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 4 RandomEngy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 53 sec
Reputation Power: 0
Okay I changed my hosts file (thanks obi_wonton) and that seems to clear up part of the problem. Now when I open the page it immediately loads and gives me the "mail sent" message and a different message appears in the mail log:
Code:
Jul 16 10:31:56 ckserver sendmail[24205]: i6GFVur4024205: from=apache, size=78, class=0, nrcpts=1, msgid=<200407161531.i6GFVur4024205@localhost.localdomain>, relay=apache@localhost
Jul 16 10:31:56 ckserver sendmail[24205]: i6GFVur4024205: to=name@domain.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30075, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

That config file just confuses me. Anyway, it's attached (and renamed to sendmail.txt so it would be accepted by the boards). Thanks for the help.
Attached Files
File Type: txt sendmail.txt (56.1 KB, 491 views)

Reply With Quote
  #5  
Old July 16th, 2004, 09:31 AM
cbchev68 cbchev68 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: NH
Posts: 228 cbchev68 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 25 m 38 sec
Reputation Power: 6
It looks like sendmail is refusing the connection from 127.0.0.1, However I dont understand why;

In your sendmail.cf

Code:
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA


This is telling sendmail to accept mail from 127.0.0.1 (and only that IP btw).. in my mind, it should be working just fine... So I am at a loss, sorry I couldnt help ...

Reply With Quote
  #6  
Old July 20th, 2004, 12:44 PM
RandomEngy RandomEngy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 4 RandomEngy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 53 sec
Reputation Power: 0
Installed Webmin and set the SMTP port options to default. Someone said it fixed the problem for them, but still a no go, same error message.

Reply With Quote
  #7  
Old August 18th, 2004, 09:49 AM
glassman glassman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 glassman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I found that the sendmail.mc line for DAEMON_OPTIONS(Port=smtp,Addr=127.0.0.1 etc. was a limiting parameter. When uncommented (no 'dnl' preface), sendmail will listen only to the loopback, not to the internet or intranet.
Place 'dnl' back in front of the line and re-compile:
m4 sendmail.mc > sendmail.cf

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Problem sending with sendmail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway