Re: [gentoo-user] Computer system email no not working since gmail change.

2024-09-26 Thread Michael
On Thursday 26 September 2024 08:28:47 BST Dale wrote:
> cov...@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  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  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  to root: failed
> >>> (32-bit/8-bit exit status: 256/1)
> >>> Sep  2 21:25:25 Gentoo-1 smartd[20742]: Executing test of  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:rdalek1...@gmail.com:smtp.gmail.com:587
> >>> dalerdalek1...@gmail.com:587
> >>> other_user:rdalek1...@gmail.com:587
> >>> root@Gentoo-1 / #
> >>> 
> >>> root@Gentoo-1 / # grep -v '^#' /etc/ssmtp/ssmtp.conf
> >>> root=postmaster
> >>> root=rdalek1...@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=rdalek1...@gmail.com
> >>> AuthPass=  #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 basic

Re: [gentoo-user] Computer system email no not working since gmail change.

2024-09-26 Thread Wolfgang Müller
On 2024-09-02 21:44, Dale wrote:
> Sep  2 21:23:08 Gentoo-1 smartd[20742]: Executing test of  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  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  to root: failed
> (32-bit/8-bit exit status: 256/1)
> Sep  2 21:25:25 Gentoo-1 smartd[20742]: Executing test of  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



Re: [gentoo-user] Computer system email no not working since gmail change.

2024-09-26 Thread Dale
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. 

>>> 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


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

:-)  :-) 


Re: [gentoo-user] Computer system email no not working since gmail change.

2024-09-26 Thread Michael
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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Computer system email no not working since gmail change.

2024-09-26 Thread covici
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  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  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  to root: failed
> > (32-bit/8-bit exit status: 256/1)
> > Sep  2 21:25:25 Gentoo-1 smartd[20742]: Executing test of  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:rdalek1...@gmail.com:smtp.gmail.com:587
> > dalerdalek1...@gmail.com:587
> > other_user:rdalek1...@gmail.com:587
> > root@Gentoo-1 / #
> >
> > root@Gentoo-1 / # grep -v '^#' /etc/ssmtp/ssmtp.conf
> > root=postmaster
> > root=rdalek1...@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=rdalek1...@gmail.com
> > AuthPass=  #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!



Re: [gentoo-user] Computer system email no not working since gmail change.

2024-09-26 Thread Dale
cov...@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  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  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  to root: failed
>>> (32-bit/8-bit exit status: 256/1)
>>> Sep  2 21:25:25 Gentoo-1 smartd[20742]: Executing test of  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:rdalek1...@gmail.com:smtp.gmail.com:587
>>> dalerdalek1...@gmail.com:587
>>> other_user:rdalek1...@gmail.com:587
>>> root@Gentoo-1 / #
>>>
>>> root@Gentoo-1 / # grep -v '^#' /etc/ssmtp/ssmtp.conf
>>> root=postmaster
>>> root=rdalek1...@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=rdalek1...@gmail.com
>>> AuthPass=  #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.  ;-) 

Dale

:-)  :-) 



Re: [gentoo-user] Computer system email no not working since gmail change.

2024-09-26 Thread Dale
Michael wrote:
> 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


I removed ssmtp and installed msmtp.  I think I got the config set up
but it is different so I may not have it right.  It doesn't work tho. 
>From messages.


Sep 26 10:03:33 Gentoo-1 smartd[27728]: Executing test of  to root ...
Sep 26 10:05:40 Gentoo-1 msmtp[30861]: host=smtp.gmail.com tls=on
auth=off from=rdalek1967gmail.com recipients=root errormsg='cannot
connect to smtp.gmail.com, port 587: Connection timed out'
exitcode=EX_TEMPFAIL
Sep 26 10:05:40 Gentoo-1 smartd[27073]: Test of  to root produced
unexpected output (65 bytes) to STDOUT/STDERR:
Sep 26 10:05:40 Gentoo-1 smartd[27073]: mail: cannot send message:
Process exited with a non-zero status
Sep 26 10:05:40 Gentoo-1 smartd[27073]: Test of  to root: failed
(32-bit/8-bit exit status: 256/1)


Config file:


account default

