| Linode Forum https://forum.linode.com/ |
|
| Email setup with Google Apps, 550-5.7.1 sending from PHP https://forum.linode.com/viewtopic.php?f=11&t=6187 |
Page 1 of 1 |
| Author: | dpadular [ Tue Oct 26, 2010 9:15 pm ] |
| Post subject: | Email setup with Google Apps, 550-5.7.1 sending from PHP |
Ok, I've searched and searched throughout this forum and found lots of people talking about the same or similar subject, but either am too much of a newb or just missing something and I'm having no success with the proposed solutions I've found so far. The problem that I'm having is when I try to send email with mail() in PHP, I get a response from google saying: Code: Oct 27 00:23:52 localhost postfix/pickup[15448]: CFC1983C1: uid=33 from=<www-data> I installed from the LAMP StackScript in Linode's library. I've set up a Google Apps account to handle email for my server, and from within that account using Gmail I can send mail from me@MYSERVER.com. However, mailing from my server isn't working. So far, I have updated my MX records according to their/Linode Library's suggestions (this has been working for a while): ASPMX.L.GOOGLE.COM 1 ALT1.ASPMX.L.GOOGLE.COM 5 ALT2.ASPMX.L.GOOGLE.COM 5 ASPMX2.GOOGLEMAIL.COM 10 ASPMX3.GOOGLEMAIL.COM 10 I've changed my Reverse DNS to point to MYSERVER.com And I've added a TXT record for SPF that reads: Name: (blank) Value: v=spf1 a mx include:ASPMX.L.GOOGLE.COM ~all TTL: 3600 my questions: I'm guessing something is off with the SPF. It looks like it's sending from www-data@li**-***.members.linode.com, though I've set the From: header in my mail() function. Is this expected/correct? Even if I do get all of this correct, is it likely that Google will still ban my IP? Is there any chance of requesting that they start allowing it if I grovel enough and admit I didn't really know what I was doing until now (now being when everything's correct)? Thanks for any and all help. I know similar issues have been asked a lot but I just couldn't put it all together for my situation. |
|
| Author: | captquint [ Wed Oct 27, 2010 11:17 am ] |
| Post subject: | |
The spf record needs to read (you are correct in leaving the name blank): Code: v=spf1 a include:_spf.google.com ~all You didn't mention it, so I'll just say that you also need to add a CNAME record for google. It should read like this: Code: Hostname Aliases to TTL The "to=<www-data..." business is normal with bounced mail. Depending on how much testing you've done, you may want to delete the mail from the www-data mail folder. Also try this command to see if there's any lingering mail in your queue waiting to be sent again: Code: postqueue -p Like you said, you may have bumped yourself into a corner with Google in your testing because it does look like your IP got banned for spam. You might want to look into DKIM. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|