|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem sending with sendmail
It's apache with PHP on a Red Hat server. I have a PHP script that looks like:
PHP Code:
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? |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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 ... |
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > System Administration > Mail Server Help > Problem sending with sendmail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|