# The SMTP smarthost
#host mail.oursite.example
host smtp.gmail.com
# Use TLS on port 465. On this port, TLS starts without STARTTLS.
#port 465
port 587
tls on
# tls_starttls off
tls_starttls on
#password sorry
password sorry
# Construct envelope-from addresses of the form "user@oursite.example"
#from %U@oursite.example
from rdalek1967gmail.com
# Do not allow programs to override this envelope-from address via -f
allow_from_override off
# Always set a From header that matches the envelope-from address
set_from_header on

# Syslog logging with facility LOG_MAIL instead of the default LOG_USER
syslog LOG_MAIL


What did I do wrong?  ;-)

Dale

:-)  :-) 


Re: [gentoo-user] Computer system email no not working since gmail change.

2024-09-26 Thread Frank Steinmetzger
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?


signature.asc
Description: PGP signature


Re: [gentoo-user] Computer system email no not working since gmail change.

2024-09-26 Thread covici
On Thu, 26 Sep 2024 03:28:47 -0400,
Dale wrote:
> 
> cov...@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  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  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  to root: failed
> >>> (32-bit/8-bit exit status: 256/1)
> >>> Sep  2 21:25:25 Gentoo-1 smartd[20742]: Executing test of  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:rdalek1...@gmail.com:smtp.gmail.com:587
> >>> dalerdalek1...@gmail.com:587
> >>> other_user:rdalek1...@gmail.com:587
> >>> root@Gentoo-1 / #
> >>>
> >>> root@Gentoo-1 / # grep -v '^#' /etc/ssmtp/ssmtp.conf
> >>> root=postmaster
> >>> root=rdalek1...@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=rdalek1...@gmail.com
> >>> AuthPass=  #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.



[gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Grant Edwards
On 2024-09-26, Dale  wrote:
>
>> 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.

For what value of "didn't work"?

I don't use it regularly, but I set it up several years ago and it was
working fine the last time I tried it (a couple months ago).

--
Grant




[gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Grant Edwards
On 2024-09-26, cov...@ccs.covici.com  wrote:
>
> 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.

I"ve decided to do that several times over the past couple decades.
Each time I started out trying to pick a domain (that was avaialable)
which I wanted to live with for the rest of my life. I could never get
past that step.

--
Grant






Re: [gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Dale
Grant Edwards wrote:
> On 2024-09-26, Dale  wrote:
>>> 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.
> For what value of "didn't work"?
>
> I don't use it regularly, but I set it up several years ago and it was
> working fine the last time I tried it (a couple months ago).
>
> --
> Grant
>
>
> .
>


It did the same thing as using the regular password. 

Dale

:-)  :-) 



Re: [gentoo-user] Computer system email no not working since gmail change.

2024-09-26 Thread Matt Connell
>On Wed, 2024-09-25 at 15:43 -0500, Dale wrote:
> No one here has their system set up to use Gmail for system
> emails??? 

I wouldn't consider gmail an option for any emails, system or
otherwise.

> On Thu, 2024-09-26 at 02:28 -0500, Dale wrote:
> 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.

I can happily vouch for Mailfence.  I've been a customer for ~7 years
now.  They are located in Belgium (strong privacy laws), and they have
great customer support, with real people who understand things like
DKIM. Plus, I can bring my own domain!  I pay roughly $3.50 USD per
month.  They have a free tier plan to try it out and see if it will
work out for you.



[gentoo-user] French binhost down

2024-09-26 Thread Alexis Praga
Hi,

Just found out that http://ftp.free.fr/mirrors/ftp.gentoo.org/ (French mirror 
that I use for binaries) is down.
Is there anyone that can be notified for that ?

http://gentoo.mirrors.ovh.net/gentoo-distfiles/ works fine.

Thanks,

Alexis

signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Grant Edwards
On 2024-09-26, Grant Edwards  wrote:
> On 2024-09-26, Dale  wrote:
>
>> Sep 26 10:03:33 Gentoo-1 smartd[27728]: Executing test of  to root ...
>> Sep 26 10:05:40 Gentoo-1 msmtp[30861]: host=smtp.gmail.com tls=on
>> auth=off from=rdalek1967gmail.com recipients=root errormsg='cannot
>> connect to smtp.gmail.com, port 587: Connection timed out'
>> exitcode=EX_TEMPFAIL
>
> It looks like your network is broken. Try this:
>
> $ telnet smtp.gmail.com 587
> Trying 209.85.145.109...
> Connected to smtp.gmail.com.
> Escape character is '^]'.
> 220 smtp.gmail.com ESMTP 8926c6da1cb9f-4d60978sm58959173.69 - gsmtp

