Re: fedora system-switch-mail alternative

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

 



On 1 October 2010 22:08, David A. Paredes Rios <davidapr@xxxxxxxxx> wrote:
> Thanks Craig, actually thats are the steps that system-switch-mail do?
>

That is roughly what system-switch mail does. This is it enabling sendmail:

        os.system('/usr/sbin/alternatives --set mta
/usr/sbin/sendmail.sendmail')
        os.system('/sbin/service postfix stop 2>/dev/null >/dev/null')
        os.system('/sbin/service exim stop 2>/dev/null >/dev/null')
        os.system('/sbin/chkconfig postfix off 2>/dev/null >/dev/null')
        os.system('/sbin/chkconfig exim off 2>/dev/null >/dev/null')
        os.system('/sbin/service sendmail start 2>/dev/null >/dev/null')
        os.system('/sbin/chkconfig sendmail on 2>/dev/null >/dev/null')

You can read /usr/share/system-switch-mail/functions.py for more details.

--
Sam
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux