No postfix when ipv4-only - with solution

Hy!

Have an install of 15.3 with ipv4-only (via Yast and in NetworkManager config). Saw that postfix won’t start on boot:

May 02 20:56:21 localhost.localdomain postfix/postmap[13249]: **fatal: parameter inet_interfaces: no local interface found for ::1**
May 02 20:56:22 localhost.localdomain update_postmaps[13250]: chmod: cannot access '/etc/postfix/access.': No such file or directory 
May 02 20:56:22 localhost.localdomain update_postmaps[13251]: postmap: fatal: parameter inet_interfaces: no local interface found for ::1 
May 02 20:56:22 localhost.localdomain postfix/postmap[13251]: **fatal: parameter inet_interfaces: no local interface found for ::1**
May 02 20:56:23 localhost.localdomain update_postmaps[13252]: chmod: cannot access '/etc/postfix/canonical.': No such file or directory 
May 02 20:56:23 localhost.localdomain update_postmaps[13253]: postmap: fatal: parameter inet_interfaces: no local interface found for ::1 
May 02 20:56:23 localhost.localdomain postfix/postmap[13253]: **fatal: parameter inet_interfaces: no local interface found for ::1**
May 02 20:56:24 localhost.localdomain update_postmaps[13254]: chmod: cannot access '/etc/postfix/sender_canonical.': No such file or directo>
May 02 20:56:24 localhost.localdomain update_postmaps[13255]: postmap: fatal: parameter inet_interfaces: no local interface found for ::1 
May 02 20:56:24 localhost.localdomain postfix/postmap[13255]: **fatal: parameter inet_interfaces: no local interface found for ::1**
May 02 20:56:25 localhost.localdomain update_postmaps[13256]: chmod: cannot access '/etc/postfix/relocated.': No such file or directory 
May 02 20:56:25 localhost.localdomain update_postmaps[13257]: postmap: fatal: parameter inet_interfaces: no local interface found for ::1 
May 02 20:56:25 localhost.localdomain postfix/postmap[13257]: **fatal: parameter inet_interfaces: no local interface found for ::1**
May 02 20:56:26 localhost.localdomain update_postmaps[13258]: chmod: cannot access '/etc/postfix/sasl_passwd.': No such file or directory 
May 02 20:56:26 localhost.localdomain update_postmaps[13259]: postmap: fatal: parameter inet_interfaces: no local interface found for ::1 
May 02 20:56:26 localhost.localdomain postfix/postmap[13259]: **fatal: parameter inet_interfaces: no local interface found for ::1**
May 02 20:56:27 localhost.localdomain update_postmaps[13260]: chmod: cannot access '/etc/postfix/relay_ccerts.': No such file or directory 
May 02 20:56:27 localhost.localdomain update_postmaps[13261]: postmap: fatal: parameter inet_interfaces: no local interface found for ::1 
May 02 20:56:27 localhost.localdomain postfix/postmap[13261]: **fatal: parameter inet_interfaces: no local interface found for ::1**
May 02 20:56:28 localhost.localdomain update_postmaps[13262]: chmod: cannot access '/etc/postfix/helo_access.': No such file or directory 
May 02 20:56:28 localhost.localdomain update_postmaps[13263]: postmap: fatal: parameter inet_interfaces: no local interface found for ::1 
May 02 20:56:28 localhost.localdomain postfix/postmap[13263]: **fatal: parameter inet_interfaces: no local interface found for ::1**
May 02 20:56:29 localhost.localdomain update_postmaps[13264]: chmod: cannot access '/etc/postfix/relay.': No such file or directory 
May 02 20:56:29 localhost.localdomain update_postmaps[13265]: postalias: fatal: parameter inet_interfaces: no local interface found for ::1 
May 02 20:56:29 localhost.localdomain postfix/postalias[13265]: **fatal: parameter inet_interfaces: no local interface found for ::1**
May 02 20:56:30 localhost.localdomain postfix[13266]: **fatal: parameter inet_interfaces: no local interface found for ::1**
May 02 20:56:31 localhost.localdomain systemd[1]: **postfix.service: Control process exited, c**

____________________________________________-

Solution:

Do a

sudo nano /etc/postfix/main.cf

and find

[FONT=monospace]inet_protocols = all[/FONT]

and replace by:

[FONT=monospace]inet_protocols = ipv4

[/FONT]