Re: user crontab

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

 



On 07May2020 09:25, Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote:
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.

Yes, or one of the other suggestions. You need a delivery agent of some kind.

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

Someone has already posts a simple shell script for that purpose to this discussion.

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?

Cron collects the command output and if not empty feeds it to "/usr/sbin/sendmail -oi "$MAILTO"". So your need to intercept that. installing an MTA installs a sendmail executable.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
_______________________________________________
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