・インストール確認

[root@alma]# alternatives --config mta

・postfix だけの場合

There is 1 program that provides 'mta'.

SelectionCommand
-----------------------------------------------
*+ 1/usr/sbin/sendmail.postfix

Enter to keep the current selection[+], or type selection number:※ Enter を押下

・postfix 以外にもある場合

There is 2 program that provides 'mta'.

SelectionCommand
-----------------------------------------------
*+ 1/usr/sbin/sendmail.sendmail
2/usr/sbin/sendmail.postfix

Enter to keep the current selection[+], or type selection number:※ 2 を入力し Enter を押下

これでデフォルトのメールソフトが postfix になります

・sendmail の停止

[root@alma]# systemctl stop sendmail

・sendmail の自動起動解除設定

[root@alma]# systemctl disable sendmail

・自動起動解除設定の確認

[root@alma]# systemctl list-unit-files | grep sendmail
sendmail.servicedisabled※ disabled になっていればOK