CentOS7からAlmaLinux9に入替えをしたときに苦労したことを残しておきます。
さくらVPSを使用。

・epelレポジトリをロードすると強制終了する。
→swap領域が無かったので、作成したところ解決。

・fail2banでpostfix_saslがfailを検知しない。
→検索で出てくるjail設定の方法(filter = postfix_sasl)をしようにも、filter.dにpostfix_sasl.confが無い。
→(filter = postfix[mode=auth])にしてもダメ。
→postfix_sasl.confを手作業で追加してうまくいった。

[postfix-sasl]
enabled = true
#filter = postfix[mode=auth]
filter = postfix_sasl
port = smtp,465,submission,imap,imaps,pop3,pop3s
logpath = %(postfix_log)s
backend = %(postfix_backend)s
action = firewallcmd-allports[name=postfix, port=”pop3,pop3s,imap,imaps,submission,465″]

postfix_sasl.conf
[INCLUDES]
before = common.conf
[Definition]
_daemon = postfix/(submission/)?smtp(d|s)
failregex = ^%(_prefix_line)swarning: [-.\w]+[]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed(: [ A-Za-z0-9+/]={0,2})?\s$
ignoreregex =
[Init]
journalmatch = _SYSTEMD_UNIT=postfix.service