BTW, some ISPs block connections to SMTP ports on hosts other than
their own mail servers.  [Which is a particularly annoying type of
"broken".]




Re: [gentoo-user] French binhost down

2024-09-26 Thread Dale
Alexis Praga wrote:
> Hi,
>
> Just found out that http://ftp.free.fr/mirrors/ftp.gentoo.org/ (French mirror 
> that I use for binaries) is down.
> Is there anyone that can be notified for that ?
>
> http://gentoo.mirrors.ovh.net/gentoo-distfiles/ works fine.
>
> Thanks,
>
> Alexis


I forwarded a copy of your email off list to a person I've talked to
about the binary packages.  If he can't check himself, I suspect he
knows who can.  Could just be a temporary thing tho.  Might be fixed by
the time someone looks into it.  ;-) 

Dale

:-)  :-) 


[gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Grant Edwards
On 2024-09-26, Dale  wrote:
> Grant Edwards wrote:
>
>> It looks like your network is broken. Try this:
>>
>> $ telnet smtp.gmail.com 587
>> Trying 209.85.145.109...
>> Connected to smtp.gmail.com.
>> Escape character is '^]'.
>> 220 smtp.gmail.com ESMTP 8926c6da1cb9f-4d60978sm58959173.69 - gsmtp
>>
>> Note: Port 587 is for plaintext connection and then shifting into TLS
>> mode with the starttls command.  When configuring msmtp:
>>
>> port 587
>> tls on
>> tls-starttls on
>> or
>> port 465
>> tls on
>> tls-starttls off
>>
>> Port 465 starts using TLS immediately
>>
>> [...]

> Which package do I need for that telnet?  I see a few packages with that
> name. 

Any of them should work.  I use net-misc/netkit-telnetd.  It will also
install a telnet daemon, but it won't enbale it

> I am connected through a VPN but Seamonkey works fine.  I can check and
> send email there,

Do you mean can send email via Gmail's SMTP server using Seamonkey?

How are the SMTP server settings configured in Seamonkey?

Is it using Oauth2 or an app password?

> hence this thread.  I figure I got something set up wrong after a
> Gmail change.  Sort of stupid to make something so secure you can't
> use it.  It's like buying a computer and saying the only way to
> secure it is to keep it turned off.  :/ 

Well, that last part is true, as long as you keep it in a locked room.

I just did a quick test, and sending via smtp.gmail.com using an app
password worked fine from mutt.  I don't have msmtp set up at the
moment.




[gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Grant Edwards
On 2024-09-26, Dale  wrote:

> I removed ssmtp and installed msmtp. I think I got the config set up
> but it is different so I may not have it right. It doesn't work tho.
> From messages.
>
>
> Sep 26 10:03:33 Gentoo-1 smartd[27728]: Executing test of  to root ...
> Sep 26 10:05:40 Gentoo-1 msmtp[30861]: host=smtp.gmail.com tls=on
> auth=off from=rdalek1967gmail.com recipients=root errormsg='cannot
> connect to smtp.gmail.com, port 587: Connection timed out'
> exitcode=EX_TEMPFAIL

It looks like your network is broken. Try this:

$ telnet smtp.gmail.com 587
Trying 209.85.145.109...
Connected to smtp.gmail.com.
Escape character is '^]'.
220 smtp.gmail.com ESMTP 8926c6da1cb9f-4d60978sm58959173.69 - gsmtp

Note: Port 587 is for plaintext connection and then shifting into TLS
mode with the starttls command.  When configuring msmtp:

port 587
tls on
tls-starttls on
or
port 465
tls on
tls-starttls off

Port 465 starts using TLS immediately

$ openssl s_client -connect smtp.gmail.com:465
CONNECTED(0003)
depth=2 C = US, O = Google Trust Services LLC, CN = GTS Root R1
verify return:1
depth=1 C = US, O = Google Trust Services, CN = WR2
verify return:1
depth=0 CN = smtp.gmail.com
verify return:1
---
Certificate chain
 0 s:CN = smtp.gmail.com
   i:C = US, O = Google Trust Services, CN = WR2
   a:PKEY: id-ecPublicKey, 256 (bit); sigalg: RSA-SHA256
   v:NotBefore: Aug 26 07:12:09 2024 GMT; NotAfter: Nov 18 07:12:08 2024 GMT
[...]   
---
read R BLOCK
220 smtp.gmail.com ESMTP e9e14a558f8ab-3a344d9250esm496675ab.41 - gsmtp






[gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Grant Edwards
On 2024-09-26, Dale  wrote:

> root@Gentoo-1 / # telnet smtp.gmail.com 587
> Trying 142.251.116.108...
> Trying 2607:f8b0:4023:1000::6c...
> telnet: Unable to connect to remote host: Network is unreachable
> root@Gentoo-1 / #
>
> Can't connect. Well, that explains a lot. It can't reach anything to
> log into. It looks like it is trying both IPv4 and v6. So, I used
> ping. It works there.
>
> root@Gentoo-1 / # ping smtp.gmail.com
> PING smtp.gmail.com (142.250.115.108) 56(84) bytes of data.
> 64 bytes from rq-in-f108.1e100.net (142.250.115.108): icmp_seq=1 ttl=53

Those commands are using two different IP addresses.

It's not uncommon that DNS resolvers for heavily used services rotate
through a pool of addresses, but for testing purposes you should pick
a single IP address.

>>> I am connected through a VPN but Seamonkey works fine. I can check and
>>> send email there,
>> Do you mean can send email via Gmail's SMTP server using Seamonkey?
>>
>> How are the SMTP server settings configured in Seamonkey?
>>
>> Is it using Oauth2 or an app password?
>
> I checked, It is using Oauth2. I had to change it a good while back
> but I think SMART could still send emails for a while after that.

Is it using the same port number as msmtp?

>> I just did a quick test, and sending via smtp.gmail.com using an app
>> password worked fine from mutt.  I don't have msmtp set up at the
>> moment.
>
> That is true but why buy one if you can't run it? LOL This is yet
> another reason I want to switch from Gmail. They nothing but nosy
> anyway. I think it is common knowledge that they scan all emails and
> use the info for various things, including ads, which I block by the
> way.

There's nothing wrong with Gmail. The app password feature works
exactly as documented, and is definitely the right way to provide
authentication for "dumb" programs that don't know how to do OAUTH2.




Re: [gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Dale
Grant Edwards wrote:
> On 2024-09-26, Dale  wrote:
>
>> root@Gentoo-1 / # telnet smtp.gmail.com 587
>> Trying 142.251.116.108...
>> Trying 2607:f8b0:4023:1000::6c...
>> telnet: Unable to connect to remote host: Network is unreachable
>> root@Gentoo-1 / #
>>
>> Can't connect. Well, that explains a lot. It can't reach anything to
>> log into. It looks like it is trying both IPv4 and v6. So, I used
>> ping. It works there.
>>
>> root@Gentoo-1 / # ping smtp.gmail.com
>> PING smtp.gmail.com (142.250.115.108) 56(84) bytes of data.
>> 64 bytes from rq-in-f108.1e100.net (142.250.115.108): icmp_seq=1 ttl=53
> Those commands are using two different IP addresses.
>
> It's not uncommon that DNS resolvers for heavily used services rotate
> through a pool of addresses, but for testing purposes you should pick
> a single IP address.
>
 I am connected through a VPN but Seamonkey works fine. I can check and
 send email there,
>>> Do you mean can send email via Gmail's SMTP server using Seamonkey?
>>>
>>> How are the SMTP server settings configured in Seamonkey?
>>>
>>> Is it using Oauth2 or an app password?
>> I checked, It is using Oauth2. I had to change it a good while back
>> but I think SMART could still send emails for a while after that.
> Is it using the same port number as msmtp?
>

It says port 465 but it is using Oauth2 if that matters.  I'll admit,
the last time I got this working, I followed a guide and it just
worked.  Once it worked, I left it alone.  I was scared that if I
touched it, it would stop working.  LOL 

I changed the config to port 465 and it still failed with this. 


Sep 26 19:04:26 Gentoo-1 smartd[18737]: Executing test of  to root ...
Sep 26 19:04:36 Gentoo-1 msmtp[18815]: host=smtp.gmail.com tls=on
auth=off from=rdalek1967gmail.com recipients=root errormsg='the
server sent an empty reply' exitcode=EX_PROTOCOL
Sep 26 19:04:36 Gentoo-1 smartd[18737]: Test of  to root produced
unexpected output (65 bytes) to STDOUT/STDERR:
Sep 26 19:04:36 Gentoo-1 smartd[18737]: mail: cannot send message:
Process exited with a non-zero status
Sep 26 19:04:36 Gentoo-1 smartd[18737]: Test of  to root: failed
(32-bit/8-bit exit status: 256/1)


It repeated that several times before stopping. 


>>> I just did a quick test, and sending via smtp.gmail.com using an app
>>> password worked fine from mutt.  I don't have msmtp set up at the
>>> moment.
>> That is true but why buy one if you can't run it? LOL This is yet
>> another reason I want to switch from Gmail. They nothing but nosy
>> anyway. I think it is common knowledge that they scan all emails and
>> use the info for various things, including ads, which I block by the
>> way.
> There's nothing wrong with Gmail. The app password feature works
> exactly as documented, and is definitely the right way to provide
> authentication for "dumb" programs that don't know how to do OAUTH2.
>
>
>

I still don't like all the snooping they do.  Basically, I just don't
trust Google, with a lot of things. 

Dale

:-)  :-) 



[gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Grant Edwards
On 2024-09-26, Grant Edwards  wrote:

> I just did a quick test, and sending via smtp.gmail.com using an app
> password worked fine from mutt.  I don't have msmtp set up at the
> moment.

Ijust set up msmtp and it works too. Below is the msmtp config,

 * If you want, replace "account gmail" with "account default", then
   you don't have to supply the "-a gmail" option to msmtp.

 * replace (in two places) usern...@gmail.com with your email address.

 * replace     with your app password.

---8<-
syslog LOG_MAIL

account gmail
maildomain gmail.org
syslog on
from gmailusern...@gmail.com
host smtp.gmail.com
port 465
tls on
tls_certcheck off
tls_starttls off
auth on
user gmailusern...@gmail.com
password "   "
---8<-





Re: [gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Dale
Grant Edwards wrote:
> On 2024-09-26, Dale  wrote:
>> Grant Edwards wrote:
>>
>>> It looks like your network is broken. Try this:
>>>
>>> $ telnet smtp.gmail.com 587
>>> Trying 209.85.145.109...
>>> Connected to smtp.gmail.com.
>>> Escape character is '^]'.
>>> 220 smtp.gmail.com ESMTP 8926c6da1cb9f-4d60978sm58959173.69 - gsmtp
>>>
>>> Note: Port 587 is for plaintext connection and then shifting into TLS
>>> mode with the starttls command.  When configuring msmtp:
>>>
>>> port 587
>>> tls on
>>> tls-starttls on
>>> or
>>> port 465
>>> tls on
>>> tls-starttls off
>>>
>>> Port 465 starts using TLS immediately
>>>
>>> [...]
>> Which package do I need for that telnet?  I see a few packages with that
>> name. 
> Any of them should work.  I use net-misc/netkit-telnetd.  It will also
> install a telnet daemon, but it won't enbale it

I have -1 in make.conf so whatever I install will be depcleaned later. 
Anyway, I installed the one you mentioned and got this. 


root@Gentoo-1 / # telnet smtp.gmail.com 587
Trying 142.251.116.108...
Trying 2607:f8b0:4023:1000::6c...
telnet: Unable to connect to remote host: Network is unreachable
root@Gentoo-1 / #


Can't connect.  Well, that explains a lot.  It can't reach anything to
log into.  It looks like it is trying both IPv4 and v6.  So, I used
ping.  It works there. 


root@Gentoo-1 / # ping smtp.gmail.com
PING smtp.gmail.com (142.250.115.108) 56(84) bytes of data.
64 bytes from rq-in-f108.1e100.net (142.250.115.108): icmp_seq=1 ttl=53
time=32.1 ms
64 bytes from rq-in-f108.1e100.net (142.250.115.108): icmp_seq=2 ttl=53
time=45.0 ms
64 bytes from rq-in-f108.1e100.net (142.250.115.108): icmp_seq=3 ttl=53
time=39.3 ms
^C
--- smtp.gmail.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 32.062/38.776/45.017/5.299 ms
root@Gentoo-1 / # ping 142.251.116.108
PING 142.251.116.108 (142.251.116.108) 56(84) bytes of data.
64 bytes from 142.251.116.108: icmp_seq=1 ttl=53 time=30.4 ms
64 bytes from 142.251.116.108: icmp_seq=2 ttl=53 time=56.0 ms
64 bytes from 142.251.116.108: icmp_seq=3 ttl=53 time=30.6 ms
^C
--- 142.251.116.108 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 30.351/38.988/56.049/12.063 ms
root@Gentoo-1 / #


What silly boo boo did I make this time 


>> I am connected through a VPN but Seamonkey works fine.  I can check and
>> send email there,
> Do you mean can send email via Gmail's SMTP server using Seamonkey?
>
> How are the SMTP server settings configured in Seamonkey?
>
> Is it using Oauth2 or an app password?

I checked,  It is using Oauth2.  I had to change it a good while back
but I think SMART could still send emails for a while after that. 
Seamonkey wouldn't fetch or send emails tho until I changed to the Oauth
thing.  Also, it stopped autofetching emails with that too.  I used to
have it set to check for new messages like every 20 minutes.  I have to
manually check since the change.  Annoying as heck. 

The first time I used the app password was when I was following guides
on how to set up email for SMART when I realized it wasn't working on my
new rig.  I don't use it on anything else.  I didn't realize it wasn't
working on the old rig either. 


>> hence this thread.  I figure I got something set up wrong after a
>> Gmail change.  Sort of stupid to make something so secure you can't
>> use it.  It's like buying a computer and saying the only way to
>> secure it is to keep it turned off.  :/ 
> Well, that last part is true, as long as you keep it in a locked room.
>
> I just did a quick test, and sending via smtp.gmail.com using an app
> password worked fine from mutt.  I don't have msmtp set up at the
> moment.
>

That is true but why buy one if you can't run it?  LOL  This is yet
another reason I want to switch from Gmail.  They nothing but nosy
anyway.  I think it is common knowledge that they scan all emails and
use the info for various things, including ads, which I block by the way. 

Dale

:-)  :-) 


Re: [gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Dale
Grant Edwards wrote:
> On 2024-09-26, Grant Edwards  wrote:
>
>> I just did a quick test, and sending via smtp.gmail.com using an app
>> password worked fine from mutt.  I don't have msmtp set up at the
>> moment.
> Ijust set up msmtp and it works too. Below is the msmtp config,
>
>  * If you want, replace "account gmail" with "account default", then
>you don't have to supply the "-a gmail" option to msmtp.
>
>  * replace (in two places) usern...@gmail.com with your email address.
>
>  * replace     with your app password.
>
> ---8<-
> syslog LOG_MAIL
>
> account   gmail
> maildomain gmail.org
> syslog on
> from gmailusern...@gmail.com
> host smtp.gmail.com
> port 465
> tls on
> tls_certcheck off
> tls_starttls off
> auth on
> user gmailusern...@gmail.com
> password "   "
> ---8<-
>
>
>


Sorry.  Somehow I missed this reply.  I copy and pasted yours and
changed the needed bits.  I put spaces in the password like you showed. 
I assume it needs those.  I also changed gmail to default for account. 
When I start smartd, it adds this to messages. 


Sep 26 19:13:47 Gentoo-1 smartd[21480]: Executing test of  to root ...
Sep 26 19:13:47 Gentoo-1 smartd[21480]: Test of  to root produced
unexpected output (65 bytes) to STDOUT/STDERR:
Sep 26 19:13:47 Gentoo-1 smartd[21480]: mail: cannot send message:
Process exited with a non-zero status
Sep 26 19:13:47 Gentoo-1 smartd[21480]: Test of  to root: failed
(32-bit/8-bit exit status: 256/1)


Based on what you posted that works for you, I think there may be a
problem elsewhere.  Maybe I have something somewhere else set wrong and
don't know it, maybe even a silly typo.  If that config you posted works
for you, I see no reason it shouldn't work here unless you pay for
something extra.  Other than that, I suspect smtp is set up right but
something else isn't.  Should we look elsewhere?  Any idea where?  Could
it be smart itself that is set up wrong?  Sending wrong thing to smtp? 

Thanks for the help. 

Dale

:-)  :-) 


Re: [gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Dale
Grant Edwards wrote:
> On 2024-09-26, Dale  wrote:
>
>> I removed ssmtp and installed msmtp. I think I got the config set up
>> but it is different so I may not have it right. It doesn't work tho.
>> From messages.
>>
>>
>> Sep 26 10:03:33 Gentoo-1 smartd[27728]: Executing test of  to root ...
>> Sep 26 10:05:40 Gentoo-1 msmtp[30861]: host=smtp.gmail.com tls=on
>> auth=off from=rdalek1967gmail.com recipients=root errormsg='cannot
>> connect to smtp.gmail.com, port 587: Connection timed out'
>> exitcode=EX_TEMPFAIL
> It looks like your network is broken. Try this:
>
> $ telnet smtp.gmail.com 587
> Trying 209.85.145.109...
> Connected to smtp.gmail.com.
> Escape character is '^]'.
> 220 smtp.gmail.com ESMTP 8926c6da1cb9f-4d60978sm58959173.69 - gsmtp
>
> Note: Port 587 is for plaintext connection and then shifting into TLS
> mode with the starttls command.  When configuring msmtp:
>
> port 587
> tls on
> tls-starttls on
> or
> port 465
> tls on
> tls-starttls off
>
> Port 465 starts using TLS immediately
>
> $ openssl s_client -connect smtp.gmail.com:465
> CONNECTED(0003)
> depth=2 C = US, O = Google Trust Services LLC, CN = GTS Root R1
> verify return:1
> depth=1 C = US, O = Google Trust Services, CN = WR2
> verify return:1
> depth=0 CN = smtp.gmail.com
> verify return:1
> ---
> Certificate chain
>  0 s:CN = smtp.gmail.com
>i:C = US, O = Google Trust Services, CN = WR2
>a:PKEY: id-ecPublicKey, 256 (bit); sigalg: RSA-SHA256
>v:NotBefore: Aug 26 07:12:09 2024 GMT; NotAfter: Nov 18 07:12:08 2024 
> GMT
> [...]   
> ---
> read R BLOCK
> 220 smtp.gmail.com ESMTP e9e14a558f8ab-3a344d9250esm496675ab.41 - gsmtp
> 
> 
>
>
>


Which package do I need for that telnet?  I see a few packages with that
name. 

I am connected through a VPN but Seamonkey works fine.  I can check and
send email there, hence this thread.  I figure I got something set up
wrong after a Gmail change.  Sort of stupid to make something so secure
you can't use it.  It's like buying a computer and saying the only way
to secure it is to keep it turned off.  :/ 

Dale

:-)  :-) 



