> On Feb 13, 2019, at 9:48 AM, Andrey Repin <anrdae...@yandex.ru> wrote: > >>> >>> milter_default_action = accept >>> smtpd_milters = inet:localhost:12301 >>> non_smtpd_milters = inet:localhost:12301 > > inet:[localhost]:… > Save a roundtrip to DNS server for MX lookup. It's not needed, nor going to be > successful here.
For the record, there are no MX lookups involved in resolving the TCP endpoint for a milter. To avoid DNS lookups here, use: inet:[127.0.0.1]:12301 instead. With hostnames the [] are optional and usually not used. With IPv4 address literals, the [] are also optional, but preferred. With IPv6, they're required: inet:[::1]:12301 -- Viktor.