Re: user crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In general if you set up the cronjobs to redirect stdout and stderr to
a file then typically there is nothing to email.

Often if you have only a few systems this is easier to use.

On Thu, May 7, 2020 at 8:29 AM Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote:
>
>
>
> On 5/7/20 7:48 AM, Robert Moskowitz wrote:
> >
> >
> > On 5/6/20 11:34 PM, Cameron Simpson wrote:
> >> On 07May2020 13:19, Cameron Simpson <cs@xxxxxxxxxx> wrote:
> >>> On 06May2020 20:20, Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote:
> >>>> I am reading up on esmtp which comes with the base install and
> >>>> seemingly no mta needed?
> >>>>
> >>>> Anyway
> >>>> https://linux.die.net/man/5/esmtprc
> >>>>
> >>>> shows how to config for sending an email via esmtp to an mta, but
> >>>> not just local delivery...
> >>>
> >>> The bottom of that manual entry describes the "mta" setting, and
> >>> says that esmtp relies on a local MTA for local delivery (addresses
> >>> without an "@"). So you'll need something additional anyway. May as
> >>> well go straight to a proper MTA.
> >>
> >> And then, to my chagrin, I reread and see it provides example "mta"
> >> values like:
> >>
> >>    /usr/bin/procmail -d %T
> >>
> >> So you may be good there.
> >
> > Would first have to install procmail for this.
> >
> > It would be interesting to find a 'simple' python script to grab the
> > cron output and 'make' an email and appended to the spool/mail
>
> I am finding things about python and email that is leading me down many
> roads.
>
> First is how does CRON even send emails?  The MAILTO option triggers
> where to send email, but what is the how?  What is CRON using to grab
> its output and stuff that into what emailer program?
>
> My digging is that CRON needs some email server installed, like postfix,
> before it will send emails of its stdout.  But where is this controlled
> so I can change it?
>
> thanks
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux