Robizzle01
Limp Gawd
- Joined
- Sep 30, 2005
- Messages
- 159
Some of you may remember that i'm setting up a book trading website for my university. I decided to start out slow and build up to harder tasks since i've never delt with mysql and only limited php before this. I think i'm holding my own with the database and php but i'm having problems getting msu.edu to accept emails generated from my server -- they dont even make it into the spam foler 
Wrote a very simple mail test and found that my computer is sending the emails but msu chooses not to accept them. mail() returns true tho, so as far as apache knows, the mail was sent. I tried sending to my gmail account instead, and the emails worked just fine. Below is the script i'm using.
So i'm wondering where the problem lies. Is it something wrong with my headers, is it that msu.edu simply doesn't like my server's IP address (afterall it is just a desktop sitting on the floor next to me in my apartment.) Or is it something to do with my settings in godaddy?
I'm more than willing to supply you guys with any further information that you need, but I simply dont know what you may need to know at this point. I've never played with sendmail before (i'm using postfix if that makes any difference) and I dont really know anything about A and MX records.
I did run the dnsreport on robmeyer.net and it passed everything except for "Acceptance of postmaster address. ERROR: One ore more of your mailservers does not accept mail to postmaster@robmeyer.net. Mailservers are required to accept mail to postmaster." The gentoo guide I was following said it would come back to that later but then I got stuck http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System_-_Postfix_to_Postgres. I couldn't run the last line as I dont have telnet and emerge telnet didn't find any such package.
If it turns out that there is no way to get msu.edu to accept mails from my desktop, then I guess that is how it will have to be. But what are the chances that it will work when I decide to rent webhosting? I'm still trying to decide between ashosted.com and made2own.com but if email from them isn't going to work, then I dont know what i'll do about this. I need to validate my user's email addresses somehow.
Thanks for help in advance, you all rock.
Wrote a very simple mail test and found that my computer is sending the emails but msu chooses not to accept them. mail() returns true tho, so as far as apache knows, the mail was sent. I tried sending to my gmail account instead, and the emails worked just fine. Below is the script i'm using.
Code:
<?php
$to = "meyerro3@msu.edu";
$to2 = "Rob.Meyer1@gmail.com";
$subject= 'the subject';
$message= 'this is the body of the email';
$headers= 'From: [email]webmaster@robmeyer.net[/email]'."\r\n".'Reply-To: [email]webmaster@robmeyer.net[/email]'."\r\n".'X-Mailer: PHP/'.phpversion();
if(mail($to, $subject, $message, $headers))
echo "Mail sent to ".$to;
else
echo "Mail to ".$to." failed";
if(mail($to2, $subject, $message, $headers))
echo "Mail sent to ".$to2;
else
echo "Mail to ".$to2." failed";
?>
So i'm wondering where the problem lies. Is it something wrong with my headers, is it that msu.edu simply doesn't like my server's IP address (afterall it is just a desktop sitting on the floor next to me in my apartment.) Or is it something to do with my settings in godaddy?
I'm more than willing to supply you guys with any further information that you need, but I simply dont know what you may need to know at this point. I've never played with sendmail before (i'm using postfix if that makes any difference) and I dont really know anything about A and MX records.
I did run the dnsreport on robmeyer.net and it passed everything except for "Acceptance of postmaster address. ERROR: One ore more of your mailservers does not accept mail to postmaster@robmeyer.net. Mailservers are required to accept mail to postmaster." The gentoo guide I was following said it would come back to that later but then I got stuck http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System_-_Postfix_to_Postgres. I couldn't run the last line as I dont have telnet and emerge telnet didn't find any such package.
If it turns out that there is no way to get msu.edu to accept mails from my desktop, then I guess that is how it will have to be. But what are the chances that it will work when I decide to rent webhosting? I'm still trying to decide between ashosted.com and made2own.com but if email from them isn't going to work, then I dont know what i'll do about this. I need to validate my user's email addresses somehow.
Thanks for help in advance, you all rock.