dovecotError: socket() failed: Address family not supported by protocol

Today, I started to make a standard dist upgrade on a Debian server and Dovecot died with the following error 🙂

[….] Starting IMAP/POP3 mail server: dovecotError: socket() failed: Address family not supported by protocol
Error: Service(POP3-Login): Listen(::, 110) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: Service(POP3-Login): Listen(::, 995) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: Service(IMAP-Login): Listen(::, 143) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: Service(IMAP-Login): Listen(::, 993) failed: Address family not supported by protocol
Fatal: Failed to start listeners
failed!

 

If you look closely at her the mistake pulls out the eyes of a person Listen(::, 993) failed Obviously trying to listen to the IPv6 address I have disabled 😈 . The solution is just as blatant as the error itself – We need to get dovecot to work only on IPv4, Which is achieved by the following line in /ETC/Dovecot/dovecot. conf
Listen = 0.0.0.0
Then we hit a quick restart of Dovecot and everything is in order and we can continue with the distributive upgrade

Leave a Reply

Your email address will not be published. Required fields are marked *

Anti SPAM *