fatal: parameter inet_interfaces: no local interface found for ::1

2020.08.08

A memorandum on installing Postfix with CentOS8 on Sakura VPS.

Environment: CentOS 8.2, postfix 3.3.1

The following error when trying to start after installing Postfix

postfix[3635]: fatal: parameter inet_interfaces: no local interface found for ::1

systemd[1]: postfix.service: Control process exited, code=exited status=1

systemd[1]: postfix.service: Failed with result’exit-code’.

systemd[1]: Failed to start Postfix Mail Transport Agent.

Sakura VPS has IPv6 disabled by default.

  • IPv6 activation procedure (CentOS 8) | Sakura VPS News

Confirm settings

# less /etc/sysctl.conf

Currently IPv6 is not required, so comment out the hosts file

# less /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Start postfix and check. Auto start ON

# systemctl start postfix

# systemctl status postfix

# systemctl enable postfix

Confirm with mail command (If not, install with «dnf install mailx»)

# mail hoge@gmail.com

Check email log

# less /var/log/maillog