PHP mail() - AGAIN!

Status
Not open for further replies.

epoclaen

Member
Messages
79
Reaction score
0
Points
6
Yeah, I know such questions have been posted before but a search for "mail()" "PHP mail script" and "PHP mail" haven't given me any answers.

I'm on the Intermediate free account and it tells me that the PHP mail() function should be allowed.

I tried running an extremely basic PHP mail() script as a test and while it returns 'true', the emails never reach my inbox. I checked my spam folder and no new emails are found.

I checked PHPINFO() and see that mail.force_extra_parameters has no parameters, sendmail_from has "no value", and sendmail_path is "/usr/sbin/sendmail -t -i". SMTP is set to port 25, in the suhosin.executor.func.blacklist I see a "mb_send_mail" function, suhosin.mail.protect is "1", and I see a bunch of webmailsession variables in the "PHP Variables" section.

Am I missing something in my account setup? Do I need to enable a certain service in my account? Do I need to be specifying something additional in the PHP mail() function's headers? Is there a specific "PHP mail script" that people are using and if so, where can I find it?

Any help would be greatly appreciated.
Edit:
Well at least I found where the mail was going! I have to use my x10hosting email account when sending mail via a PHP script. I tried doing it with a comcast account along with my username and password for that account but the tests for those are failing with a 550 Administration Access error, likely because x10hosting's mail servers are guarding against people trying to "spoof" an email address? Which makes good sense to me at least.

The emails are being kicked back to the administrative email address for my x10hosting account. I'm not sure if they had been all along or if it didn't start kicking them back there until I created my initial email address for the account or not but for others who are not receiving emails when your PHP script seems to be sending them, try checking your x10hosting account's administrative default email folder first.

Here's the message I get from these delivery errors. I've replaced my comcast email account name with "xxxx" for privacy.
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

xxxx@comcast.net
The mail server could not deliver mail to xxxx@comcast.net. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.

------ This is a copy of the message, including all the headers. ------

Return-path: <epoclaen@giftlist.x10hosting.com>
Received: from localhost ([127.0.0.1]:59724 helo=[74.86.116.190])
by cossacks.x10hosting with esmtpa (Exim 4.68)
(envelope-from <epoclaen@giftlist.x10hosting.com>)
id 1IwGqu-0000S5-GL
for xxxx@comcast.net; Sun, 25 Nov 2007 06:44:48 -0600
Received: from [74.86.116.190] ([74.86.116.190] helo=[74.86.116.190]) by
ASSP.at.cossacks.x10hosting; 25 Nov 2007 06:44:48 -0600
To: Jeff - to <xxxx@comcast.net>
From: Jeff - from <epoclaen@giftlist.x10hosting.com>
Reply-To: Jeff - from <epoclaen@giftlist.x10hosting.com>
Subject: Smoke Test 1 - Basic
Date: Sun, 25 Nov 2007 07:44:48 -0500
X-LibVersion: 3.3.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <20071125124448.1740.1418858202.swift@giftlist.x10hosting.com>
X-Assp-Whitelisted: Yes
X-Assp-Envelope-From: epoclaen@giftlist.x10hosting.com
X-Assp-Intended-For: xxxx@comcast.net

This is just a basic test
It has two lines and no special non-ascii characters.

I can't imagine that a comcast email address would be blacklisted or that they are "missing the proper dns entries" (whatever that means).

I saw a similar post made yesterday but no solution to it yet. Any ideas?

Thanks,
Jeff
 
Last edited:

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
I had the same problem, what i did was i could somehow turn off sending mail by SMTP, i did it... and it worked, except, the mail took about an hour or so to reach my inbox, maybe more...i am using my mail script for when a user registers on my website, to send a registration email, if you like i can post the code.
 

epoclaen

Member
Messages
79
Reaction score
0
Points
6
Please do! This has been a far greater bugger of a problem than it's been worth and it's either give up or get desperate. :mad:

Note that I got several scripts to actually send to my hotmail account but none to my comcast account.
 

9svn6

New Member
Messages
77
Reaction score
0
Points
0
I bunch of us also have this same problem using sendmail I am trying to get phpbb2 to work with sendmail since I can't seem to use smtp due to authentication. I'm not recieveing the email at all just the kickbacks to my x10hosting account. In phpbb there aren't many settings for the mailer all it has is:

Use SMTP Server for email - yes or no

SMTP Server Address
SMTP Username
SMTP Password

By selecting no for Use SMTP Server for email it defaults to the sendmail program which seems to be at the usual path so it see's it there doesn't seem to be a place in phpbb2 that lets you specify a path to sendmail but I don't think thats a problem since it is in the usual path. I think x10hosting is just having a problem with their sendmail but if there is a way to fix it or if I'm forgetting something please let us know.
 

epoclaen

Member
Messages
79
Reaction score
0
Points
6
I'm wondering if it has to do with this Exim (not sure what that is exactly but I know it's involved with sendmail somehow.) I see that the sendmail path includes the -i flag which is associated with Exim and I think I read that bypassing the -i flag avoids Exim but again, this is all supposition and desperate guess work on my part.
 

9svn6

New Member
Messages
77
Reaction score
0
Points
0
you know what I bet your right and in the server status it says Exim is offline so maybe thats why.
 

epoclaen