Re: [gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Dale
Grant Edwards wrote:
> On 2024-09-27, Dale  wrote:
>
>> It says port 465 but it is using Oauth2 if that matters.
> It doesn't.
>
>> I'll admit, the last time I got this working, I followed a guide and
>> it just worked.  Once it worked, I left it alone.  I was scared that
>> if I touched it, it would stop working.  LOL 
>>
>> I changed the config to port 465 and it still failed with this. 
>>
>>
>> Sep 26 19:04:26 Gentoo-1 smartd[18737]: Executing test of  to root ...
>> Sep 26 19:04:36 Gentoo-1 msmtp[18815]: host=smtp.gmail.com tls=on
>> auth=off from=rdalek1967gmail.com recipients=root errormsg='the
>> server sent an empty reply' exitcode=EX_PROTOCOL
> According to that message, the msmtp auth option is off.  It needs to
> be on.
>
> Look at the working configuraiton I posted.
>
> Use that configuration with your email address and app password.
>
> It also looks like smartd is trying to send mail to the recipient
> "root". That's not a valid destination when sending via most smtp
> servers.  You need to be sending to a recipient that looks like
> "user@domain".
>
> What port number are you trying to use?
>
> Please re-read what I wrote about port numbers and starttls.  If
> you're using port 465, you need to turn tls_starttls OFF.  If you're
> using port 587, tls_starttls needs to be ON. That's the default, but I
> recommend turning it on explicitly.
>
> My advice: don't use smartd to try to get msmtp working.  Use
> something easier to work with. The usual way to do it is using
> something like mailx.  The Arch wiki page is an excellent resource:
>
> https://wiki.archlinux.org/title/Msmtp
>
> It shows how to test msmtp using mailx.
>
> It also addresses the error you're seeing explicitly:
>
>8.2 Server sent empty reply
>
>If you get a "server sent empty reply" error, this probably means
>the mail server does not support STARTTLS over port 587, but
>requires TLS over port 465.
>
> Note that some systems will ignore a message without a Message-Id:
> header, so the example from the Arch page that cats a message from a
> file to msmtp might not work reliably.
>
>
>
>


This is what I copied from yours, with obvious bits changed.  I'll put
"noneya" in those, so you know that isn't the real info. 


syslog LOG_MAIL

account    default
maildomain gmail.org
syslog on
from rdalek1967gmail.com
host smtp.gmail.com
port 465
tls on
tls_certcheck off
tls_starttls off
auth on
user rdalek1...@gmail.com
password "noneya"  # That is the 16 character thing with spaces in it. 
I included quotes but I think you had them there too. 


I'm by no means a expert on this but I see 'auth on' in there.  I see
what you talking about in the error to tho.  As I mentioned in other
reply, I think something else is amiss somewhere.  If that config works
with gmail for you, it should work here. 

On the root thing, I have a alias set up in some file that tells it that
root is my gmail address.  It worked before but maybe not now.  File is
here:  /etc/mail/aliases  It has this info about root being my gmail
address. 


# Well-known aliases -- these should be filled in!
root: rdalek1...@gmail.com


My understanding, anything sent to root instead goes to my gmail
account.  I could be wrong on that.  o_O 

Is that what you have in yours?  If it is, it should work here.  If not,
my copy and paste is broken.  LOL  That aliases file make sense? 

Dale

:-)  :-) 



