Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Can't send emails using Google Apps Account with app specific password

#909

I am brand new to Mailmate as of today. I like it. I many times cannot send email on my Google Apps account. Google rejects the password sometimes but not always. I generated a new app specific password and it worked once and then the problem started again. This is not happening in Mail app or on my Fastmail account. I saw other reports of this here but did not see a resolution.

Reported by David Enzel · September 25th, 2014 @ 01:23 AM

State: new
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny

    First try the latest test version of MailMate: Hold down ⌥ when clicking “Check Now” in the Software Update preferences pane. I don't really think it makes a different, but I need to be sure before doing further debugging.

    September 25th, 2014 @ 12:10 PM

  2. David Enzel
    David Enzel

    Thanks for responding. I have Mailmate 3905. My Google Apps account still won't connect. Again, I am using an application specific password. It works fine in Mail.app. Also, when I imported my email accounts in Mailmate it did not import my iCloud account which I also wanted to import. I really like Mailmate and if I can get it to work for me I will buy it. I took to it immediately.

    Thanks again.

    September 25th, 2014 @ 12:55 PM

  3. benny
    benny

    You should get r4469 if you do as described: Hold down ⌥ when clicking “Check Now” in the Software Update preferences pane.

    Yes, iCloud accounts are not currently automatically imported since they are now stored differently by Apple Mail (there is no official API for doing this import). I should improve this, but for now you can do it manually using “File ▸ Add IMAP Account...” and the settings here.

    September 25th, 2014 @ 01:04 PM

  4. David Enzel
    David Enzel

    OK. I downloaded the new version of Mailmate. I created a new app specific password and it worked. Then when I tried to send an email from my Google Apps account it did not go through and I got the following error message:

    Unexpected return code 535 (expected 235):
    “5.7.8 Username and Password not accepted. Learn more at 5.7.8 http://support.google.com/mail/bin/answer.py?answer=14257 h2sm2029026qah.35 - gsmtp”.

    September 25th, 2014 @ 01:33 PM

  5. benny
    benny

    If I follow the link then it does look like Gmail is now blocking some email clients: https://support.google.com/accounts/answer/6010255

    Could you try the advice described (allow less secure email clients). If it works then I'll research why Google thinks MailMate (and Outlook and Thunderbird) are insecure.

    September 25th, 2014 @ 01:38 PM

  6. David Enzel
    David Enzel

    I tried that.
    The Google pages states as follows:

    "This setting is not available for Google Apps accounts, it is only available for Google Accounts." It looks like I can't use your app with my Google Apps account. The account works fine in Mail.app.

    September 25th, 2014 @ 01:41 PM

  7. benny
    benny

    Thanks for trying. I'm still not sure exactly what limitations Google is implementing, but it's not being well received by the Thunderbird developers. Also, since you can login once then it may be a different issue (or a MailMate bug).

    I would also expect more reports about this issue if all Google Apps users have the same issue. Is your account recently created or is it an old one?

    We can take MailMate out of the equation by using the Terminal window to log in:

    openssl s_client -connect imap.gmail.com:993 -crlf
    

    Then when prompt is shown:

    0 login you@example.com password
    

    With your email address and application specific password.

    To logout nicely:

    0 logout
    

    You can then also test if you can do this twice.

    September 25th, 2014 @ 02:57 PM

  8. David Enzel
    David Enzel

    I am not sure what to do. My plan is to move from Gmail to Fastmail. Maybe I will just use Mailmate with Fastmail and use Gmail on the web if I need it. I have already imported all my Gmails into Fastmail.

    Any thoughts?

    The terminial thing is too technical for me. Makes me nervous.

    My Google Apps account is over a year old.

    September 25th, 2014 @ 05:40 PM

  9. benny
    benny
    • State changed from new to accepted

    Fair enough. Fastmail is certainly going to work and, in my opinion, much better than Gmail.

    If the problem with Gmail is that they now require a different authentication method (OAuth 2.0) then I'll probably have to implement it at some point. I'll leave this ticket open for progress on that issue.

    September 25th, 2014 @ 06:54 PM

  10. David Enzel
    David Enzel

    If you wouldn't mind, may I ask if there is email provider you would recommend over Fastmail? You know a lot more about email than I do :).

    September 25th, 2014 @ 09:05 PM

  11. benny
    benny

    Fastmail is a good choice. I wrote about alternatives here.

    September 26th, 2014 @ 07:44 AM

  12. Jon Garrison
    Jon Garrison

    Quick data point, I am using an app specific password with google apps (for business) without issue. Happy to check anything else that might be a variable.

    October 1st, 2014 @ 09:22 PM

  13. benny
    benny

    @Jon: Thanks. It'll be fine if you can just enable “watching” this ticket such that you are notified if more users show up with the same problem as David.

    With respect to an alternative login method for Gmail. I've looked into it and maybe it won't be as hard to implement as I first thought, but I haven't actually tried yet.

    October 1st, 2014 @ 09:40 PM

  14. O'Shaughnessy Evans
    O'Shaughnessy Evans

    I'm also using an app-specific password with Google Apps (for business). It's been working without problems, and I try to keep up with the latest dev releases.

    October 2nd, 2014 @ 04:21 AM

  15. benny
    benny

    @Evans: Thanks for the data point. It is not impossible that users see different behavior, because apparently Google has introduced a system for regular accounts where the default settings depend on whether or not the user accesses an account via IMAP within 30 days of creating the account. Maybe something similar is true for Google Apps.

    October 2nd, 2014 @ 07:02 AM

  16. benny
    benny

    A first attempt to support OAuth 2.0 for Gmail is part of the latest test release: Hold down ⌥ when clicking “Check Now” in the Software Update preferences pane. See the release notes for instructions on how to enable this feature.

    October 22nd, 2014 @ 01:48 PM

  17. Daniel Cullen
    Daniel Cullen

    I may have found a workaround for this issue. I have two gmail accounts set-up and I noticed that the SMTP app-specific password failure only occurred on one of them. When I compared account set-ups the working account had smtp.gmail.com as the SMTP server, while the failing account had smtp.googlemail.com. I changed the SMTP server to smtp.gmail.com for both accounts and I haven't had a problem in ~24 hours (the problem was happening every two or three hours before the change).

    January 14th, 2015 @ 02:11 PM

  18. benny
    benny
    • State changed from accepted to fixcommitted

    As you might know, OAuth2 support is going to be part of the next public release.

    November 26th, 2015 @ 11:26 AM

  19. benny
    benny
    • State changed from fixcommitted to fixreleased

    November 26th, 2015 @ 02:33 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.