Member
Messages
79
Reaction score
0
Points
6
Well from what I read somewhere I believe one of the moderators said that it will always show as offline due to it only opening when requested to or something.
 

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
Yes, exim shows offline because the script does not authenticate when trying to see if it's up.

I fixed an error with the DNS entry on this server. Can you try to send it again and post a new bounce back if it does not work?
 

epoclaen

Member
Messages
79
Reaction score
0
Points
6
Here's the full bounce back email I got after trying another send.
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

xxxx@comcast.net
SMTP error from remote mail server after MAIL FROM:<epoclaen@cossacks.x10hosting> SIZE=1570:
host mx2.comcast.net [76.96.30.116]: 550 5.1.0 Invalid sender domain

------ This is a copy of the message, including all the headers. ------

Return-path: <epoclaen@cossacks.x10hosting>
Received: from epoclaen by cossacks.x10hosting with local (Exim 4.68)
(envelope-from <epoclaen@cossacks.x10hosting>)
id 1Iwok2-0001OO-03; Mon, 26 Nov 2007 18:55:58 -0600
To: xxxx@comcast.net
Subject: na
MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1
To: you <xxxx@comcast.net>
From: AutoWeb <epoclaen@cossacks.x10hosting>
Reply-To: Webmaster <epoclaen@cossacks.x10hosting>
X-Mailer: PHP/5.2.5
Message-Id: <E1Iwok2-0001OO-03@cossacks.x10hosting>
Date: Mon, 26 Nov 2007 18:55:58 -0600

This is a test message
 

9svn6

New Member
Messages
77
Reaction score
0
Points
0
Here is my bounce back message as well:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

9svn6@976online.com
The mail server could not deliver mail to 9svn6@976online.com. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.

------ This is a copy of the message, including all the headers. ------

Return-path: <admin@knightreign.x10hosting.com>
Received: from localhost ([127.0.0.1]:38089)
by cossacks.x10hosting with esmtpa (Exim 4.68)
(envelope-from <admin@knightreign.x10hosting.com>)
id 1Iwh8o-0007H7-E5
for 9svn6@976online.com; Mon, 26 Nov 2007 10:49:07 -0600
Received: from localhost ([127.0.0.1] helo=localhost) by ASSP.at.cossacks.x10hosting;
26 Nov 2007 10:49:02 -0600
Received: from 66.66.127.13 ([66.66.127.13]) by knightreign.x10hosting.com
(Horde MIME library) with HTTP; Mon, 26 Nov 2007 10:49:02 -0600
Message-ID: <20071126104902.uilpbrxlkgsgkoc8@knightreign.x10hosting.com>
Date: Mon, 26 Nov 2007 10:49:02 -0600
From: Knight Reign <admin@knightreign.x10hosting.com>
To: 9svn6@976online.com
Subject: test
MIME-Version: 1.0
Content-Type: text/plain;
charset=ISO-8859-1;
DelSp="Yes";
format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.1.3)
X-Assp-Whitelisted: Yes
X-Assp-Envelope-From: admin@knightreign.x10hosting.com
X-Assp-Intended-For: 9svn6@976online.com

test
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
The changes I made did not change Exim for some reason, can you guys try again?
 

9svn6

New Member
Messages
77
Reaction score
0
Points
0
I tried again with the simple mail script and I'm still only getting bounce backs whats weird is they are going to nine76@cossacks.x10hosting and thats not my default account also theres no .com at the end. Here is the bounce back message:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

9svn6@rochester.rr.com
SMTP error from remote mail server after MAIL FROM:<nine76@cossacks.x10hosting> SIZE=1419:
host orngca-01.mgw.rr.com [24.28.204.20]: 553 #5.1.8 Domain of sender address <nine76@cossacks.x10hosting> does not exist

------ This is a copy of the message, including all the headers. ------

Return-path: <nine76@cossacks.x10hosting>
Received: from nine76 by cossacks.x10hosting with local (Exim 4.68)
(envelope-from <nine76@cossacks.x10hosting>)
id 1Iwxyz-0001og-4i
for 9svn6@rochester.rr.com; Tue, 27 Nov 2007 04:48:01 -0600
To: 9svn6@rochester.rr.com
Subject: test
Message-Id: <E1Iwxyz-0001og-4i@cossacks.x10hosting>
From: nine76@cossacks.x10hosting
Date: Tue, 27 Nov 2007 04:48:01 -0600

this is a test message.
 

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
Hmm, i was having a similar issue on Stoli, but that seemed to have resolved, i'm sure Corey will get cossacks fixed too.
 

9svn6

New Member
Messages
77
Reaction score
0
Points
0
yeah I'm sure too. I'm new so at first I didn't know about the move.
 

epoclaen

Member
Messages
79
Reaction score
0
Points
6
Oh my god it's working! Comcast, hotmail, ann yahoo all received my emails so I'm assuming that Corey did something new to Exim or whatever within the last few hours.

Emails previously were listed as being returned from me as epoclaen@cossacks.x10hosting without the .com so maybe that was the entire issue?

Thanks for the help guys!
Jeff
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Great. If there are any issues, you can re-open the thread or create a new one.

*Closed*
 

9svn6

New Member
Messages
77
Reaction score
0
Points
0
YAY yup mines working now too it must have been that .com thing Thank You for all the help guys :)
 
Status
Not open for further replies.
Top