Scripting changing sending MTA

Todd Zullinger tmz at pobox.com
Wed Dec 15 14:05:52 UTC 2010


Robert Moskowitz wrote:
> In the Postfix install documentation I found that I need to do the
> following:
>
> /usr/sbin/alternatives --config mta
>
> And select '2' to switch to Postfix.
>
> Is there a way to put this into an install script?
>
> Something simple like:
>
> echo 2| /usr/sbin/alternatives --config mta

Use the --set option rather than --config.  Something like:

    alternatives --set mta /usr/sbin/sendmail.postfix

Or, do as Jason suggested and simply remove the sendmail package and
ensure postfix is the only MTA installed.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sir, you are drunk!" "Well madam, I may be be drunk, but you are ugly;
the difference being I will be sober in the morning.
    -- Winston Churchill

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20101215/fd54c539/attachment.bin 


More information about the users mailing list