Features/NoMTA

From FedoraProject

< Features(Difference between revisions)
Jump to: navigation, search
(Scope: add run-parts modification plan, reduce package list to things that don't get run through run-parts)
m (add References section)
Line 102: Line 102:
 
<!-- The release notes also help users know how to deal with platform changes such as ABIs/APIs, configuration or data file formats, or upgrade concerns.  If there are any such changes involved in this feature, indicate them here.  You can also link to upstream documentation if it satisfies this need.  This information forms the basis of the release notes edited by the documentation team and shipped with the release. -->
 
<!-- The release notes also help users know how to deal with platform changes such as ABIs/APIs, configuration or data file formats, or upgrade concerns.  If there are any such changes involved in this feature, indicate them here.  You can also link to upstream documentation if it satisfies this need.  This information forms the basis of the release notes edited by the documentation team and shipped with the release. -->
 
* None
 
* None
 +
 +
== References ==
 +
<references/>
  
 
== Comments and Discussion ==
 
== Comments and Discussion ==
 
* See [[Talk:Features/NoMTA]]  <!-- This adds a link to the "discussion" tab associated with your page.  This provides the ability to have ongoing comments or conversation without bogging down the main feature page -->
 
* See [[Talk:Features/NoMTA]]  <!-- This adds a link to the "discussion" tab associated with your page.  This provides the ability to have ongoing comments or conversation without bogging down the main feature page -->
 
  
 
[[Category:FeaturePageIncomplete]]
 
[[Category:FeaturePageIncomplete]]

Revision as of 19:25, 21 September 2009

Contents

No MTA

Summary

Don't ship a MTA by default for the desktop.

Owner

  • email: maxamillion [AT] gmail.com

Current status

  • Targeted release: Fedora 13
  • Last updated: 2009-08-27
  • Percentage of completion: 0%

Working:

  • Everything as designed

TODO:

  • Verify there are no packages that will require a patch to function without a MTA

Detailed Description

The shipping of a default MTA has long been the de facto standard, but for the vast majority of users this is simply wasted resources and wasted disk space for the packages installed. Without an MTA the utilities that would have previously delivered local mail will just simply silently not deliver mail. Instead we can redirect the output to a log and those users who need a MTA are free to install any one they so choose.

Benefit to Fedora

Less used disk space for default install, less used resources, stopping of the MTA madness.

Scope

MTAs are not a necessary daemon on a desktop system, so we need not include one by default.

Package-x-generic-16.pngcronie is the only package in a default Fedora install that requests the use of an MTA. If /usr/sbin/sendmail is not present, it will simply stop sending mail. Therefore, if the existing cron jobs are modified so they don't need to send mail, we can remove the requirement for an MTA with no loss of functionality.

All cron jobs launched by files in /etc/cron.{hourly,daily,weekly,monthly} are run through the /usr/bin/run-parts script[1]. Therefore we can fix all these cron jobs by modifying run-parts to send stdout to syslog.

The remaining cron jobs are launched by placing a file in /etc/cron.d/. These cron jobs will have to be examined and modified individually.

Required changes:

  1. Modify run-parts to send stdout to syslog (/var/log/cron)
    • Add something like: | logger -p cron.notice -t "$(basename $i)"
  2. Change any /etc/cron.d/ cron job that emits output to send its output to syslog or a log file
  3. Remove Requires: /usr/sbin/sendmail from Package-x-generic-16.pngcronie's spec file

Packages that may require changes:

How To Test

Uninstall sendmail on your current machine and enjoy the "no warning messages, no crashing, just blissful MTA-free silence" - wwoods

User Experience

Transparent to majority of users, will add a 'yum install <insert-MTA-here>' step to advanced users who have an actual use case for a MTA on their machines.

Dependencies

none

Contingency Plan

Do Nothing.

Documentation

  • None

Release Notes

  • None

References

  1. You can verify this by tracing how the jobs are launched - /etc/cron.d/0hourly runs the jobs in /etc/cron.hourly and /etc/anacrontab launches the daily/weekly/monthly jobs.

Comments and Discussion