No IPv6 outbound from Sendmail starting with 20.04

Bug #1894379 reported by Brian Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sendmail (Ubuntu)
New
Undecided
Unassigned

Bug Description

With Bionic, Sendmail would send email over IPv4 and IPv6, which I could see in logs and DMARC aggregate reports. Since upgrading to Focal, it's only attempting to send over IPv4, but I can receive email just fine over IPv4 or IPv6. I'm seeing that both with an upgrade and a fresh install.

On further testing, it looks like Sendmail in 20.04 isn't even trying to get IPv6 addresses for servers. If only an IPv6 address is available, I get a "host unknown" bounce.

What changed, then? Not my configuration, in the case of the upgrade, and I don't see anything relevant in the package changelogs between the 2 versions.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1894379/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Paul White (paulw2u)
affects: ubuntu → sendmail (Ubuntu)
tags: added: focal
tags: added: rls-ff-incoming
Revision history for this message
Brian Smith (avalon73) wrote :

After more testing, this seems to be a resolver issue in sendmail, since I can specify an IPv6 address directly as a smart host and it works. If it's a config problem, I don't know what that might be, and it doesn't explain the existing install no longer trying to use IPv6 after upgrading to Focal.

Revision history for this message
Brian Smith (avalon73) wrote :

Not sure what you guys did or didn't do, but it's apparently working again with Jammy.

It took a while, but... thanks.

Revision history for this message
Dan Cooper (pcfan1234) wrote :

Can you reproduce that it affects the version in Focal, but not Jammy?
Can you use Wireshark to check if sendmail queries the DNS for an AAAA record for the specific domain name?
What happens if you remove all IPv4 addresses on your system?
Does it then use IPv6?
Remember there is "happy eyeballs" fallback to IPv4.

Revision history for this message
Brian Smith (avalon73) wrote :

Unfortunately I don't have any machines running Focal anymore to test with, and I didn't think to check if a AAAA DNS request was actually going over the wire when I had one.

It's easy enough to replicate, though, by using the smart host feature. On the machine running Focal:

- IPv6 address literal as a smart host works
- Named smart host with A and AAAA records uses the IPv4 address
- Named smart host with only a AAAA record results in a "host not found" bounce

There is no IPv4 fallback when no IPv4 addresses are in the DNS results.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.