• Re: [gentoo-user] Computer system email no not working since gmail chan

    From covici@ccs.covici.com@21:1/5 to Dale on Thu Sep 26 09:20:01 2024
    On Wed, 25 Sep 2024 16:43:09 -0400,
    Dale wrote:

    Dale wrote:
    Hi,

    I posted the other day about my email setup.á Then it hit me, while I copied the settings over, I never tested it.á So, I tested it.á Sure enough, no email sent.á Got error messages tho.á I mostly, maybe only,
    use this for SMART drive info.á If it detects failure or problems, it emails me.á Well, it's supposed to anyway.á So, I test by restarting
    smartd and it set to send a test email.á

    I'm almost certain this started when Google changed the security setup a few years back.á I've googled and tried the settings others use
    including the passkey thingy.á None of it works.á This is the output of messages for both smartd and smtp.á Check out my fancy egrep.á :-Dá


    root@Gentoo-1 / # tail -n 50 -f /var/log/messages | egrep 'smartd|sSMTP' Sepá 2 21:23:08 Gentoo-1 smartd[20742]: Monitoring 8 ATA/SATA, 0
    SCSI/SAS and 1 NVMe devices
    Sepá 2 21:23:08 Gentoo-1 smartd[20742]: Executing test of <mail> to root ...
    Sepá 2 21:25:25 Gentoo-1 sSMTP[20757]: Unable to connect to "smtp.gmail.com" port 587.
    Sepá 2 21:25:25 Gentoo-1 sSMTP[20757]: Cannot open smtp.gmail.com:587
    Sepá 2 21:25:25 Gentoo-1 smartd[20742]: Test of <mail> to root produced unexpected output (65 bytes) to STDOUT/STDERR:
    Sepá 2 21:25:25 Gentoo-1 smartd[20742]: mail: cannot send message:
    Process exited with a non-zero status
    Sepá 2 21:25:25 Gentoo-1 smartd[20742]: Test of <mail> to root: failed (32-bit/8-bit exit status: 256/1)
    Sepá 2 21:25:25 Gentoo-1 smartd[20742]: Executing test of <mail> to root ...
    Sepá 2 21:27:40 Gentoo-1 sSMTP[20885]: Unable to connect to "smtp.gmail.com" port 587.
    Sepá 2 21:27:40 Gentoo-1 sSMTP[20885]: Cannot open smtp.gmail.com:587



    This is a edited version of some config files.á Obvious things like passwords and such changed.á


    root@Gentoo-1 / # cat /etc/ssmtp/revaliases

    root:rdalek<annoy the bots>1967@gmail.com:smtp.gmail.com:587 dalerdalek<annoy the bots>1967@gmail.com:587
    other_user:rdalek<annoy the bots>1967@gmail.com:587
    root@Gentoo-1 / #

    root@Gentoo-1 / # grep -v '^#' /etc/ssmtp/ssmtp.conf
    root=postmaster
    root=rdalek1967@gmail.comá #Change to your preferred email address mailhub=smtp.gmail.com:587á #Could also use port 587 for STARTTLS Old 465 rewriteDomain=Gentoo-1á #Something to denote your machine's name FromLineOverride=YES
    UseSTARTTLS=YES
    #UseTLS=YES
    AuthUser=rdalek<annoy the bots>1967@gmail.com
    AuthPass=<not real either>á #Special characters seem to barf with ssmtp #AuthPass=abcdefghijklmnop
    mailhub=mail
    # hostname=_HOSTNAME_
    hostname=Gentoo-1
    root@Gentoo-1 / #


    I think that is the only config files.á If not, I may have missed one
    and that is the problem.á Some things that are commented out are things
    I tried with no success.á If someone has a working setup and would like
    to share a similar edited version of their files, that would be awesome.á

    Any ideas?á Does Google just outright block this now?á If so, I have another good reason to get rid of gmail.á :-)á

    Dale

    :-)á :-)



    No one here has their system set up to use Gmail for system emails???á
    Surely there is one person who can share a working config.á I just wish Google would stop changing things and screwing up our emails.á
    I would never use a free Email service to send -- its worth exactly
    what you pay for!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wolfgang =?utf-8?Q?M=C3=BCller?=@21:1/5 to Dale on Thu Sep 26 11:10:01 2024
    On 2024-09-02 21:44, Dale wrote:
    Sep  2 21:23:08 Gentoo-1 smartd[20742]: Executing test of <mail> to root ... Sep  2 21:25:25 Gentoo-1 sSMTP[20757]: Unable to connect to
    "smtp.gmail.com" port 587.
    Sep  2 21:25:25 Gentoo-1 sSMTP[20757]: Cannot open smtp.gmail.com:587
    Sep  2 21:25:25 Gentoo-1 smartd[20742]: Test of <mail> to root produced unexpected output (65 bytes) to STDOUT/STDERR:
    Sep  2 21:25:25 Gentoo-1 smartd[20742]: mail: cannot send message:
    Process exited with a non-zero status
    Sep  2 21:25:25 Gentoo-1 smartd[20742]: Test of <mail> to root: failed (32-bit/8-bit exit status: 256/1)
    Sep  2 21:25:25 Gentoo-1 smartd[20742]: Executing test of <mail> to root ... Sep  2 21:27:40 Gentoo-1 sSMTP[20885]: Unable to connect to
    "smtp.gmail.com" port 587.
    Sep  2 21:27:40 Gentoo-1 sSMTP[20885]: Cannot open smtp.gmail.com:587

    What's nagging me about this is that there's a 2 minute delay between
    smartd executing the test and ssmtp reporting that it can't connect to smtp.gmail.com. Looks like a timeout to me rather than any issue with
    mail. You should at least get an "authentication failed" message back
    from Google... or any message at all, really.

    Can you check whether you can actually access smtp.gmail.com? Try this:

    ncat smtp.gmail.com 587

    Perhaps also set -v on ssmtp to get additional log output.

    PS: ssmtp has been unmaintained since at least 2019, consider using
    msmtp instead.

    --
    Wolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Thu Sep 26 09:56:50 2024
    On Thursday 26 September 2024 08:28:47 BST Dale wrote:
    covici@ccs.covici.com wrote:
    On Wed, 25 Sep 2024 16:43:09 -0400,

    Dale wrote:
    Dale wrote:
    Hi,

    I posted the other day about my email setup. Then it hit me, while I
    copied the settings over, I never tested it. So, I tested it. Sure
    enough, no email sent. Got error messages tho. I mostly, maybe only, >>> use this for SMART drive info. If it detects failure or problems, it
    emails me. Well, it's supposed to anyway. So, I test by restarting
    smartd and it set to send a test email.

    I'm almost certain this started when Google changed the security setup a >>> few years back. I've googled and tried the settings others use
    including the passkey thingy. None of it works. This is the output of >>> messages for both smartd and smtp. Check out my fancy egrep. :-D


    root@Gentoo-1 / # tail -n 50 -f /var/log/messages | egrep 'smartd|sSMTP' >>> Sep 2 21:23:08 Gentoo-1 smartd[20742]: Monitoring 8 ATA/SATA, 0
    SCSI/SAS and 1 NVMe devices
    Sep 2 21:23:08 Gentoo-1 smartd[20742]: Executing test of <mail> to root >>> ... Sep 2 21:25:25 Gentoo-1 sSMTP[20757]: Unable to connect to
    "smtp.gmail.com" port 587.
    Sep 2 21:25:25 Gentoo-1 sSMTP[20757]: Cannot open smtp.gmail.com:587
    Sep 2 21:25:25 Gentoo-1 smartd[20742]: Test of <mail> to root produced >>> unexpected output (65 bytes) to STDOUT/STDERR:
    Sep 2 21:25:25 Gentoo-1 smartd[20742]: mail: cannot send message:
    Process exited with a non-zero status
    Sep 2 21:25:25 Gentoo-1 smartd[20742]: Test of <mail> to root: failed >>> (32-bit/8-bit exit status: 256/1)
    Sep 2 21:25:25 Gentoo-1 smartd[20742]: Executing test of <mail> to root >>> ... Sep 2 21:27:40 Gentoo-1 sSMTP[20885]: Unable to connect to
    "smtp.gmail.com" port 587.
    Sep 2 21:27:40 Gentoo-1 sSMTP[20885]: Cannot open smtp.gmail.com:587



    This is a edited version of some config files. Obvious things like
    passwords and such changed.


    root@Gentoo-1 / # cat /etc/ssmtp/revaliases

    root:rdalek<annoy the bots>1967@gmail.com:smtp.gmail.com:587
    dalerdalek<annoy the bots>1967@gmail.com:587
    other_user:rdalek<annoy the bots>1967@gmail.com:587
    root@Gentoo-1 / #

    root@Gentoo-1 / # grep -v '^#' /etc/ssmtp/ssmtp.conf
    root=postmaster
    root=rdalek1967@gmail.com #Change to your preferred email address
    mailhub=smtp.gmail.com:587 #Could also use port 587 for STARTTLS Old
    465
    rewriteDomain=Gentoo-1 #Something to denote your machine's name
    FromLineOverride=YES
    UseSTARTTLS=YES
    #UseTLS=YES
    AuthUser=rdalek<annoy the bots>1967@gmail.com
    AuthPass=<not real either> #Special characters seem to barf with ssmtp >>> #AuthPass=abcdefghijklmnop
    mailhub=mail
    # hostname=_HOSTNAME_
    hostname=Gentoo-1
    root@Gentoo-1 / #


    I think that is the only config files. If not, I may have missed one
    and that is the problem. Some things that are commented out are things >>> I tried with no success. If someone has a working setup and would like >>> to share a similar edited version of their files, that would be
    awesome.

    Any ideas? Does Google just outright block this now? If so, I have
    another good reason to get rid of gmail. :-)

    Dale

    :-) :-)

    No one here has their system set up to use Gmail for system emails???
    Surely there is one person who can share a working config. I just wish
    Google would stop changing things and screwing up our emails.

    ssmtp stopped working with a conventional password when Google introduced 2- Step-Verification for their GMail account. Consequently, to be able to continue using ssmtp you need to set up an 'App Password' and use the 16- character password generated by Google to login:

    https://support.google.com/mail/answer/185833

    It used to be the case you could set up an 'App Password' without having to provide them with your phone number and other 'none-of-their-business'
    personal information, but for some years now they have been asking for more information to allow you to complete setting up 'App Password' for your Google account(s) and device(s).


    I would never use a free Email service to send -- its worth exactly
    what you pay for!

    When the service is offered as being supposedly 'free', you, by providing your data, is the product.


    Well, I been wanting to switch but can't find one I know I will like
    long term. I don't want to switch then not like it and have to switch
    again. Then maybe repeat that a few times. I was thinking about
    switching to startmail but they started this captcha stuff which makes
    their website unusable for me. Every time I clicked on something,
    captcha. Click on something else, captcha. I stopped using startpage completely after reaching out to them and basically, getting little to
    no real help. Shame really. Seemed like a good option.

    Mass-market services cannot afford providing individual user support. At best they may provide some FAQs. Some may host a forum of sorts for users to offer support to other users. Oh, ... hold on! LOL!


    If you know a email service that isn't to expensive but is secure, not
    secure enough to block me from doing things I need to do tho, I'm open
    to ideas. I'd like something that is outside the USA if possible. You
    know, one of those countries that tells folks to go pound sand when they
    want to snoop around. ;-)

    The snooping mostly takes place across borders. Your government's 3-letter agencies will ask whichever other hosting country's agencies to share with
    them any information they have about you and reciprocate accordingly. There
    is no privacy on the Internet.

    That said, if you're interested in limiting opportunistic snooping, something like this may help:

    https://proton.me/mail

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmb1IdIACgkQseqq9sKV Zxlamg/9EFhr171pxT7RQBsWhoPEO7s+D1Jop9N6ZOif4uUJiqEWUW6G5MKvinTB jBQ4gCde2FnGR6FwgS85Q+xCEpPdypoZRuuFZ0JTh88Ti2LwY6cnWN4Tk5ZOPDrm 7mdzWuy5LwIT3BaCMOJMC75+TgG8uW1zMfksHVmHIUO+l+CPm4LrlOCtzmdWRvLg L+U8blgiYDnpT1enyJZNC0p59sC8kjB6dQ9P+wDs+5Ph0obwLC+U4xsSVa9jBx2t WK+mlclUKipmYK8GiJeGXx6qbI2TWt65eMMofBg3/NJt6h2Yvv2lqGoTWfH9Asmv 3L5lrX5oewuciYpT/ELvlwCcVYtFfz7VZwwPRfC7oKivMv6ecx3bcFXnHiI3TT49 DuJV0QAieUj8TIYEUjBY2Hz3Au3MGfs6U50JHSxEDz9pL5tX1dy4IX9IUXZ87top Z2vL7atxj17ZYjFSX6MbxP3KySsChhuF1bDqZh4fsuj7zeQNiTEHSjjUZLUsGvDj d4O7uFuCfjALGgA9ExmdhufHVwHH0gRsmxSz1Z+l0Qc2eE+D2za9FB/0f392LzrD sLUw9qMUbhcyGHJaK7cdVn04OVghbL2MXZHOkzS9Q3xzg8Bz2XMELJ8y9+0g2hJk Lga8WSTkh5WwpapdOFWcrIXemqG5MJSfB/9NT3z/XV0xw5Ujc+A=
    =9Ikv
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Thu Sep 26 12:16:12 2024
    On Thursday 26 September 2024 11:44:08 BST Dale wrote:
    Michael wrote:
    On Thursday 26 September 2024 08:28:47 BST Dale wrote:
    ssmtp stopped working with a conventional password when Google
    introduced 2-

    Step-Verification for their GMail account. Consequently, to be able to continue using ssmtp you need to set up an 'App Password' and use the 16-

    character password generated by Google to login:
    https://support.google.com/mail/answer/185833

    It used to be the case you could set up an 'App Password' without having
    to
    provide them with your phone number and other 'none-of-their-business' personal information, but for some years now they have been asking for
    more
    information to allow you to complete setting up 'App Password' for your Google account(s) and device(s).

    I also tried the 16 character password method too. It still didn't work.

    In this case the ssmtp package has outlived its usefulness. It was always limited in what characters it would accept and parse as a password. It's abandonware since 2019 - debian recommends to use msmtp:

    https://wiki.debian.org/sSMTP

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmb1QnwACgkQseqq9sKV ZxnkOA/9FUsJFGP5vQxQ9Nbz+IDZU4jS58zyXCN7zltCksBfyIUDRmzuX7HoMEB1 u+9DL4smnR6nCWPyPRR0rU6XHRq4fjNsL8CM1DbjZDpOutPT43FSxR2j6F/3Ggs2 JaYOBgpk2f+AVjh+J2sNbbgUSJ4C6aJqE1vP8r9+K2uEfvT5dg+8JJH1yPpmj5oV 5KHMsLkvqKn1QEovNCNh7ABUbNnWxJsgtsAo1etdrZxn2ZozvpGRgleuUVdB9+rE myF25+3TOVm3pksVkNk/LBOb8Zn/qGm8++1gOIJNheSm4O2jpeRofphtcrQQiSgd 9fhFvaNI54qG6A4XgZuDlpgbdq1gaNvh5mt73p5ROJnNYeXTGfqmxGqPAh55/c56 VNIN6/Aj8up2xTe1e6jAuEG5I9gUPgq/li1q2ghKCejPh4CW1KEDyF7X4Ei5VvfX XMTLDQNdMDyRbwng58IyTC6XZT0bJP3LATWyFkhvZNP8tWxbjrxQ9WID838TcyaB UxqX3NQj1W2VrpYm9aDLyQQ7/IIwzB6k5qyY+dFhREyOLWQxG/5Yla64zm2MU1vu g2VvV53pIYLyz6gyJZh0hMRHjIkCUBCywacl8qfxC26tlUjG8ubNJTg61ZWp6RJA YfUNmSpIZCfPwWg3mVYF9qOFbS1apun28+2T8LYweKt0qHoAMTs=
    =K0za
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From covici@ccs.covici.com@21:1/5 to Dale on Thu Sep 26 14:00:01 2024
    On Thu, 26 Sep 2024 03:28:47 -0400,
    Dale wrote:

    covici@ccs.covici.com wrote:
    On Wed, 25 Sep 2024 16:43:09 -0400,
    Dale wrote:
    Dale wrote:
    Hi,

    I posted the other day about my email setup.á Then it hit me, while I
    copied the settings over, I never tested it.á So, I tested it.á Sure
    enough, no email sent.á Got error messages tho.á I mostly, maybe only, >>> use this for SMART drive info.á If it detects failure or problems, it
    emails me.á Well, it's supposed to anyway.á So, I test by restarting
    smartd and it set to send a test email.á

    I'm almost certain this started when Google changed the security setup a >>> few years back.á I've googled and tried the settings others use
    including the passkey thingy.á None of it works.á This is the output of >>> messages for both smartd and smtp.á Check out my fancy egrep.á :-Dá


    root@Gentoo-1 / # tail -n 50 -f /var/log/messages | egrep 'smartd|sSMTP' >>> Sepá 2 21:23:08 Gentoo-1 smartd[20742]: Monitoring 8 ATA/SATA, 0
    SCSI/SAS and 1 NVMe devices
    Sepá 2 21:23:08 Gentoo-1 smartd[20742]: Executing test of <mail> to root ...
    Sepá 2 21:25:25 Gentoo-1 sSMTP[20757]: Unable to connect to
    "smtp.gmail.com" port 587.
    Sepá 2 21:25:25 Gentoo-1 sSMTP[20757]: Cannot open smtp.gmail.com:587
    Sepá 2 21:25:25 Gentoo-1 smartd[20742]: Test of <mail> to root produced >>> unexpected output (65 bytes) to STDOUT/STDERR:
    Sepá 2 21:25:25 Gentoo-1 smartd[20742]: mail: cannot send message:
    Process exited with a non-zero status
    Sepá 2 21:25:25 Gentoo-1 smartd[20742]: Test of <mail> to root: failed >>> (32-bit/8-bit exit status: 256/1)
    Sepá 2 21:25:25 Gentoo-1 smartd[20742]: Executing test of <mail> to root ...
    Sepá 2 21:27:40 Gentoo-1 sSMTP[20885]: Unable to connect to
    "smtp.gmail.com" port 587.
    Sepá 2 21:27:40 Gentoo-1 sSMTP[20885]: Cannot open smtp.gmail.com:587



    This is a edited version of some config files.á Obvious things like
    passwords and such changed.á


    root@Gentoo-1 / # cat /etc/ssmtp/revaliases

    root:rdalek<annoy the bots>1967@gmail.com:smtp.gmail.com:587
    dalerdalek<annoy the bots>1967@gmail.com:587
    other_user:rdalek<annoy the bots>1967@gmail.com:587
    root@Gentoo-1 / #

    root@Gentoo-1 / # grep -v '^#' /etc/ssmtp/ssmtp.conf
    root=postmaster
    root=rdalek1967@gmail.comá #Change to your preferred email address
    mailhub=smtp.gmail.com:587á #Could also use port 587 for STARTTLS Old 465 >>> rewriteDomain=Gentoo-1á #Something to denote your machine's name
    FromLineOverride=YES
    UseSTARTTLS=YES
    #UseTLS=YES
    AuthUser=rdalek<annoy the bots>1967@gmail.com
    AuthPass=<not real either>á #Special characters seem to barf with ssmtp >>> #AuthPass=abcdefghijklmnop
    mailhub=mail
    # hostname=_HOSTNAME_
    hostname=Gentoo-1
    root@Gentoo-1 / #


    I think that is the only config files.á If not, I may have missed one
    and that is the problem.á Some things that are commented out are things >>> I tried with no success.á If someone has a working setup and would like >>> to share a similar edited version of their files, that would be awesome.á >>>
    Any ideas?á Does Google just outright block this now?á If so, I have
    another good reason to get rid of gmail.á :-)á

    Dale

    :-)á :-)


    No one here has their system set up to use Gmail for system emails???á
    Surely there is one person who can share a working config.á I just wish
    Google would stop changing things and screwing up our emails.á

    I would never use a free Email service to send -- its worth exactly
    what you pay for!


    Well, I been wanting to switch but can't find one I know I will like
    long term.á I don't want to switch then not like it and have to switch again.á Then maybe repeat that a few times.á I was thinking about
    switching to startmail but they started this captcha stuff which makes
    their website unusable for me.á Every time I clicked on something,
    captcha.á Click on something else, captcha.á I stopped using startpage completely after reaching out to them and basically, getting little to
    no real help.á Shame really.á Seemed like a good option.á

    If you know a email service that isn't to expensive but is secure, not
    secure enough to block me from doing things I need to do tho, I'm open
    to ideas.á I'd like something that is outside the USA if possible.á You
    know, one of those countries that tells folks to go pound sand when they
    want to snoop around.á ;-)á Oh, not interested in setting up my own
    either.á I got enough interesting computer problems already.á ;-)á

    I was looking at fastmail but which ever you go with, you should setup
    your own domain and that way if you don't like your provider you can
    change without changing your email address.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Steinmetzger@21:1/5 to All on Thu Sep 26 15:50:01 2024
    Am Thu, Sep 26, 2024 at 05:44:08AM -0500 schrieb Dale:

    That said, if you're interested in limiting opportunistic snooping, something
    like this may help:

    https://proton.me/mail


    I'll have to check into that more.  I'm not sure I could send my system emails through that tho.  It sounds like it requires encryption end to end.  I think. 

    Dale

    I would actually try and set up local mail delivery straight to /var/spool without the detour over a network. We’ve had this topic already, methinks. You can then add the folder to Thunderbird/Seamonkey, since spool usually is mbox format, which is also the default in TB.

    --
    Grüße | Greetings | Salut | Qapla’
    Please do not share anything from, with or about me on any social network.

    If a snowball is a ball of snow – what, then, is a football?

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmb1ZNQACgkQizG+tUDU MMoAgg//QWBCgyhozzzud3lW4R7IcOmf19GkA9TxMutDh70ckptfj26UL8QrIflo V+7xee7tyo77rvkPiQRUjWE7/Y1i4AquiqPdP+Qk1yc0myLHevZe3wSKf+p+PwMN yqweB2rkjWR7s87ciV4EhLtS/tOwYTJSzTkTz5FBtgxPSmHPQPNpETcSxxen3Scx mSj6V8a9qHpiW7DexRTGgPQrMf93UBIN4gHI6EdZXj/uVRmwjdm0hdhsLPhWijgr TOKpqDbCik6P4MUWbTOdXkm/Iwxo55hpXKPeryWDWaSR2OmiP/U0Exa78A8eLZSI /qHUfble2EWbqUINqqWLRggtTTBo9l9d1DjW2VE3mlZt1n//bxYAIhdpymhpD+bq au22PwUrVs/CzuPwOUkeef/ARcadfDBNUsmnWB+Wv2ydqJiJa7GHqD3KlcouUJBy Js3zTXeJ00SzjKQ+XZTJGWynLyhfr9Infjo2jDCcUEXwJKk7MDrWrBSz41sJ8CEd MELIETfCpRCE28OnvM3F2YIlbI5uk3j7mubecNbMTIl7yFBJZGttWQRKR4Dvmz3F QM2oAAsqUDKj2KnU0/QeB7D6fSBioLWyxp/vxSwNaNyUNdodAhRySTC2D1ZutpKT 7k05NEB7Md37kNAfecgoK4a+ZCaV5D44h+Hwp7s2HU3O7/3XKEA=
    =G6Vj
    -----END PGP SI