Postfix having trouble sending to IPv6
-
On a PBX instance, (FreePBX), I've noticed that the system does not send emails to a specific domain. The domain resolves to an IPv6 address.
Sep 25 06:49:59 2059 postfix/smtp[7650]: connect to mx1.somedomain.com[2001:1af8: 40e0:a00c:9::2]:25: Network is unreachable
Checking in nano /etc/postfix/main.cf, I found that postfix is set to use both IPv4 and IPv6 protocols. (inet_protocols = all) However, I then changed it to inet_protocols = ipv4, and reloaded Postfix.
Now it resolves to an IPv4 address, and it sends the mail as it should.
Is there any reason why having inet_protocols set to all (this is the default) would cause this?
Anyone else have this issue?
-
The setting as defined is
inet_protocols = all (enable IPv4, and IPv6 if supported)
If you want to enable IPv6, regardless of if it's supported or not (based on your Postfix version) change the setting to
inet_protocols = ipv4, ipv6 (enable both IPv4 and IPv6)
As to whether or not it should work is based on your instance.
-
You can run
postconf -d | grep mail_version
to see what version of postfix you're running, if it's not 2.2+ you would require an addon to enable IPv6 support. -
@dustinb3403 said in Postfix having trouble sending to IPv6:
postconf -d | grep mail_version
I have 2.6.6.
So the inet_protocols = all does not actually mean both IPv4 AND IPv6 then?? The documentation says:
/etc/postfix/main.cf: # You must stop/start Postfix after changing this parameter. inet_protocols = ipv4 (DEFAULT: enable IPv4 only) inet_protocols = all (enable IPv4, and IPv6 if supported) inet_protocols = ipv4, ipv6 (enable both IPv4 and IPv6) inet_protocols = ipv6 (enable IPv6 only)
-
What does your logging state when your system tries to send email via IPv6?
-
This post is deleted! -
That would indicate that IPv6 isn't supported.
-
Sep 23 12:15:14 104 postfix/smtp[9187]: connect to mx.spamexperts.com[2a00:1630:2:80b::1]:25: Network is unreachable Sep 23 12:15:14 104 postfix/smtp[9187]: connect to mx.spamexperts.com[2a00:1630:2:80a::1]:25: Network is unreachable Sep 23 12:15:14 104 postfix/smtp[9187]: connect to mx.spamexperts.com[2a00:1630:2:805::]:25: Network is unreachable Sep 23 12:15:14 104 postfix/smtp[9187]: connect to mx.spamexperts.com[2a00:1630:2:801::]:25: Network is unreachable Sep 23 12:15:14 104 postfix/smtp[9187]: connect to mx.spamexperts.com[2a01:4f9:2a:2189::2]:25: Network is unreachable Sep 23 12:15:14 104 postfix/smtp[9187]: E9858201A0E: to=<[email protected]>, relay=none, delay=433199, delays=433199/0.01/0.3/0, dsn=4.4.1, status=deferred (connect to mx.spamexperts.com[2a01:4f9:2a:2189::2]:25: Network is unreachable)
-
@dustinb3403 said in Postfix having trouble sending to IPv6:
That would indicate that IPv6 isn't supported.
Not supported on PostFix itself, or in the actual server network config?
-
@fuznutz04 said in Postfix having trouble sending to IPv6:
@dustinb3403 said in Postfix having trouble sending to IPv6:
That would indicate that IPv6 isn't supported.
Not supported on PostFix itself, or in the actual server network config?
Just taking a guess, I would say via the networking.
-
-
@aaronstuder said in Postfix having trouble sending to IPv6:
Did you even read anything I posted?
-
@dustinb3403 said in Postfix having trouble sending to IPv6:
@fuznutz04 said in Postfix having trouble sending to IPv6:
@dustinb3403 said in Postfix having trouble sending to IPv6:
That would indicate that IPv6 isn't supported.
Not supported on PostFix itself, or in the actual server network config?
Just taking a guess, I would say via the networking.
Me too. I have to disable IPv6 on all of my Linux stuff otherwise, I'll get IPv6 DNS answers, yet, my Router does not have an IPv6 address (internally or externally).
-
@dustinb3403 said in Postfix having trouble sending to IPv6:
@fuznutz04 said in Postfix having trouble sending to IPv6:
@dustinb3403 said in Postfix having trouble sending to IPv6:
That would indicate that IPv6 isn't supported.
Not supported on PostFix itself, or in the actual server network config?
Just taking a guess, I would say via the networking.
So I will try this with both IPv4 AND IPv6 listed and see what happens. Specifying IPv4 only works, but I will try both.
Thanks guys.
-
@fuznutz04 said in Postfix having trouble sending to IPv6:
@dustinb3403 said in Postfix having trouble sending to IPv6:
@fuznutz04 said in Postfix having trouble sending to IPv6:
@dustinb3403 said in Postfix having trouble sending to IPv6:
That would indicate that IPv6 isn't supported.
Not supported on PostFix itself, or in the actual server network config?
Just taking a guess, I would say via the networking.
So I will try this with both IPv4 AND IPv6 listed and see what happens. Specifying IPv4 only works, but I will try both.
Thanks guys.
The point here is does your server have routable IPv6 available to it?
The postfix instance seems to have IPv6 enable.
Your DNS seems to return IPv6 information.
:question_mark: Does your router have IPv6 enabled?
:question_mark: Does your ISP support IPv6?
-
@jaredbusch said in Postfix having trouble sending to IPv6:
@fuznutz04 said in Postfix having trouble sending to IPv6:
@dustinb3403 said in Postfix having trouble sending to IPv6:
@fuznutz04 said in Postfix having trouble sending to IPv6:
@dustinb3403 said in Postfix having trouble sending to IPv6:
That would indicate that IPv6 isn't supported.
Not supported on PostFix itself, or in the actual server network config?
Just taking a guess, I would say via the networking.
So I will try this with both IPv4 AND IPv6 listed and see what happens. Specifying IPv4 only works, but I will try both.
Thanks guys.
The point here is does your server have routable IPv6 available to it?
The postfix instance seems to have IPv6 enable.
Your DNS seems to return IPv6 information.
:question_mark: Does your router have IPv6 enabled?
:question_mark: Does your ISP support IPv6?
This server is a Vultr box. Not using the Vultr Firewall. I just noticed in the Vultr manage page, that IPv6 is available, but no subnet has been assigned. That will do it!