Google blocks authentication attempts by my machine to transfer outgoing mails

6,596

Solution 1

Use your own SMTP server?

Sorry. That's probably not what you want to hear. But Google is telling you that you're hitting their SMTP server often enough that they assume something hinky is going on.

As to whether or not using GMail as the official SMTP server for your entire server is hinky or not, well. There are stated use limits which I assume you're not hitting, but if I were you I'd take those messages as meaning that I was hitting the limits of what they considered appropriate free use.

Solution 2

Gmail is not designed to be an SMTP server for your website.

http://mandrill.com/, http://sendgrid.com/, http://aws.amazon.com/ses/, and others all have generous free tiers and are specifically designed for this sort of thing. Consider using them.

Share:
6,596

Related videos on Youtube

Rajat Gupta
Author by

Rajat Gupta

A problem solver & enthusiastic programmer looking out for exciting work opportunities. Highly interested in building Android applications, Web development, & Server side coding involving (sql/ nosql) databases & APIs. I love solving problems, building efficient approaches & algorithms. To describe my strong points, I have pretty decent problem solving skills, fast learner & highly motivated & energetic person! Gained good experience in software development in the past 2 years working on numerous android & web development projects with companies like olready.in, twowaits.com, spactre.com. Selected among Top three finalists for LinkedIn MTV GetAJob Season 4 for Flipkart as Software Developer Intern among 50k candidates.

Updated on September 18, 2022

Comments

  • Rajat Gupta
    Rajat Gupta over 1 year

    I am using gmail as SMTP server (via ssmtp mail transfer agent in Ubuntu 12.04) for sending outgoing mails from my server. But the problem is that Google often blocks authentication attempts by my machine. Sometimes it works without problems but sometimes it gives this message :

    Authorization failed (534 5.7.9 https://support.google.com/mail/bin/answer.py?answer=78754 kn10sm96120374oeb.0 - gsmtp)

    How could fix this issue permanently ? I created a separate account that is meant to be used only for sending mails by this machine.

    • Rajat Gupta
      Rajat Gupta about 10 years
      please state the reason of downvotes as well.
  • Rajat Gupta
    Rajat Gupta about 10 years
    First I am not using Google apps for Business, I am using the simple gmail account just like my free personal gmail account & I am very sure I am not reaching the limits anyway. I started to see these messages from day 1 when I configured a newly created free gmail account to send emails from server. Actually these emails are just sent to my personal account & some other administrators for server administration purposes only. Even when I first configured this setup I was seeing similar messages, so I am sure this is not due to any limits reached.
  • Rajat Gupta
    Rajat Gupta about 10 years
    Moreover a weird thing was that I fixed this first time, by changing my password from moderately complex to simple one, otherwise this wasn't just working (this is unbelievable but very true).
  • Katherine Villyard
    Katherine Villyard about 10 years
    Are you seriously arguing with me that because you're not giving Google money, the limits don't apply to you? I believe you when you say that you're not sending 500 emails a day, but the error message you linked means, "You're connecting to us too often." Like I said, I suspect Google is trying to tell you that you're overusing their service. If you disagree, you can always open a ticket with them and argue with them about it.
  • Rajat Gupta
    Rajat Gupta about 10 years
    that was not meant to be an argument or to prove you wrong, I just tried to describe my complete situation to you. Thank you.