Re: [gentoo-user] --depclean and openrc [Was: Wayland! Beware of!]

2024-09-26 Thread Mitchell Dorrell
On Tue, Sep 24, 2024, 07:41 Arsen Arsenović  wrote:

> I do wonder if we should keep s6, runit and daemontools in that virutal
> though, given that we can't boot them.  Perhaps they'd be fine behind a
> USE flag.  I'll propose that.
>

So, this is a case where you definitely always need one of the
dependencies, and sometimes you might want two, but the reason you might
want the second one would not be to fulfill the purpose represented by the
virtual.

It sounds to me like a set of local USE flags would be perfect, with a
REQUIRED_USE enforcing exactly-one-of to choose the dependency. The USE
flag controls the choice, and if you pull in an alternative service manager
for an unrelated reason, it doesn't change the USE flag, so it doesn't
change the dependency which satisfies the virtual. The USE-disabled service
managers are simply ignored.

Would that work? Or is that exactly what you're planning to propose?

I don't think using just one USE flag would be as safe, unless this is only
an issue for daemontools. Tons of stuff tries to pull in systemd, but
blockers generally prevent you from making a mess that way.

-MD

>


[gentoo-user] Re: Computer system email no not working since gmail change.

2024-09-26 Thread Grant Edwards
On 2024-09-27, Dale  wrote:

