Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an email #299

Open
siddrajput opened this issue Apr 12, 2022 · 4 comments
Open

Getting an email #299

siddrajput opened this issue Apr 12, 2022 · 4 comments

Comments

@siddrajput
Copy link

Hi,

During installation, the following question was asked:

Should cron send you an email if an update is available/installed? [Y/n] y

Where do I enter my email address? It didn't ask me for my email address.

Sidd

@christian-0s
Copy link

I did not try this specifically on plexupdate, but I think you should configure the mail address in cron (which by default sends via mail the command output, if there is any, to the owner of crontab, root in this case). Probably you'll need msmtp, in arch wiki there's a good tutorial on how to configure it.

@ljunglex
Copy link

ljunglex commented Nov 9, 2022

Hi,

I can confirm that it works, I used msmtp / msmtp-hta for this. Currently getting output mailed to myself from /etc/cron.daily/plexupdate.

Wasn't easy figuring out all the correct configuration, but that's more a crontab issue.

A tip is to manually force (echo) some output when troubleshooting in the "plexupdate.sh" and then run the daily crontab manually: /etc/cron.daily/

@crakerjac
Copy link

I created my own branch to send me an email via 'mail' command. I don't know if it's something they want in master, so I'm maintaining it on my own branch.
master...crakerjac:plexupdate:master

@demonbane
Copy link
Collaborator

@crakerjac If you already have mailutils installed and working, this shouldn't be necessary. You may want to double-check /etc/aliases and make sure that the user that the cronjob is running as (presumably root), has an email address associated with it. Cron should then automatically send the log in case of any errors without you having to manually call mail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants