mail- dovecot will not start

Forums:

Testing a pi mail server the first thing I noticed was that dovecot would not start. Running sudo service dovecot status would return a message like this: master: Error: socket() failed: Address family not supported by protocol

The Fix

[Fix-Ref] Create a new conf file: sudo touch /etc/dovecot/conf.d/25-custom-stats.conf This will create a new file in the /etc/dovecot/conf.d directory. sudo nano /etc/dovecot/conf.d/25-custom-stats.conf Add the lines: # Dovecot custom setting for listening IPv4 only listen = * Control-x to save the file The issue appears to once again be IPV6 so you need to force it off. Restart the dovecot service sudo service dovecot restart Poof.. Problem was gone.