Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Hosting Forum > Dedicated Servers
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Dedicated Servers Dedicated server help.

Ezilon Directory   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 12-22-2006, 05:29 AM   #1 (permalink)
Inactive
 
Join Date: 10-13-06
Posts: 84
iTrader: 0 / 0%
Latest Blog:
None

sellingonline is liked by many
Send a message via ICQ to sellingonline
Unhappy Sendmail Problem :(

Hey, I've got a sendmail problem on a dedicated server, shall I post the configs or what do you suggest? Problem is, that all coming in via smtp is sent through fine, but messages I try to send via PHP mail() are not going through, error in root is "deferred: connection refused by [127.0.0.0]"

I guess I just have a block of wood in front of my head, can somebody help to remove it PLEASE!
sellingonline is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 12-22-2006, 02:46 PM   #2 (permalink)
Inactive
 
Join Date: 10-13-06
Posts: 84
iTrader: 0 / 0%
Latest Blog:
None

sellingonline is liked by many
Send a message via ICQ to sellingonline
some more details, I really hope someone can help:

Code:
file "access" localhost.localdomain RELAY localhost RELAY 127.0.0.1 RELAY myPOPIP RELAY (dont want to write it here, there is my provider IP, POP is working as well as SMTP...)
btw, telnet works:

Code:
telnet 127.0.0.1 25 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 rummels.de ESMTP Sendmail 8.13.4/8.13.4/Debian-3sarge1; Fri, 22 Dec 2006 21:53:12 +0100; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
and status of sendmail seems to be fine too:

Code:
# /etc/init.d/sendmail status MSP: is run via cron (20m) MTA: 8640 /usr/sbin/sendmail-mta -Am -L sm-mta -bd -q10m UID PID PPID C STIME TTY TIME CMD root 8640 1 0 22:32 ? 00:00:00 sendmail: MTA: accepting connections QUE: Same as MTA
one thing I found (I just used several test commands and this is one result - there is no 127.0.0.1 there, :

Code:
# netstat -an|grep 25 tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN ....tcp 0 0 serverip:25 220.174.224.223:2246 VERBUNDEN etc.
like said, SMTP & POP are wonderful working, just this PHP mail() isn't, always the same error


maybe this helps you locating the problem thanks my friends!
sellingonline is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-23-2006, 02:12 PM   #3 (permalink)
Inactive
 
Join Date: 10-13-06
Posts: 84
iTrader: 0 / 0%
Latest Blog:
None

sellingonline is liked by many
Send a message via ICQ to sellingonline
it's me again, is nobody able to help me please? is the problem really that bad?
sellingonline is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-23-2006, 03:24 PM   #4 (permalink)
Inactive
 
Join Date: 10-13-06
Posts: 84
iTrader: 0 / 0%
Latest Blog:
None

sellingonline is liked by many
Send a message via ICQ to sellingonline
posted a mistake, sorry - error is " "deferred: connection refused by [127.0.0.1]", not 127.0.0.0 like posted (can't edit)
sellingonline is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-23-2006, 03:43 PM   #5 (permalink)
Inactive
 
Join Date: 10-13-06
Posts: 84
iTrader: 0 / 0%
Latest Blog:
None

sellingonline is liked by many
Send a message via ICQ to sellingonline
ok, did some more tests now as suggested by other people, maybe this helps:

Code:
# sendmail -v -d8 -d38 validemail@validdomain.com dsfsdfs . validemail@validdomain.com... Connecting to [127.0.0.1] port 587 via relay... validemail@validdomain.com... Deferred: Connection refused by [127.0.0.1]
so there is the error again, on the other side:

Code:
# telnet 127.0.0.1 25 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 "myserver" ESMTP Sendmail 8.13.4/8.13.4/Debian-3sarge1; Sat, 23 Dec 2006 23:24:50 +0100; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1] helo test 250 "myserver" Hello localhost [127.0.0.1], pleased to meet you mail from: validemail@validdomain.com 250 2.1.0 validemail@validdomain.com... Sender ok rcpt to: anothervalidemail@differentvaliddomain.com 250 2.1.5 anothervalidemail@differentvaliddomain.com... Recipient ok data 354 Enter mail, end with "." on a line by itself test message . 250 2.0.0 kBNMOoZu004585 Message accepted for delivery quit 221 2.0.0 myserver closing connection Connection closed by foreign host.
this last one reached the email address fine, so via telnet it's working, via smtp it's working, just via sendmail directly & php not, this is very strange to me
sellingonline is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-26-2006, 02:44 AM   #6 (permalink)
Contributing Member
 
HQHost.net's Avatar
 
Join Date: 12-19-06
Posts: 62
iTrader: 0 / 0%
Latest Blog:
None

HQHost.net is liked by many
Have you contacted youк webhost support?
HQHost.net is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-26-2006, 11:01 AM   #7 (permalink)
Contributing Member
 
Join Date: 12-13-06
Posts: 165
iTrader: 0 / 0%
Latest Blog:
None

007c is liked by many
Just in case...the header from name can't be sender email:
some@email.com <some@email.com> (they'd bounce back)
But it must be $header .= "From: some name <some@email.com>\n";
This was my problem hope it helps.
007c is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-26-2006, 04:27 PM   #8 (permalink)
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
Can you post the piece of your sendmail.mc (not sendmail.cf) that contains the bits about which dbs are active? (i.e. access, cw, etc.)

Have you added 127.0.0.1 and localhost and localhost.localdomain to your 'relay domains' db (cr)? I sometimes end up adding this to the end of my sendmail.mc's, for sendmail pre v.8.1x:
Code:
Cw localhost dnl Cw localhost.localdomain dnl Cw 127.0.0.1 dnl
I don't know why that's effective, as the same entries are included in access.db by default when sendmail is installed, but for some earlier versions it seems to help. It shouldn't be required.

What version of sendmail are you running, and also what version of PHP?
StupidScript is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-27-2006, 05:45 AM   #9 (permalink)
Inactive
 
jeet's Avatar
 
Join Date: 03-04-06
Posts: 181
iTrader: 0 / 0%
jeet is a jewel in the roughjeet is a jewel in the roughjeet is a jewel in the roughjeet is a jewel in the roughjeet is a jewel in the roughjeet is a jewel in the roughjeet is a jewel in the rough
I really don't know anything about dedicated servers etc, but what is the value of sendmail in your php ini file?
"sendmail_path" variable...
Hope you get it solved
jeet is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-08-2007, 05:03 PM   #10 (permalink)
Inactive
 
Join Date: 10-13-06
Posts: 84
iTrader: 0 / 0%
Latest Blog:
None

sellingonline is liked by many
Send a message via ICQ to sellingonline
Thanks for the help, I fixed it so far now, but the next problem occured

when I send out mail via php to my gmail account, it always goes into spam, because of some header problems I think, I included SPF also, which is recognized, but doesn't change the situation to the better (exactly same email delivered via smtp from the same server works out to "land" in the inbox, it's freakin....):


Code:
Delivered-To: my-address-at@gmail.com Received: by 10.82.153.10 with SMTP id a10cs185450bue; Sat, 6 Jan 2007 18:05:47 -0800 (PST) Received: by 10.67.29.12 with SMTP id g12mr14006613ugj.1168135547091; Sat, 06 Jan 2007 18:05:47 -0800 (PST) Return-Path: <sender@mydomain.com> Received: from mydomain.com (mydomain.com [MY-SERVERs-IP-HERE]) by mx.google.com with ESMTP id u6si37493585uge.2007.01.06.18.05.46; Sat, 06 Jan 2007 18:05:47 -0800 (PST) Received-SPF: pass (google.com: domain of sender@mydomain.com designates MY-SERVERs-IP-HERE as permitted sender) Received: from mydomain.com (localhost [127.0.0.1]) by mydomain.com (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id l07261DL004032 for <my-address-at@gmail.com>; Sun, 7 Jan 2007 03:06:02 +0100 Received: (from root@localhost) by mydomain.com (8.13.4/8.13.4/Submit) id l072613x004030; Sun, 7 Jan 2007 03:06:01 +0100 Date: Sun, 7 Jan 2007 03:06:01 +0100 Message-Id: <200701070206.l072613x004030@mydomain.com> To: my-address-at@gmail.com Subject: I got news for you Reply-To: sender@mydomain.com From: David <sender@mydomain.com>
the email via smtp (the one landing in the inbox at gmail has the following headers instead:

Code:
Delivered-To: my-address-at@gmail.com Received: by 10.82.153.10 with SMTP id a10cs180353bue; Sat, 6 Jan 2007 15:02:32 -0800 (PST) Received: by 10.67.121.15 with SMTP id y15mr31671422ugm.1168124551891; Sat, 06 Jan 2007 15:02:31 -0800 (PST) Return-Path: <sender@mydomain.com> Received: from mydomain.com (mydomain.com [MY-SERVERs-IP-HERE]) by mx.google.com with ESMTP id 54si37319882ugp.2007.01.06.15.02.31; Sat, 06 Jan 2007 15:02:31 -0800 (PST) Received-SPF: pass (google.com: domain of sender@mydomain.com designates MY-SERVERs-IP-HERE as permitted sender) Received: from mylaptop ([MY-ADSL-IP-HERE]) by mydomain.com (8.13.4/8.13.4/Debian-3sarge1) with SMTP id l06N2iSv029170 for <my-address-at@gmail.com>; Sun, 7 Jan 2007 00:02:46 +0100 Message-ID: <000301c731e6$be0b28f0$0973a8c0@mylaptop> From: "my name" <sender@mydomain.com> To: <my-address-at@gmail.com>
like said, the subject + content of the mails is the same, just the headers coming from root@localhost (for the script?) seems the problem maybe, or what do you experienced users think? How can I change this problem to the better? A change in the php.ini or sendmail config? The way it is "working" at present is, that confirmation emails for comments etc. are going into spam of the commenting party and that's not good

Thanks again and in advance as well for your appreciated help!
sellingonline is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-11-2007, 04:34 PM   #11 (permalink)
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
We had the same localhost > Gmail problem when we started sending stuff over there. As time has gone on, diligently 'learning' Gmail that our messages were not spam, it has stopped putting them into spam. It seems like one or more of their filters looks at mail sent from a form/script (i.e. not from a mail client) as spammy, so you need to train it for your particular situation.

BTW, what was the solution to your earlier problem?
StupidScript is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-12-2007, 03:09 AM   #12 (permalink)
Inactive
 
Join Date: 10-13-06
Posts: 84
iTrader: 0 / 0%
Latest Blog:
None

sellingonline is liked by many
Send a message via ICQ to sellingonline
php was listening the wrong port (the "old" problem)

and well, if I learn it on my account it is not helping, as it is still going into spam then in other accounts

and btw, there must be a way to change this dubious first "Received: (from root@localhost)
by mydomain.com (8.13.4/8.13.4/Submit)" without a "with" even to something in the norm, other people are sending mails through forms and it is not like this... so can somebody help please? how do I change that? I'M nearly sure that's the problem
sellingonline is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Hosting Forum > Dedicated Servers

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Verio Sendmail - Compare two files theChronic Coding Forum 5 06-16-2007 11:04 AM
PHP Sendmail Tutorial optic5 Marketing Forum 8 01-03-2006 09:20 PM
PHP.ini and sendmail Trollmaster Coding Forum 0 07-09-2004 01:16 PM
Help with PHP Sendmail code: Zebra1 Coding Forum 0 06-17-2004 09:47 AM
[Linux] Configure Sendmail to accept external mail. QT_ Dedicated Servers 0 01-08-2004 07:26 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 08:35 PM.
© Copyright 2008 V7 Inc