On 5/10/20 11:51 PM, Ed Greshko wrote:
On 2020-05-11 11:33, Robert Moskowitz wrote:
I almost have it...
On 5/10/20 7:03 PM, Robert Moskowitz wrote:
I have been digging for how to do today and found something
interesting:
Back in Fedora 20, there was no MTA!
https://www.mhonarc.org/archive/html/procmail/2014-01/msg00000.html
I worked on cron outbut via procmail way back then and used:
CRONDARGS=-m "/usr/bin/procmail -f cron"
So I just tried this and I have one problem with it. No DATE header.
formail -i "Date: $(date +'%a, %e %b %Y %T %z (%Z)')" -s procmail
where stdin is the output from cron puts the "proper" email into
/var/spool/mail/user
but how to get this into the crondargs line and get the quotes right?
Just want to make sure you saw my response to your original post
Subject: user crontab?
The MTA has to be running in order for mail from cron to be processed.
No it does not. This is what the CRONARGS -m option in
/etc/sysconfig/cron is for. It replaces the default:
mailer="sendmail -t"
option with your own shell script.
What I did in my rather late response was to just install and start
postfix. I made no
configuration. And I think that is what you were looking to do. Just
get mail in the local
inbox for cron jobs.
Am I missing something?
Yes. You are saying that it is ok for cron to be depended on an MTA.
that no MDA is available that does this correctly. That "out of the
box" cron is lessed on a workstation that really should not need an MTA.
Of course this is all a matter of opinion. :)
_______________________________________________
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