<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1068310664;
mso-list-template-ids:1996146782;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1
{mso-list-id:1174345464;
mso-list-template-ids:-784569804;}
@list l1:level1
{mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level2
{mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level3
{mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level4
{mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level5
{mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level6
{mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level7
{mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level8
{mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level9
{mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2
{mso-list-id:1609121237;
mso-list-template-ids:-862659990;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">That did the trick, everything is working now. Thanks!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Mike<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> David Miller <justdave@bugzilla.org> <br>
<b>Sent:</b> Friday, February 24, 2023 5:13 PM<br>
<b>To:</b> Mike Ambrose <mike_a@topazsystems.com>; support-list@bugzilla.org<br>
<b>Subject:</b> Re: Bugzilla can't authenticate to gmail<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>GMail does not allow you to use AUTH LOGIN as the authentication method with your actual GMail password. Thunderbird gets around it by setting up an OAUTH2 token the first time you connect and using that instead (which is GMail's preferred authentication
method for third party clients).<o:p></o:p></p>
<p>In order to use GMail for SMTP, you need to do the following:<o:p></o:p></p>
<ol start="1" type="1">
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l2 level1 lfo1">
Make sure your Google account has a second factor authentication configured<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l2 level1 lfo1">
Set up an Application Password for Bugzilla to use.<o:p></o:p></li></ol>
<p>Then you give that application password (which is different from your normal GMail password) to Bugzilla as the SMTP password.<o:p></o:p></p>
<p>See <a href="https://support.google.com/accounts/answer/185833?hl=en">https://support.google.com/accounts/answer/185833?hl=en</a><o:p></o:p></p>
<p><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 2/24/23 7:24 PM, Mike Ambrose wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal">I followed the instructions for installing Bugzilla 5.0.6 on Ubuntu 22.0.4. There was a little tweaking required for Apache but Bugzilla is now being served by an Ubuntu server. The big problem is enabling email. I wanted to use gmail
as much easier than setting up our own SMTP server but it fails to authenticate. Ufw is disabled.
<o:p></o:p></p>
<ol start="1" type="1">
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1 level1 lfo4">
mail_delivery_method: SMTP<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1 level1 lfo4">
mailfrom: <a href="mailto:new_gmail_address@gmail.com">new_gmail_address@gmail.com</a><o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1 level1 lfo4">
smtpserver: smtp.gmail.com:465 (I also tried port 587)<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1 level1 lfo4">
smtp_username: <a href="mailto:new_gmail_address@gmail.com">new_gmail_address@gmail.com</a><o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1 level1 lfo4">
smtp_password: new_gmail_password<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1 level1 lfo4">
smtp_ssl: On<o:p></o:p></li></ol>
<p class="MsoNormal">I tested these settings using Thunderbird on the same server and it works. I also tried some things I found on the internet including changing the username spec to user, all to know avail. The following is what Apache reports:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 220 smtp.gmail.com ESMTP m2-20020a056870030200b0016dbf59175bsm95354oaf.47 - gsmtp<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)>>> EHLO bugzilla-sw<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 250-smtp.gmail.com at your service, [12.35.227.202]<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 250-SIZE 35882577<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 250-8BITMIME<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 250-ENHANCEDSTATUSCODES<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 250-PIPELINING<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 250-CHUNKING<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 250 SMTPUTF8<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)>>> AUTH LOGIN<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 334 VXNlcm5hbWU6<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< (decoded) Username:<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)>>> (decoded) <a href="mailto:my_gmail@gmail.com">
my_gmail@gmail.com</a><o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)>>> dHB6YnVnc0BnbWFpbC5jb20=<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 334 UGFzc3dvcmQ6<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< (decoded) Password:<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)>>> (decoded) my_password<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)>>> WXVtIEJ1Z3Mh<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 535-5.7.8 Username and Password not accepted. Learn more at<o:p></o:p></p>
<p class="MsoNormal">Net::SMTP::_SSL=GLOB(0x562c48a326a0)<<< 535 5.7.8 <a href="https://support.google.com/mail/?p=BadCredentials">
https://support.google.com/mail/?p=BadCredentials</a> m2-20020a056870030200b0016dbf59175bsm95354oaf.47 – gsmtp<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Does anyone have an idea what is happening here?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Mike Ambrose<o:p></o:p></p>
<p class="MsoNormal">Topaz Systems, Inc<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>support-list mailing list<o:p></o:p></pre>
<pre><a href="mailto:support-list@bugzilla.org">support-list@bugzilla.org</a><o:p></o:p></pre>
<pre><a href="https://lists.bugzilla.org/listinfo/support-list">https://lists.bugzilla.org/listinfo/support-list</a><o:p></o:p></pre>
</blockquote>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<table class="MsoNormalTable" border="0" cellpadding="0" width="300" style="width:225.0pt">
<tbody>
<tr>
<td width="106" style="width:79.5pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><img border="0" width="100" height="100" style="width:1.0416in;height:1.0416in" id="Picture_x0020_1" src="cid:image001.png@01D94909.A05FDA70" alt="[Bugzilla Logo]"><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<div>
<p class="MsoNormal"><strong><span style="font-size:13.0pt;font-family:"Calibri",sans-serif">Dave Miller</span></strong><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Project Leader<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-family:"Calibri",sans-serif">Bugzilla Project</span></strong><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://bugzilla.org/" target="_blank">https://bugzilla.org/</a><o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>