Get the most out of your Centmin Mod LEMP stack
Become a Member

Sysadmin Error when opening CMM menu - postfix ipv6

Discussion in 'System Administration' started by Jon Snow, May 5, 2018.

  1. Jon Snow

    Jon Snow Active Member

    919
    191
    43
    Jun 30, 2017
    Ratings:
    +296
    Local Time:
    6:12 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    Getting this error when trying to open the CMM menu and I can't restart postfix:
    Code (Text):
    fatal: parameter inet_interfaces: no local interface found for ::1

    /etc/postfix/main.cf
    Code (Text):
    inet_interfaces = localhost
    inet_protocol = ipv4

    Changing localhost to 127.0.0.1 lets postfix restart but it just brings another error:
    Code (Text):
    postconf: warning: /etc/postfix/main.cf: unused parameter: inet_protocol=ipv4

    IPv6 has been disabled on the server.

    What's the proper way of fixing this up?

     
  2. eva2000

    eva2000 Administrator Staff Member

    59,274
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    7:12 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  3. eva2000

    eva2000 Administrator Staff Member

    59,274
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    7:12 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    FYI, you're missing an s

    instead of
    Code (Text):
    inet_protocol = ipv4
    

    should be
    Code (Text):
    inet_protocols = ipv4
    
     
  4. Jon Snow

    Jon Snow Active Member

    919
    191
    43
    Jun 30, 2017
    Ratings:
    +296
    Local Time:
    6:12 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    Well hot damn. Fixing that typo solved everything xD Thanks!
     
  5. Jon Snow

    Jon Snow Active Member

    919
    191
    43
    Jun 30, 2017
    Ratings:
    +296
    Local Time:
    6:12 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    @eva2000 Updating centmin code reverts the changes. How would I keep the changes? Because if I don't re-add the changes, I get the error once again when launching the centmin menu.

    Btw is there anything wrong with using 127.0.0.1 instead of localhost for inet_interfaces?
     
  6. eva2000

    eva2000 Administrator Staff Member

    59,274
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    7:12 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    for them to persist ;)