Using redhat-switch-mail-nox in a script?

Stuart Sears stuart at sjsears.com
Tue Nov 30 13:18:18 UTC 2004


hi Ben
comments below...
On Monday 22 November 2004 23:36, Benjamin J. Weiss wrote:
> Does anybody know how to switch from sendmail to postfix with a simple
> command instead of the user interface?  I tried
<snip>
> but nothting seems to work.  Any ideas?
Pete's right - the alternatives command i what you want.
rpm -Uvh postfix...rpm
cp files into place
( I assume you already haev your configs set up ready to go?)
/usr/sbin/alternatives --set mta /usr/sbin/sendmail.postfix
/sbin/service sendmail stop
/sbin/service postfix start
/sbin/chkconfig sendmail off
/sbin/chkconfig postfix on
--
Stuart Sears RHCE RHCX
I came, I saw, I concurred.




More information about the redhat-list mailing list