gmail for notifications - SASL authentication failed error

  • I'm trying to get notifications working through my regular gmail account and I can't seem to get it working. TO verify that it wasn't a firewall issue from my OMV box I ran
    nc -zv smtp.gmail.com 465
    with results of
    DNS fwd/rev mismatch: gmail-smtp-msa.l.google.com != pf-in-f108.1e100.net
    DNS fwd/rev mismatch: gmail-smtp-msa.l.google.com != pf-in-f109.1e100.net
    gmail-smtp-msa.l.google.com [173.194.202.108] 465 (ssmtp) open
    I've also tried port 587
    nc -zv smtp.gmail.com 587
    DNS fwd/rev mismatch: gmail-smtp-msa.l.google.com != pf-in-f108.1e100.net
    DNS fwd/rev mismatch: gmail-smtp-msa.l.google.com != pf-in-f109.1e100.net
    gmail-smtp-msa.l.google.com [173.194.202.108] 587 (submission) open


    That suggests to me that there is nothing wrong with my network setup.


    I set the notification post up with
    SMTP server - smtp.gmail.com
    SMTP port - 465
    Use SSL/TTS is enabled
    sender email is myemail@gmail.com
    username myemail@gmail.com
    password thecorrectone
    primary email myotheremail@gmail.com
    secondary email blank


    saved, applied and then I send a test email from OMV.


    nothing arrives and in the system log I see
    Sep 24 21:54:02 openmediavault postfix/cleanup[2850]: A66568C0E8A: message-id=<20150925045402.A66568C0E8A@openmediavault.localdomain>
    Sep 24 21:54:02 openmediavault postfix/qmgr[2677]: A66568C0E8A: from=<myemail@gmail.com>, size=486, nrcpt=1 (queue active)
    Sep 24 21:54:02 openmediavault postfix/smtp[2851]: CLIENT wrappermode (port smtps/465) is unimplemented
    Sep 24 21:54:02 openmediavault postfix/smtp[2851]: instead, send to (port submission/587) with STARTTLS


    If I change to SMTP port 587 and send another test email nothing arrives and the system log shows
    Sep 24 22:01:13 openmediavault postfix/pickup[7194]: B649D8C0D6F: uid=0 from=<root>
    Sep 24 22:01:13 openmediavault postfix/cleanup[7454]: B649D8C0D6F: message-id=<20150925050113.B649D8C0D6F@openmediavault.localdomain>
    Sep 24 22:01:13 openmediavault postfix/qmgr[7195]: B649D8C0D6F: from=<myemail@gmail.com>, size=486, nrcpt=1 (queue active)
    Sep 24 22:01:13 openmediavault postfix/error[7456]: B649D8C0D6F: to=<myotheremail@gmail.com>, relay=none, delay=0.25, delays=0.19/0/0/0.06, dsn=4.7.14, status=deferred (delivery temporarily suspended: SASL authentication failed; server smtp.gmail.com[74.125.25.108] said: 534-5.7.14 <https://accounts.google.com/Co…&plt=AKgnsbv9N?534-5.7.14 Ha-DYso80WLjNXoHZ98PHZuU05xWdoTbsEy2YDhpQ08lKx3zGqp3IXGZBmVdxkyYRDRsEu?534-5.7.14 sZuUve_hTKE1JXBZ_7JNJ3STVSlsup6I2GriFeI-TKTpMLwgDXXBljjFw4hHoZBx1dcnkR?534-5.7.14 JAyXHbPz7en95NwSI9a4-AM6Xc8vEOb9aakjz9K_165sTVHfibA5FWrtAYcJRZ3hOoLY48?534-5.7.14 9uWcHiYuunrQfGIA5s9ZOmk8H93I> Please log in via your web browser and?534-5.7.14 then try again.?534-5.7.14 Learn more at?534 5.7.14 https://support.google.com/mail/answer/78754 de4sm1431166pbb.60 - gsmtp)


    I logged out and back into gmail via the web browser as I think that's what the error message was about and that didn't change anything. I intentionally set the password wrong and sent another test messages
    system log shows
    Sep 24 22:12:39 openmediavault postfix/pickup[16012]: 486518C0D75: uid=0 from=<root>
    Sep 24 22:12:39 openmediavault postfix/cleanup[16124]: 486518C0D75: message-id=<20150925051239.486518C0D75@openmediavault.localdomain>
    Sep 24 22:12:39 openmediavault postfix/qmgr[16013]: 486518C0D75: from=<myemail@gmail.com>, size=486, nrcpt=1 (queue active)
    Sep 24 22:12:39 openmediavault postfix/smtp[16126]: 486518C0D75: SASL authentication failed; server smtp.gmail.com[173.194.202.109] said: 535-5.7.8 Username and Password not accepted. Learn more at?535 5.7.8 https://support.google.com/mail/answer/14257 d13sm1520563pbu.17 - gsmtp
    Sep 24 22:12:40 openmediavault postfix/smtp[16126]: 486518C0D75: SASL authentication failed; server smtp.gmail.com[173.194.202.108] said: 535-5.7.8 Username and Password not accepted. Learn more at?535 5.7.8 https://support.google.com/mail/answer/14257 pi9sm1485881pbb.96 - gsmtp
    Sep 24 22:12:40 openmediavault postfix/smtp[16126]: connect to smtp.gmail.com[2607:f8b0:400e:c00::6d]:587: Network is unreachable
    Sep 24 22:12:40 openmediavault postfix/smtp[16126]: 486518C0D75: to=<myotheremail@gmail.com>, relay=none, delay=1.1, delays=0.22/0.02/0.87/0, dsn=4.4.1, status=deferred (connect to smtp.gmail.com[2607:f8b0:400e:c00::6d]:587: Network is unreachable)



    Any suggestions? I can't be the only person here wanting gmail for notifications

  • I managed to get my gmail account working (after some dificulties I remember). I will have a look when I'm back home and try to give you my settings. But it can take a while today.

    OMV6.x

    AMD Ryzen 5 5600G

    ASRock B550M Pro4

    Crucial DIMM 16GB

    Western Digital WD Blue SN570

    Seagate IronWolf 8TB/WD Red 8TB

    AeroCool CS-102

  • Ok, here are my settings as promised. I moreover remember playing around with the Google savety settings like two steps verification, unsecure apps etc. (I don't know the exact english terms).


    This is my working config, I keep getting every wanted information.

  • Ok for anyone else that comes across this issue I got it working.


    my settings are the same as above, smtp.gmail.com, Port 587 SSL/TTS and require authentication both turned on. In gmail I had to activate 2 step verification, at https://myaccount.google.com/security


    When that was setup App Passwords showed up below the 2 step verification. Click on that


    I added an app called OMV it generated a password.


    In OMV I used myemailaddress@gmail.com as the username and the generated password. Save, apply, test email arrives.


    Done.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!