LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-01-2022, 06:27 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Rep: Reputation: 271Reputation: 271Reputation: 271
Using sendmail with gmail


I tried to relay an e-mail through gmail June 1. gmail responds:
Quote:
050 535-5.7.8 Username and Password not accepted. Learn more at
050 535 5.7.8 https://support.google.com/mail/?p=BadCredentials p15-20020a635b0f000000b003fc4894c270sm1081442pgb.69 - gsmtp
which doesn't help. The Username and Password are correct: I can log in with them on my browser.

Has anyone made this work?
 
Old 06-01-2022, 08:17 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
As far as I know google has turned off use less secure apps for most users as of 30 May. Here is is a workaround.

https://wiki.archlinux.org/title/msmtp

I have mutt working with oauth2...
 
1 members found this post helpful.
Old 06-01-2022, 08:28 AM   #3
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272
This might help, https://support.google.com/accounts/answer/6010255
 
Old 06-02-2022, 12:38 AM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
As best as I can tell, Google requires either 2-factor authentication (all of which require a telephone number, which I lack) or an authentication key, which they sell for $30. Instead I made an old account elsewhere work and gave up on gmail.
 
1 members found this post helpful.
Old 06-02-2022, 05:36 AM   #5
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272
I've never given them a phone number or paid a fee.
I simply went to the settings for the account directly on their site and confirmed they were correct.
 
Old 06-03-2022, 03:53 AM   #6
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by cwizardone View Post
I've never given them a phone number or paid a fee.
I simply went to the settings for the account directly on their site and confirmed they were correct.
Do you relay outgoing SMTP traffic through your account?
 
Old 06-03-2022, 07:27 AM   #7
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272
Yes.
I use Thunderbird to retrieve e-mail from their server and to send e-mail.
In Thunderbird, under outgoing server (smtp) settings,
it is,
description = whatever name you use
server name = smtp.gmail.com
port = 465
user name = your gmail account user name
authorization method = OAuth2
connection security = SSL/TLS

Last edited by cwizardone; 06-03-2022 at 07:41 AM.
 
Old 06-03-2022, 08:52 AM   #8
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Google's use of 2FA breaks lots of programs, but they do have an option to make an App Password for that app.
Use the link in post #3, scroll down to the bottom to get info on setting one up. I used it to send a monthly email from one of may gmail accounts when the old company email stopped working when it was sold and the new company helpless desk could not help.
 
Old 06-03-2022, 11:52 PM   #9
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by uteck View Post
Google's use of 2FA breaks lots of programs, but they do have an option to make an App Password for that app.
Use the link in post #3, scroll down to the bottom to get info on setting one up.
I tried that before I asked the question. The option to create an app password isn't there. They tell me that I need to use 2FA to create an app password. When I try to set up 2FA it requires: a phone, or phone number to send a text message or call to, or a security key. How do you get away without this?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Okular highlights are not Gmail compatible (highlights are not visible in Gmail). mib_7opnwb Linux - Software 4 11-25-2020 08:25 AM
Prob. with gmail It's that time of day. Gmail aims to help you in many ways..." frenchn00b General 1 04-10-2009 04:27 PM
gmail: A sort of gmail-notify for the console ? frenchn00b Linux - Software 1 05-13-2008 04:54 PM
SUSE Open 10.3. Gmail. PITA. (If you don't have Gmail, you will not understand) Lola Kews SUSE / openSUSE 6 03-19-2008 07:43 AM
LXer: Import mail into Gmail with the Gmail Loader LXer Syndicated Linux News 0 03-19-2007 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration