Skip to main content

How to disable IPv6 in Exim


How to disable IPv6 in Exim


The other day I was just [ seriously, for no apparent reason 😀 ] going through the exim logs in my server and this error caught my eye.
ASPMX3.GOOGLEMAIL.com [2a00:1450:400b:c02::1b] Network is unreachable

Apparently, IPv6 wasn’t configured properly in the server and this was causing issues when trying to communicate with google’s IPv6 addresses. There are two ways you can fix this issue. The easy way and the correct way. The correct way would be to configure IPv6 properly ( obviously ). As lazy as I am, I chose the easy way.

Anyway, this is how you would disable IPv6 in your exim mail server:

  1. Check if IPv6 is currently enabled. If you see tcp6, then it means IPv6 is enabled. <pre class="toolbar:2 lang:default decode:true">[root@server ~]# netstat -tulpn | grep :25 tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 23336/exim
    tcp 0 0 0.0.0.0:2525 0.0.0.0:* LISTEN 23336/exim
    tcp6 0 0 :::25 :::* LISTEN 23336/exim
    tcp6 0 0 :::2525 :::* LISTEN 23336/exim</pre>

  2. If it is enabled, open exim configuration file ( /etc/exim/exim.conf ) and add the parameter “disable_ipv6=true” <pre class="toolbar:2 lang:default decode:true">vi /etc/exim/exim.conf


Add the following


disable_ipv6=true</pre>

  1. Restart exim and you’re


Comments

Popular posts from this blog

15 Best Online Forum Platforms / Software (Free and Paid)

Tables to Valid XHTML/CSS

25+ Best Video Player WordPress Plugins