Strange Bounce Address preventing my Emails from Inbox
I sent an email to http://www.mail-tester.com and I see the problem:
This is what it says:
From : info@appstoreranktracker.com
Bounce address : www-data@beastmode
Reply-To : info@appstoreranktracker.com
[SPF] beastmode does not allow your server 173.255.253.72 to use www-data@beastmode
We check if there is a mail server (A Record) behind your hostname beastmode.
You may want to publish a DNS record (A type) for the hostname beastmode or use a different hostname in your mail software.
Why is my bounce address www-data@beastmode andd not info@appstoreranktracker.com?
Anyone know how to fix this?
These are the headers I am using with the php mail:
$header = 'From: info@appstoreranktracker.com' . "\r\n" .
'Reply-To: info@appstoreranktracker.com' . "\r\n" .
'Return-Path: info@appstoreranktracker.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
11 Replies
The name 'beastmode' probably appears somewhere in your email server's config. What email server software are you using (postfix, courier, exim, sendmail, etc)?
I am using Sendmail, the php mail function.
When using the PHP mail() function you should add the envelope sender as the last parameter (don't forget the -f flag):
mail('nobody@example.com', 'the subject', 'the message', $header, '-f info@appstoreranktracker.com');
We didn't find a mail server (A Record) behind your hostname beastmode.
We check if there is a mail server (A Record) behind your hostname beastmode.
You may want to publish a DNS record (A type) for the hostname beastmode or use a different hostname in your mail software.
How do I add that mx record? I know how to do it through linode, but what exactly am I suppose to add?
add an a record for beastmode.appstoreranktracker.com
research how to change your email config
Verify what email software you are using on your Linode (just because you're using mail() doesn't mean you're using sendmail). What do you get when you run the following command:
netstat -tulpn | grep ":25"
Looks like sendmail.
Should I change the config, if so what should I change? I just added an a record, now my a records are the following:
beastmode 173.255.253.72 Default
mail 173.255.253.72 Default
www 173.255.253.72 Default
Is that right?
define(confDOMAIN_NAME',
mail.yourdomain.com')dnl
I have everything working except DKIM but I am almost positive that is not required to reach inbox for google.
I have not been able to get a linode to reach google inbox, what am I doing wrong? Have you been able to get sendmail to reach inbox using sendmail?
$to = "
$subject = "How are you?";
$message = "Did you get this email? This is a test from the new server setup.";
$header = 'From:
'Reply-To:
'Return-Path:
'X-Mailer: PHP/' . phpversion();
$retval = mail ($to,$subject,$message,$header, '-f
if( $retval == true )
{
echo "Message sent successfully…";
}
else
{
echo "Message could not be sent…";
}
?>
Reverse DNS lookup or reverse DNS resolution (rDNS) is the determination of a domain name that is associated with a given IP address.
Some companies such as AOL will reject any message sent from a server without rDNS, so you must ensure that you have one.
You cannot associate more than one domain name with a single IP address.
Your IP address 173.255.253.72 is associated with the domain li263-72.members.linode.com.
Nevertheless your message appears to be sent from mail.appstoreranktracker.com.
You may want to change your pointer (PTR type) DNS record and the host name of your server to the same value.
Here are the tested values for this check:
IP: 173.255.253.72
HELO: mail.appstoreranktracker.com
rDNS: li263-72.members.linode.com