New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
CRON email Management help, please
We have a couple of crons which run every hour on my centos server. Currently, all emails are going to the default use mailbox. I usually read the contents of the file by vi /var/spool/mail/myaccount and read it.
I installed mail/ mailx. However, there are close to 20k emails already in the inbox. Is there any email client I can use to sort through the messages?
What are some quick commands which can help me sort emails by date/ subject? Any help is appreciated
Thanks.
Comments
Silence your cron output. But if you want to view the emails try mutt.
I need the cron outputs. Mutt, Ill try.
I don't see how any of that is specific to cron output. The easiest way to get things in order is to probably install an IMAP server like dovecot and sort through it all with a GUI mail client.
Do you need all the cron outputs, or can you silence some of them? There are generally ways to send outputs only under certain conditions to avoid alert fatigue.
Can you share some pointers?
can any normal GUI read system user email boxes? any suggestions? I installed MUTT, and it looks Ok for now.
e.g.:
MAILTO means all output will be mailed to that email.
First job will send all its output to that log plus any error output. Complete silence.
Second job will send only normal (stdout) output to that log. Any errors (stderr) output will go to email.
I don't understand the question. Set IMAP up to authenticate as the user's account (SSL connection highly suggested) and you're done. I don't even remember doing it, so that's probably the default configuration out of the box for dovecot. If you want to further manage accounts (e.g., so that different cron jobs mail different user accounts) that's totally up to you.