So in keeping with MTA is dead for non-server platforms, I propose the
following to allow for local cron output delivery. Note if the user
wants remote delivery, an MTA MUST be installed.
So basically this script needs to take the output of the cron job and
prepend it to the /var/spool/mail/user where user is from
MAILTO=
I suspect there is a variable with this value to feed into the script.
Since the default mode for cron is '/usr/bin/sendmail -t' we know that
this value is already in the cron output as 'To: MAILTO', so it could be
found there as well. Some mail headers will have to be added to this
cron output, like 'Date: ', 'User-Agent: ', and:
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
the script would first check to see if the mail file is there, and if
not try and create it. Terminate on failure with message.
prepend cron output plus other mail headers to mail file. Terminate on
no permissions to write to mail file.
And thus we would have a 'simple' alternative to the one biggie standard
service on a client that wants to send mail.
Anyone interested? Up to the task? I sure am not. I have not written
scripts since it was part of my job description in the mid-90s, and I
forgot all my colleague taught me. :(
Meanwhile I will install only procmail and try that out. Unless Frank
remembers what other magic he used.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org