Simple substitute for sendmail for cron to use

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

 



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




[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