1

Topic: which services can we use ::1 instead of 127.0.0.1?

Many iRedMail services are bound to 127.0.0.1, but I would expect that at least some of them would work just fine bound to ::1 (IPv6 loopback).

As the Internet is migrating to IPv6, I am trying to use IPv6 wherever IPv4 is not needed (my sshd only listens on IPv6, since I only administer it via IPv6).

Can you advise which of these services can be bound to ::1? And can you provide instructions to do that?

These services are listening on 127.0.0.1:
mysqld
amavis
dovecot
uwsgi (mlmmjadmin)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: which services can we use ::1 instead of 127.0.0.1?

Feel free to update their config files to replace it by [::1].

3

Re: which services can we use ::1 instead of 127.0.0.1?

ZhangHuangbin wrote:

Feel free to update their config files to replace it by [::1].

127.0.0.1 is sprinkled all over many configs. Just trying mariadb, seems you cannot just say 'localhost' and get it to dualstack...it only does IPv4 *or* IPv6, but not both. I cannot just set mariadb to dualstack and migrate all the connections one by one...it has to be done all-or-nothing style, changing every one of the configs that talks to mariadb. I guess mysql-server is better after all. Any advice you can give?