Disable IPv6 in postfix

Discussion in 'General' started by alexandernst, Oct 9, 2016.

Thread Status:
Not open for further replies.
  1. alexandernst

    alexandernst New Member

    I know I can edit postfix's config on my own in order to prevent it from using IPv6, but is there a way to do the same with ISPConfig?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    No, just edit postfix config. This settings is neither set nor modified by ispconfig.
     
  3. alexandernst

    alexandernst New Member

    Actually it is, as I already had that setting and when I upgraded to 3.1 the change was lost. That's why I'm asking if there is some better way to setup that and make ispconfig preserve it.
     
  4. fireba11

    fireba11 Member

    uhm .. why do you want your MTA not to speak IPv6? i can't really see any good reason for doing that in the first place :-D
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    You would do this for example when there are IPv6 network and delivery problems or when you have spam problems as blacklists are less effective on IPv6 die to the huge amount of available addresses.

    To make your config update safe, copy the postfix main.cf template file from install/tpl/ folder of the ispconfig tar.gz file to the folder /usr/local/ispconfig/server/conf-custom/install/
     
  6. daniel123

    daniel123 New Member

    2021 and i still need to edit /etc/postfix/main.cf after every update:
    inet_protocols = all
    to
    inet_protocols = ipv4

    set a static template is no solution, because the /install/tpl/debian_postfix.conf.master changed over the months.
    a solution in the ispconfig web-config for postfix would be nice.
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    1) Don't disable IPv6. (https://ipv6bingo.com/)
    2) Don't revive such old threads but create a new thread.
    3) There is already a function for custom lines in your Postfix and Dovecot config: https://www.howtoforge.com/communit...-for-custom-postfix-and-dovecot-config.86559/
     
    till likes this.
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    You should not do this in 2021, IPv6 is working perfectly fine today. Plus there is no need to edit postfix config after updates, as @Thom mentioned already. I've closed this old thread now.
     
Thread Status:
Not open for further replies.

Share This Page