Using redhat-switch-mail-nox in a script?
Pete Nesbitt
pete at linux1.ca
Tue Nov 23 05:00:38 UTC 2004
On November 22, 2004 03:36 pm, Benjamin J. Weiss wrote:
> I'm trying to write a script that'll set up an email server automatically.
> I want to switch from sendmail to postfix on RHEL-3, but I can't seem to
> find any command-line switches for redhat-switch-mail-nox
>
> Does anybody know how to switch from sendmail to postfix with a simple
> command instead of the user interface? I tried
>
> redhat-switch-mail-nox postfix
> redhat-switch-mail-nox -postfix
>
> but nothting seems to work. Any ideas?
>
> Thanks!
>
> Ben
Hi Ben,
I think your after the 'alternatives' command. It manages the links for
printing and for email systems. You can actually use the same commands, so no
need to update all your scripts that may refer to sendmail (or postfix).
hope that helps.
--
Pete Nesbitt, rhce
More information about the redhat-list
mailing list