Bug 1294870
| Summary: | can't send email to domain with mx pointing to cname from ipv6 enabled server | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Joe Pruett <joey> | ||||||
| Component: | sendmail | Assignee: | Jaroslav Škarvada <jskarvad> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Roman Žilka <rzilka> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 7.2 | CC: | amahdal, fweimer, laurent, psklenar, rzilka | ||||||
| Target Milestone: | rc | Keywords: | FastFix, Patch | ||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | sendmail-8.14.7-5.el7 | Doc Type: | If docs needed, set a value | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2017-08-01 12:42:36 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 1400961 | ||||||||
| Attachments: |
|
||||||||
|
Description
Joe Pruett
2015-12-30 19:20:58 UTC
Created attachment 1110655 [details]
fix sm_gethostby* routines to deal with cnames better
i grabbed the latest copy of sendmail and found that it had fixed the problem. i was able to make a smallish patch to fix just this issue in the sm_gethostby* functions. if gethostbyname returns addresses that aren't in the right address family, it rejects them, which then causes higher levels to retry correctly.
i'm attaching the patch, hoping it can go into an official release.
Created attachment 1111426 [details]
Backported fix
Thanks for the backported patch. I only changed its header to apply.
how long might it take to show up in an official build? (In reply to Joe Pruett from comment #4) > how long might it take to show up in an official build? I am unable to say, it depends on PM, QA, and other factors. You can speed the process up by escalation through the support channel. Currently it's ready from the engineering point of view. QA: Verified.
********************
******************** sendmail-8.14.7-4.el7 (faulty):
********************
# grep CLIENT_OPTIONS /etc/mail/sendmail.mc
CLIENT_OPTIONS(`Family=inet,Addr=127.0.0.1')dnl
CLIENT_OPTIONS(`Family=inet6,Addr=::1')dnl
# nslookup -type=mx dummydomain.cz
Server: 127.0.0.1
Address: 127.0.0.1#53
dummydomain.cz mail exchanger = 10 cnamemyself.dummydomain.cz.
# nslookup cnamemyself.dummydomain.cz
Server: 127.0.0.1
Address: 127.0.0.1#53
cnamemyself.dummydomain.cz canonical name = myself.dummydomain.cz.
Name: myself.dummydomain.cz
Address: 127.0.0.1
# echo QA|mail root
# sleep 100
# grep dummydomain /var/log/maillog
May 31 10:08:46 localhost sendmail[11375]: v4VE7PfU011375: to=root, ctladdr=root (0/0), delay=00:01:21, xdelay=00:01:21, mailer=relay, pri=30225, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v4VE7PQA011376 Message accepted for delivery)
May 31 10:08:46 localhost sendmail[11380]: v4VE7PQA011376: to=<root>, ctladdr=<root> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=120543, relay=cnamemyself.dummydomain.cz. [127.0.0.1], dsn=4.0.0, stat=Deferred: Address family not supported by protocol
# mailq
/var/spool/mqueue (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
v4VE7PQA011376 3 Wed May 31 10:08 <root>
(makeconnection: cannot bind socket [IPv6:::1]: Address famil)
<root>
Total requests: 1
#
********************
******************** sendmail-8.14.7-5.el7 (fixed):
********************
# grep CLIENT_OPTIONS /etc/mail/sendmail.mc
CLIENT_OPTIONS(`Family=inet,Addr=127.0.0.1')dnl
CLIENT_OPTIONS(`Family=inet6,Addr=::1')dnl
# nslookup -type=mx dummydomain.cz
Server: 127.0.0.1
Address: 127.0.0.1#53
dummydomain.cz mail exchanger = 10 cnamemyself.dummydomain.cz.
# nslookup cnamemyself.dummydomain.cz
Server: 127.0.0.1
Address: 127.0.0.1#53
cnamemyself.dummydomain.cz canonical name = myself.dummydomain.cz.
Name: myself.dummydomain.cz
Address: 127.0.0.1
# echo QA|mail root
# sleep 100
# grep dummydomain /var/log/maillog
May 31 10:01:08 localhost sendmail[11370]: v4VDxmKa011370: to=root, ctladdr=root (0/0), delay=00:01:20, xdelay=00:01:20, mailer=relay, pri=30225, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v4VDxmdd011371 Message accepted for delivery)
May 31 10:01:08 localhost sendmail[11403]: v4VDxmdd011371: SYSERR(root): cnamemyself.dummydomain.cz. config error: mail loops back to me (MX problem?)
May 31 10:01:08 localhost sendmail[11403]: v4VDxmdd011371: to=<root>, ctladdr=<root> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120543, relay=cnamemyself.dummydomain.cz. [127.0.0.1], dsn=5.3.5, stat=Local configuration error
# mailq
/var/spool/mqueue is empty
Total requests: 0
#
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2197 |