Is it possible to configure ssmtp to use normal Gmail security

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have installed ssmtp mailutils and can send email from my Pi (running Raspbian - a Debian 9.4 variant)
I configured /etc/ssmtp/ssmtp.conf and can send email using ssmtp and Gmail as SMTP server.



In order to make this work I has to configure the Gmail account to allow Access for less secure apps.



My question is it possible to configure ssmtp to use normal Gmail security (OAuth?), and if so how?



#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=XXXi@gmail.com

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com:587

AuthUser=XXX@gmail.com
AuthPass=…
AuthMethod=LOGIN
UseTLS=YES
UseSTARTTLS=YES

# Where will the mail seem to come from?
rewriteDomain=gmail.com

# The full hostname
hostname=XXX

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES









share|improve this question





















  • I haven't used ssmtp before, but it looks like you can authorize your installation using a "App Password" generated on your Google account... Ref ArchWiki
    – RubberStamp
    20 mins ago














up vote
0
down vote

favorite












I have installed ssmtp mailutils and can send email from my Pi (running Raspbian - a Debian 9.4 variant)
I configured /etc/ssmtp/ssmtp.conf and can send email using ssmtp and Gmail as SMTP server.



In order to make this work I has to configure the Gmail account to allow Access for less secure apps.



My question is it possible to configure ssmtp to use normal Gmail security (OAuth?), and if so how?



#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=XXXi@gmail.com

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com:587

AuthUser=XXX@gmail.com
AuthPass=…
AuthMethod=LOGIN
UseTLS=YES
UseSTARTTLS=YES

# Where will the mail seem to come from?
rewriteDomain=gmail.com

# The full hostname
hostname=XXX

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES









share|improve this question





















  • I haven't used ssmtp before, but it looks like you can authorize your installation using a "App Password" generated on your Google account... Ref ArchWiki
    – RubberStamp
    20 mins ago












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have installed ssmtp mailutils and can send email from my Pi (running Raspbian - a Debian 9.4 variant)
I configured /etc/ssmtp/ssmtp.conf and can send email using ssmtp and Gmail as SMTP server.



In order to make this work I has to configure the Gmail account to allow Access for less secure apps.



My question is it possible to configure ssmtp to use normal Gmail security (OAuth?), and if so how?



#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=XXXi@gmail.com

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com:587

AuthUser=XXX@gmail.com
AuthPass=…
AuthMethod=LOGIN
UseTLS=YES
UseSTARTTLS=YES

# Where will the mail seem to come from?
rewriteDomain=gmail.com

# The full hostname
hostname=XXX

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES









share|improve this question













I have installed ssmtp mailutils and can send email from my Pi (running Raspbian - a Debian 9.4 variant)
I configured /etc/ssmtp/ssmtp.conf and can send email using ssmtp and Gmail as SMTP server.



In order to make this work I has to configure the Gmail account to allow Access for less secure apps.



My question is it possible to configure ssmtp to use normal Gmail security (OAuth?), and if so how?



#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=XXXi@gmail.com

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com:587

AuthUser=XXX@gmail.com
AuthPass=…
AuthMethod=LOGIN
UseTLS=YES
UseSTARTTLS=YES

# Where will the mail seem to come from?
rewriteDomain=gmail.com

# The full hostname
hostname=XXX

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES






raspbian ssmtp gmail






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 49 mins ago









Milliways

532621




532621











  • I haven't used ssmtp before, but it looks like you can authorize your installation using a "App Password" generated on your Google account... Ref ArchWiki
    – RubberStamp
    20 mins ago
















  • I haven't used ssmtp before, but it looks like you can authorize your installation using a "App Password" generated on your Google account... Ref ArchWiki
    – RubberStamp
    20 mins ago















I haven't used ssmtp before, but it looks like you can authorize your installation using a "App Password" generated on your Google account... Ref ArchWiki
– RubberStamp
20 mins ago




I haven't used ssmtp before, but it looks like you can authorize your installation using a "App Password" generated on your Google account... Ref ArchWiki
– RubberStamp
20 mins ago















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478316%2fis-it-possible-to-configure-ssmtp-to-use-normal-gmail-security%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478316%2fis-it-possible-to-configure-ssmtp-to-use-normal-gmail-security%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?