| Linode Forum https://forum.linode.com/ |
|
| [SOLVED] Google Apps Email Issue https://forum.linode.com/viewtopic.php?f=19&t=4965 |
Page 1 of 1 |
| Author: | treybrown [ Tue Dec 15, 2009 10:04 am ] |
| Post subject: | [SOLVED] Google Apps Email Issue |
I'm using google apps for email and have noticed that I'm having issues with the mail() function of php. The library article for using google apps doesn't address SPF records, but I'm thinking that's the cause, a friend of mine did some testing and was able to send to an @gmail address without issue, but to a couple other emails it failed, and it's failing to send me mail on the same domain it's on. I also stumbled across this but am unsure of exactly how to interpret it, I'm not that up on DNS knowledge Edit: forgot the domain, will probably help... thesoonergeek.com |
|
| Author: | tinono [ Tue Dec 15, 2009 11:28 am ] |
| Post subject: | |
try setting your spf record exactly as google says you should for a start. Code: v=spf1 include:aspmx.googlemail.com ~all Using '-all' instead of '~all' is specifically frowned upon in the very google docs. Hope it helps. |
|
| Author: | treybrown [ Tue Dec 15, 2009 11:48 am ] |
| Post subject: | |
Thanks, I used a script that used the Linode API to set it up and that's what it set initially I left it due to lack of knowledge, and once reading the article I linked didn't change it to what google recommended due to the issue it talked about with mail being marked as spam with that specific SPF. I'll try that and go from there, thanks. |
|
| Author: | treybrown [ Wed Dec 16, 2009 5:17 pm ] |
| Post subject: | |
Okay, so I've made the change suggested and it's still not making into my email |
|
| Author: | Stu [ Thu Dec 17, 2009 1:36 pm ] |
| Post subject: | |
I have a txt record of v=spf1 include:aspmx.googlemail.com ~all and its sending fine, I also just migrated all my dns from slicehost to linode and have been sending emails last few days without issue. do you have your google mail CNAME + MX records set up correctly? |
|
| Author: | treybrown [ Thu Dec 17, 2009 3:40 pm ] |
| Post subject: | |
Yeah, my MX and CNAMEs are set up correctly. Stu, the mail() function sends to your Google hosted mail on the same domain just fine? |
|
| Author: | Stu [ Thu Dec 17, 2009 5:57 pm ] |
| Post subject: | |
yep. Code: <? worked fine. I sent a test mail to my work email from my domain to verify outside with a non gmail/google mail setup domain. also tested as loopback to myself in gmail and again no problems so I know its being delivered internally and externally. I use msmtp as my MTA. also verified using redmine (ruby) to send email. |
|
| Author: | treybrown [ Thu Dec 17, 2009 8:33 pm ] |
| Post subject: | |
hmm, so I'm wondering if it's actually my MTA (postfix) that's causing the issue. I don't know why I didn't check mail.log before /var/log/mail.log.0:Dec 16 14:40:34 ubuntu postfix/error[17864]: A222716066: to=<user@mydomain.com>, relay=none, delay=0.19, delays=0.08/0.02/0/0.09, dsn=5.0.0, status=bounced (User unknown in virtual alias table) |
|
| Author: | treybrown [ Thu Dec 17, 2009 8:40 pm ] |
| Post subject: | |
Okay, I found a tip to comment out virtual_alias_domains in main.cf and remove the domain from mydestinations= and it would forward to the MX. This worked and mail is now being send to google apps appropriately |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|