I've installed postfix on my arch linux pc. I use systemd-resolved and systemd-networkd to establish a network connection.
I want to use postfix as a satellite system to send some mails if my raid systems is broken.
So, when I want to send some test mails with echo "Body" | mail -s "Header" [email protected]
postfix write in my logs, that he can't resolve my domain after a A or MX record
Okt 21 22:16:54 markus-pc postfix/error[17574]: F1C6E2E0C10: to=, orig_to=, relay=none, delay=360970, delays=360969/0.57/0/0.02, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=smtp1.example.com type=AAAA: Host not found, try again)
Okt 21 22:16:54 markus-pc postfix/error[17569]: 0448E2E0C0E: to=, relay=none, delay=360970, delays=360969/0.57/0/0.02, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=smtp1.example.com type=AAAA: Host not found, try again)
Okt 21 22:16:54 markus-pc postfix/error[17577]: F420B2E0B46: to=, relay=none, delay=360970, delays=360969/0.57/0/0.02, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=smtp1.example.com type=AAAA: Host not found, try again)
Omt 21 22:16:54 markus-pc postfix/error[17572]: F257B2E0C12: to=, orig_to=, relay=none, delay=360970, delays=360969/0.57/0/0.02, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=smtp1.example.com type=AAAA: Host not found, try again)
But when I tried it with dig, I get a valid response.
How can I fix this dns error, that my local postfix installation can find my mailserver and can send him some mails?
Volker
AAAA
records and the domain may not be configured for those. When you use dig to test you may get to see IPv4 A records instead, which probably are the default? If it is your own domain, adding the actual ipv6 records may be a solution.traceroute
ormtr
to verify that you actually have dual stack connectivity to the internet?traceroute
andmtr
. It's a little bit crazy because with traceroute he want to resolve my valid ipv6 address but he goes to a wrong ipv6 address. The resolved address and the target address are totally different.internet_protocols
toipv4
in postfix' main.cf, I get the same error.