How about I set up a new gmail account.
Will that work?
Yes, any gmail account should work.
But the instructions I gave you before were to test if yahoo works…
You need new instructions. So let me know when you have that gmail account created.
The new gmail account is created.
Ok, go to this web page:
https://myaccount.google.com/apppasswords
Create an application password for nullmailer and take note of the password generated.
Then install nullmailer:
sudo apt install nullmailer
Edit with a text editor these nullmailer configuration files (create them if don’t exist):
/etc/nullmailer/adminaddr
will contain your yahoo mail (substitute the xxxxxxx with your yahoo mail name, the yahoo one not the gmail):
xxxxxxx@yahoo.com
/etc/nullmailer/defaultdomain
will contain the hostname of your machine (you can use the command hostname if you don’t know it):
the_name_that_appears_when_using_hostname_command
/etc/nullmailer/remotes
will contain the command to sent the emails using gmail. The user is your gmail account name and the pass is the one you created for the application:
smtp.gmail.com smtp --auth-login --port=587 --starttls --user=xxxxxxx@gmail.com --pass=xxxxxxxxxxxxxxxx
And finally sent yourself a test mail to your yahoo account using this command (substitute both xxxxxxx with your yahoo mail name):
printf "Subject: TEST EMAIL\n\nThis is a test email" | sendmail -F xxxxxxx@yahoo.com -v xxxxxxx@yahoo.com
Wait a little time… Do you receive the email in your yahoo mail account?
Are there instructions for a laptop or desktop?
Or maybe install nullmailer BEFORE visiting that link?
https://myaccount.google.com/apppasswords
I see the below when I go to that link…
The setting you are looking for is not available for your account.
Just letting you know, I’m doing all this on my laptop.
In case these instructions are for a smart phone app…
I don’t have a smart phone.
I don’t want a smart phone.
I’m good with a simple phone for just talk and sms text only.
(Some people refer to me as “old-fashioned” or “livin’ in the past”…lol)
I found gnome-gmail.
It’s a transitional package for viagee for the linux desktop.
I usually try to go “lightweight alternatives”, however I’m uncertain if there’s any “lightweight alternative” for this.
I wonder if it’s equivalent to the gmail app you’re using.
Info below…
https://davesteele.github.io/viagee/
Gmail on the Linux Desktop
This is the development home for the Linux viagee package. It allows desktop mail actions, such as “Send File as Email” or web ‘mailto’ links, to be handled by the Gmail web client.
After doing a backup, I’m gonna try gnome-gmail and see if it will work with that most recent link you gave me.
I’ll report here after testing.
Well, so much for that.
Good thing I did a backup
I found this at the link below…
Notice - 2024-10-01: Viagee is DISABLED. Google has revoked the app’s Verified status, rendering it unusable.
For any of them.
I’ve just created a google account to test. It works but you need to set a 2nd verification step before here:
https://myaccount.google.com/signinoptions/twosv
There you have several options available.
Once done you will have this option available:
https://myaccount.google.com/apppasswords
No, the test email never came through to my yahoo mail neither to my gmail.
In /etc/nullmailer/remotes it already had…
mail
I edited to this…
/#/ mail (it wouldnt show the hashtag in the submitted post)
smtp.gmail.com smtp --auth-login --port=587 --starttls --user=xxxxxxx@gmail.com --pass=xxxxxxxxxxxxxxxx
Should I have this instead?
mail
smtp.gmail.com smtp --auth-login --port=587 --starttls --user=xxxxxxx@gmail.com --pass=xxxxxxxxxxxxxxxx
Create a new gmail account or use your current gmail if you have one.
set a 2nd verification step before here:
https://myaccount.google.com/signinoptions/twosv
Once done you will have this option available:
https://myaccount.google.com/apppasswords
Create an application password for nullmailer and take note of the password generated.
Your app password for your device
xxxxxxxxxxxxxxxx
How to use it
Go to the settings for your Google Account in the application or device you are trying to set up.
Replace your password with the 16-character password shown above.
Just like your normal password, this app password grants complete access to your Google Account.
You won’t need to remember it, so don’t write it down or share it with anyone.
Then install nullmailer:
sudo apt install nullmailer
Edit with a text editor these nullmailer configuration files (create them if don’t exist):
/etc/nullmailer/adminaddr
will contain your yahoo mail (substitute the xxxxxxx with your yahoo mail name, the yahoo one not the gmail):
xxxxxxx@yahoo.com
/etc/nullmailer/defaultdomain
will contain the hostname of your machine (you can use the command hostname if you don’t know it):
the_name_that_appears_when_using_hostname_command
/etc/nullmailer/remotes
will contain the command to sent the emails using gmail.
The user is your gmail account name and the pass is the one you created for the application:
smtp.gmail.com smtp --auth-login --port=587 --starttls --user=xxxxxxx@gmail.com --pass=xxxxxxxxxxxxxxxx
And finally sent yourself a test mail to your yahoo account using this command (substitute both xxxxxxx with your yahoo mail name):
printf “Subject: TEST EMAIL\n\nThis is a test email” | sendmail -F xxxxxxx@yahoo.com -v xxxxxxx@yahoo.com
Wait a little time… Do you receive the email in your yahoo mail account?
I thought that I might chip in and suggest registering free account with Proton Mail. Apart from it range of features, mainly security, you can defer sending a message until a specified schedule. Thus you might have a script to gather log files then initiate a deferred Proton Mail send, with log files as attachments. I use Proton Mail for multiple reasons but not (yet) this one. Another feature to look at is SMTP/IMAP server and bridge to link to existing clients such as Thunderbird. So you might use Proton Mail in parallel with other accounts through thunderbird … or other.
These reports doesn’t have to go to my yahoo.
I just want them going to somewhere.
I lost everything due to a system crash and not booting up properly thus having to reinstall Lubuntu.
Though this is the first I’ve heard of Proton Mail, I did a little basic research of it. (haven’t created an account there (yet).
With how you describe it and what I seen, it sounds like it can be used as a replacement of gmail or to use in conjuction or along-side of gmail.
The SMTP/IMAP feature in Proton Mail, is that a paid feature?
You mention “Thunderbird (now a snap; I don’t allow snap’s on my machine) … or other”.
Are one or more of these…some of those “others” you refer to.
A few other’s have been suggested to me before such as…
Evolution (a bit resource heavy but still considering)
claws-mail (doesn’t work for what I want)
gnome-gmail aka viagee (been disable via google)
Trojita (never used it but Lubuntu removed it in 22.04)
qmail (never tried it)
I’ve think about why the sending of the email is not working and have a theory:
Google gives passwords in this format: wwww xxxx yyyy zzzz
But you need to use the password all together without spaces. So the command that you will have in the file /etc/nullmailer/remotes will have the password like this:
smtp.gmail.com smtp --auth-login --port=587 --starttls --user=xxxxxxx@gmail.com --pass=wwwwxxxxyyyyzzzz
Please, change it and try to send the email again using:
printf "Subject: TEST EMAIL\n\nThis is a test email" | sendmail -F xxxxxxx@yahoo.com -v xxxxxxx@yahoo.com
Cross your fingers
Also the word mail can be deleted from /etc/nullmailer/remotes file.
Seems to be a nice option. In fact with nullmailer is very, very difficult to send attachments (needs to be preformatted using base64)… is more adequate to send text.
Your theory is confirmed.
The test email showed up.
It works.
Now for the next steps please.
Probably modifying the script, then modifying the crontab entry.
Great!
Ok, what do you want to do?
I see that your script is creating 12 files in the folder /home/wyatt/Desktop/System-Reports/
Do you want to sent all these files to your yahoo email?
Replying to parallel rabbithole Proton Mail.
SMTP/IMAP requires business account therefore it will cost you.
However with free Proton Mail account … and Gmail account in parallel … you can send attachments via Gmail … at Proton scheduled times … which as I understand from this discussion you want. Just another approach.
And the opposite flow …
To send emails via Gmail using Proton Mail, you can set up automatic forwarding from Gmail to Proton Mail. You can also use a reverse alias to send an email from your Proton Mail alias through Gmail.
I’ll continue with what I got goin on for now.
but I’ll keep Proton Mail in mind.
Thank you for your suggestions.
I think you missed my previous question…