> On May 15, 2018, at 2:57 PM, Matus UHLAR - fantomas <uh...@fantomas.sk> wrote:
> 
>> I have tried with add this entry on /etc/hosts :
>> 
>> 192.168.1.1 my.domain.fr
>> 
>> But no change...
> 
> postfix does not use /etc/hosts.
> postfix uses DNS, you should configure DNS server on your machine.

Postfix (as it should) uses DNS in the SMTP client when sending mail.
On the receiving SMTP server, Postfix uses the platform's getnameinfo(3)
and getaddrinfo(3) interfaces to resolve IP -> name -> IP.  So if
/etc/hosts does not do the trick, it must not be the preferred source
in /etc/nsswitch.conf or similar OS configuration.

-- 
        Viktor.

Reply via email to