Bug 436359

Summary: [patch] Use chkconfig to configure selected MTA to start automatically
Product: [Fedora] Fedora Reporter: Dax Kelson <dkelson>
Component: system-switch-mailAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideKeywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-17 12:42:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to add chkconfig use to system-switch-mail none

Description Dax Kelson 2008-03-06 19:09:13 UTC
Description of problem:
I teach Linux classes and I notice a very common stumbling block for students
that use system-switch-mail. They think (appropriately) that system-switch-mail
handles all the changes for them, and so they never run the chkconfig commands
to turn on the selected MTA and off the unselected MTAs.

I'm attaching a patch to this bug report that adds chkconfig support to
system-switch-mail so that it truly does to all the steps required to switch
between MTAs.

I have tested it and it works:

Here is the output of the test:

STARTING POINT:
[root@mentorng ~]# chkconfig --list sendmail ; chkconfig --list postfix ;
chkconfig --list exim
sendmail        0:off   1:off   2:on    3:on    4:on    5:on    6:off
postfix         0:off   1:off   2:on    3:on    4:on    5:on    6:off
exim            0:off   1:off   2:on    3:on    4:on    5:on    6:off

run system-switch-mail and choose sendmail:

sendmail        0:off   1:off   2:on    3:on    4:on    5:on    6:off
postfix         0:off   1:off   2:off   3:off   4:off   5:off   6:off
exim            0:off   1:off   2:off   3:off   4:off   5:off   6:off

run system-switch-mail and choose postfix:

sendmail        0:off   1:off   2:off   3:off   4:off   5:off   6:off
postfix         0:off   1:off   2:on    3:on    4:on    5:on    6:off
exim            0:off   1:off   2:off   3:off   4:off   5:off   6:off

run system-switch-mail and choose exim:

sendmail        0:off   1:off   2:off   3:off   4:off   5:off   6:off
postfix         0:off   1:off   2:off   3:off   4:off   5:off   6:off
exim            0:off   1:off   2:on    3:on    4:on    5:on    6:off

run system-switch-mail and choose sendmail:

sendmail        0:off   1:off   2:on    3:on    4:on    5:on    6:off
postfix         0:off   1:off   2:off   3:off   4:off   5:off   6:off
exim            0:off   1:off   2:off   3:off   4:off   5:off   6:off

Please apply this patch.

Comment 1 Dax Kelson 2008-03-06 19:09:13 UTC
Created attachment 297087 [details]
Patch to add chkconfig use to system-switch-mail

Comment 2 Dax Kelson 2008-03-06 20:16:24 UTC
It would be great if this can get in before the March 11th freeze.

Comment 3 Than Ngo 2008-03-07 16:57:02 UTC
it's fixed in 0.5.26-1. Thanks

Comment 4 Dax Kelson 2008-03-15 05:10:06 UTC
Please fix for RHEL5.3 as well.

Comment 5 Than Ngo 2008-03-17 12:42:38 UTC
it's the bug against rawhide. Please don't reopen it since there's someone 
already reported this issue against RHEL-5.x.

Thanks