• Re: Using sendmail with gmail

    From Marco Moock@21:1/5 to All on Wed Jun 1 13:45:32 2022
    Am Wed, 1 Jun 2022 04:38:21 -0700 (PDT)
    schrieb Hans Conreid <russellbell@gmail.com>:

    When I try to relay an e-mail with sendmail through gmail, beginning
    2022 June 1, it returns:

    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

    The Username and Password are correct: I can log in with them in my
    browser. How do I make this work?

    IIRC Google changed the auth for SMTP. You need to specify an app
    password in your Google account for SMTP and use that in authinfo.

    The reason is that if that password is known to others, they can only
    use SMTP and cannot access your entire Google account.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hans Conreid@21:1/5 to All on Wed Jun 1 04:38:21 2022
    When I try to relay an e-mail with sendmail through gmail, beginning 2022 June 1, it returns:

    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

    The Username and Password are correct: I can log in with them in my browser. How do I make this work?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hans Conreid@21:1/5 to All on Wed Jun 1 05:25:24 2022
    To get an app password requires 2-step verification: I'd have to receive an e-mail and enter a key every time I send a message. Can I automate this with sendmail?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Wed Jun 1 20:27:33 2022
    Am Mittwoch, 01. Juni 2022, um 05:25:24 Uhr schrieb Hans Conreid:

    To get an app password requires 2-step verification: I'd have to
    receive an e-mail and enter a key every time I send a message. Can I automate this with sendmail?

    Is that really the case?
    I don't know any way to automate that process.
    I also recommend you getting another mail provider, Google will annoy
    you more and more in the future with such stuff.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hans Conreid@21:1/5 to All on Wed Jun 1 14:28:11 2022
    So the instructions at gmail tell me. Someone tells me about making msmtp work using oauth2. Is there any plan to make sendmail work with oauth2? What mailer do you recommend?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Hans Conreid on Thu Jun 2 00:52:35 2022
    Hans Conreid wrote:
    To get an app password requires 2-step verification: I'd have to receive an e-mail and enter a key every time I send a message. Can I automate this
    with sendmail?

    sendmail uses Cyrus-SASL to implement AUTH.
    So you need to check with that software whether the mechanism
    is provided: maybe cyrus-sasl-xoauth2 does this?
    If so, you have to add that auth plugin and give it a try.

    Then look at cf/README:

    Providing SMTP AUTH Data when sendmail acts as Client -----------------------------------------------------
    ...
    or FEATURE(`authinfo') must be used which provides a separate map.


    Specify an "socketmap" for this and you can provide any info
    via a process which you can write to do whatever you want/need.


    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Henning Hucke@21:1/5 to Hans Conreid on Thu Jun 2 07:38:29 2022
    Hans Conreid <russellbell@gmail.com> wrote:

    Hello Hans,

    When I try to relay an e-mail with sendmail through gmail, beginning 2022 June 1, it returns:

    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

    The Username and Password are correct: I can log in with them in my browser. How do I make this work?

    possibly just google this issue and try the first hit:

    https://www.google.com/search?q=using+sendmail+with+google+mail&newwindow=1&sxsrf=ALiCzsa9cneVt-uHVAnSG2YzzhzbUkyLCg:1654155385071&source=lnt&tbs=qdr:y&sa=X&ved=2ahUKEwiZloWBoY74AhXLR_EDHeNKD6EQpwV6BAgcEB4&biw=1541&bih=1105&dpr=1

    Best regards,
    Henning
    --
    It's from Casablanca. I've been waiting all my life to use that line.
    -- Woody Allen, "Play It Again, Sam"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to All on Thu Jun 2 10:46:00 2022
    Hi Claus,

    On 6/1/22 10:52 PM, Claus Aßmann wrote:
    sendmail uses Cyrus-SASL to implement AUTH.

    Are you saying that Sendmail uses Cyrus-SASL when it's acting as a
    sending client talking to another upstream server / MTA / smart host?

    I know that Cyrus-SASL was used when sendmail was acting as the
    receiving server talking to a down stream client / MUA.



    --
    Grant. . . .
    unix || die

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Grant Taylor on Thu Jun 2 13:42:14 2022
    Grant Taylor wrote:

    On 6/1/22 10:52 PM, Claus Aßmann wrote:
    sendmail uses Cyrus-SASL to implement AUTH.

    Are you saying that Sendmail uses Cyrus-SASL when it's acting as a
    sending client talking to another upstream server / MTA / smart host?

    I didn't limit that statement to client or server side...

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)