> It says port 465 but it is using Oauth2 if that matters.

It doesn't.

> I'll admit, the last time I got this working, I followed a guide and
> it just worked.  Once it worked, I left it alone.  I was scared that
> if I touched it, it would stop working.  LOL 
>
> I changed the config to port 465 and it still failed with this. 
>
>
> Sep 26 19:04:26 Gentoo-1 smartd[18737]: Executing test of  to root ...
> Sep 26 19:04:36 Gentoo-1 msmtp[18815]: host=smtp.gmail.com tls=on
> auth=off from=rdalek1967gmail.com recipients=root errormsg='the
> server sent an empty reply' exitcode=EX_PROTOCOL

According to that message, the msmtp auth option is off.  It needs to
be on.

Look at the working configuraiton I posted.

Use that configuration with your email address and app password.

It also looks like smartd is trying to send mail to the recipient
"root". That's not a valid destination when sending via most smtp
servers.  You need to be sending to a recipient that looks like
"user@domain".

What port number are you trying to use?

Please re-read what I wrote about port numbers and starttls.  If
you're using port 465, you need to turn tls_starttls OFF.  If you're
using port 587, tls_starttls needs to be ON. That's the default, but I
recommend turning it on explicitly.

My advice: don't use smartd to try to get msmtp working.  Use
something easier to work with. The usual way to do it is using
something like mailx.  The Arch wiki page is an excellent resource:

https://wiki.archlinux.org/title/Msmtp

It shows how to test msmtp using mailx.

It also addresses the error you're seeing explicitly:

   8.2 Server sent empty reply

   If you get a "server sent empty reply" error, this probably means
   the mail server does not support STARTTLS over port 587, but
   requires TLS over port 465.

Note that some systems will ignore a message without a Message-Id:
header, so the example from the Arch page that cats a message from a
file to msmtp might not work reliably.