RHEL7でpostfixが起動しない
RHELのスタートアップ時にpostfixが起動しません。
statusを見てみるとこんな感じ。
# systemctl status postfix.service ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since 金 2017-03-10 10:05:22 JST; 1min 29s ago Process: 18448 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE) Process: 18445 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) Process: 18440 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS) 3月 10 10:05:19 dcvsvtic01 aliasesdb[18440]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1 3月 10 10:05:21 dcvsvtic01 aliasesdb[18440]: WARNING: local host name (dcvsvtic01) is not qualified; see cf/README: WHO AM I? 3月 10 10:05:21 dcvsvtic01 sendmail[18442]: alias database /etc/aliases rebuilt by root 3月 10 10:05:21 dcvsvtic01 aliasesdb[18440]: /etc/aliases: 76 aliases, longest 10 bytes, 771 bytes total 3月 10 10:05:21 dcvsvtic01 sendmail[18442]: /etc/aliases: 76 aliases, longest 10 bytes, 771 bytes total 3月 10 10:05:21 dcvsvtic01 postfix[18448]: fatal: parameter inet_interfaces: no local interface found for ::1 3月 10 10:05:22 dcvsvtic01 systemd[1]: postfix.service: control process exited, code=exited status=1 3月 10 10:05:22 dcvsvtic01 systemd[1]: Failed to start Postfix Mail Transport Agent. 3月 10 10:05:22 dcvsvtic01 systemd[1]: Unit postfix.service entered failed state. 3月 10 10:05:22 dcvsvtic01 systemd[1]: postfix.service failed.
これをコメントアウトする。
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 #::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
これで起動できるようになりました。
それくらいセットアップ時に自動的にやってほしい。
もしかしたら無理やり::1ってなネットワークインタフェイスをフェイクでもいいから作ってあげればいいのかな。