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

Benjamin J. Weiss benjamin at Weiss.name
Tue Nov 30 14:00:37 UTC 2004


On Tue, 30 Nov 2004, Stuart Sears wrote:

> 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

Thanks!  I'll try it tonight!

Ben




More information about the redhat-list mailing list