Email sent from Google App Engine goes to Spam in Gmail - google-app-engine

We are sending newsletters to users subscribed through a TV Show website, using Google App Engine Java Mail API.
The FROM address we are using are name#example.com but the problem occurs with name#[appid].appspotmail.com as well.
We already setup a SPF and DKIM records and we have a low score on SpamAssassin (about 0.7).
All others email providers receive the email normally (hotmail, yahoo, aol, etc.), but, in Gmail, ALL messages are sent straight to Spam folder. Every single one.
Anyone have a clue on this?

If all the other mail providers are working, you may want to look at gmail's spam policy: https://support.google.com/mail/bin/answer.py?hl=en&answer=81126 It may shed some light on the issues you're having.

Related

Slow delivery with Gmail API

We are using the Gmail API to send emails to our users at the time of registration. Everything has been working fine, but lately (since about a month) some emails are taking some minutes to arrive.
There is no error or log, it is just slow. Pasting the headers of an email into https://toolbox.googleapps.com/apps/messageheader/analyzeheader we can see that the email is delayed some minutes on a server from Google
The Google Developers Portal links to this tag in stackoverflow for support, but we couldn't find more information about it.
How can we know why is this happening? and how can we prevent it?
Any help would be greatly appreciated
Thanks
-- UPDATE
We tested using SMTP with JavaMail directly to send the emails and the delivery times are back to normal

Postfix Admin Notifications - Will it trigger spam?

I have successfully setup Postfix with SPF and DKIM using Google Apps (paid account with custom domain).
Before SPF and DKIM, the admin notifications ended up in spam folder but after setting those up, the emails go to my inbox (without even whitelisting the domain!)
Now, I am using tools like OSSEC which send a lot of admin notifications per day. These are only send to my own personal email address.
Is this going to affect the spam rating of my domain in the foreseeable future?
as from my personal experience I would be quite self convinced in such situation that sending such admin notification shouldn't affect your sender reputation. As far as SPF and DKIM are properly configured and you still sending to your own address only it must not have any negative effect.

Signup for email accounts from GAE app

I am faced with a rather strange request and there isn't much material online tackling that.
I am building a web app on GAE ... front end, back end, datastore, blob store, user accounts, the whole nine yards ...
Part of the requirements is to have a user communication system, (users sending messages to each other, just like Facebook) as user emails are not to be shared among other users, and the web app shall only send emails to the user sign up email strictly for security and administration purposes, and wont flood their inbox with notifications like some websites do.
I have narrowed narrowed it down to 4 options
Option 1:
Reinvent the wheel - Build this whole system form scratch on the Datastore and Blob store. However, not only is it expensive, but also I am not gonna go through all of that (just saying honestly)
Option 2:
Build a bouncing system ... User A sends message to app ... app bounces email to User B. Not very Elegant, impossible to create threads and conversations, eats up app Mail Quota used for Marketing and what not.
Option 3:
Host My own Email server onsite. Patch an API servlet and run the whole show through API. Very valid, except that the client doesn't want anything on site, and I wont be around to maintain it for him.
Option 4:(Best option if someone helps out)
Implement option 3 on a 3rd party email provider. Which brings us to the question, is there any respectable email provider that allows account sign up through API ?? I need to create a shadow email account on a 3rd party server(that the user will never know it exists) every time someone makes an account on my app. Then store all emails and their generated passwords in the Datastore, and when user logs in my web app, web app logs in 3rd party server, retrieves messages and serves it. When he wants to send a message, web app gets the message, sends an email using API as well. If someone knows how to do that on Gmail, I would be eternally grateful (but I highly doubt google allows that)
Note
I can implement the whole setup on xmpp/Jabber servers as well but these free servers keep changing all the time and they change their configurations ... bottom line they are not very reliable.
Thanks a lot guys !! I really appreciate any feed back and if you have any other suggestions please don't hesitate !! This is by no means a solid plan yet.

Sender ID record when sending email with GAE

My GAE app sends email, and I followed Jeff Atwood's excellent article to improve the likelihood of email delivery.
The first two steps are really easy, but setting up a Sender ID record is more challenging. The article provides a link to a "Wizard" to help do this, but I don't know the answer to many of the questions in the wizard.
I use Google Apps for email so I'm thinking the Sender ID record should be the same for many other people in my situation (Google Apps and GAE users).
Can anyone point me to a Sender ID record for this?
EDIT:
This page explains how to set the SPF and SenderID record for Amazon SES, and gives the following TXT record for SPF:
v=spf1 include:amazonses.com -all
and the following TXT record for SenderID:
spf2.0/pra include:amazonses.com -all
Leontx's answer appears to give an SPF record and not a SenderID record.
Also, when I look at the headers of the email I send with GAE, there are notes saying that SPF authentication passes even though I haven't added either of the above TXT records to my domain. There is no info in the headers about SenderID.
I'm still confused about this, but I will now be using Amazon SES to send email. It is really cheap and it seems that Amazon takes a lot more care than Google to help make sure that email gets delivered.
Here's the TXT record I had to create to get SenderID to pass:
Host: #
Text value: v=spf1 include:_spf.google.com ~all
But I had to get both SenderID and DKIM passing to get mail into Hotmail's inbox. To get DKIM to pass I had to create a custom domain for our GAE app that matched the domain of the email's From address. Then I had enable DKIM through that domain's Google Apps account. Then it finally worked.
GAE mail (I use Python) does not give any feedback when you send mail. To receive feedback you have to use another service /API. I use Amazon SES in my applications.

Mails sent from GAE go in the spam folder of hotmail even after editing SPF record

Just wondering if someone else found a solution to the following :
--> I have an application running on GAE sending emails
--> These emails are delivered with no problem to gmail accounts but arrive in the spam folder of hotmail
--> I have adapted the SPF record in the nameserver to "v=spf1 include:_spf.google.com ~all" but that did not help
There are a few discussions on this subject in the past but not clear on whether or not there is another solution than asking people to add the application email in the contact list.
Thanks !
You should also add DKIM now that AppEngine finally supports it.
For anyone who is having the same issue.
Problem description
Mail sent from Google App Engine are delivered correctly to gmail.com but arrive in the spam folder of hotmail.com and are even automatically deleted from other
Solution
Two steps to follow:
In the SPF record in the nameserver, include "v=spf1 include:_spf.google.com ~all"
If you email accounts are managed by Google Apps, follow the DKIM procedure. This involves adding TXT records in your nameserver. Some companies offer to update this on-line, I add to exchange emails with the support of my registrar.

Resources