type=AAAA: Host found but no data record of requested type

I'm using Postfix. When I try to send an email to a local domain, I receive the following error:

Host or domain name not found. Name service error for name=example.com
type=AAAA: Host found but no data record of requested type.

Why is this happening and what can I do to fix it?

Your server is trying to use IPv6 when sending the mail. Since the mail.example.com doesn't have an AAAA-record (which is the same as an A-record, but for IPv6), it isn't working.

If you want Postfix to never use IPv6, you can change that in the config file, as explained in the Postfix postconf manual page:

When IPv6 support is enabled via the inet_protocols parameter,  Post- fix will do DNS type AAAA record lookups.

When  both IPv4 and IPv6 support are enabled, the Postfix SMTP client will attempt to connect via IPv6 before attempting to use IPv4.

Examples:

inet_protocols = ipv4
inet_protocols = all (DEFAULT)
inet_protocols = ipv6
inet_protocols = ipv4, ipv6

If you want to change it for this domain only, change your transport map to read example.com smtp-ipv4:[mail.domain.com].

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值