Sendmail is configured to forward through a smarthost at AWS. The smarthost DNS only advertises ipv4 addresses. When Sendmail looks up the address, for some reason it has decided to return the ipv6 address of my server, thus resulting in a loopback issue.
I tried setting CLIENT_OPTIONS for ipv4 only, but that didn't work.
I eventually resorted to hardcoding an IP for the AWS server into my /etc/hosts file, but that obviously is problematic.
How to I tell Sendmail that if there is no ipv6 address in the DNS to use the ipv4 address? Or could it be a DNS resolution configuration error?
Has anyone else encountered this?