DevHeads.net

Problem when I send a mail

Hi,

When I send a mail with roundcube from my computer I find this message
on my maillog :

_MAY 15 20:16:51 MYSERVER POSTFIX/SMTPD[29843]: CONNECT FROM
UNKNOWN[192.168.1.1]_

192.168.1.1 is my box IP

My computer is in the same lan than my mailserver (home network).

I think I have a bad configuration somewhere, postfix or server network.

I takes any sugsestion.

Thank's.

Comments

Re: Problem when I send a mail

By Dennis Carr at 05/15/2018 - 14:51

This is fairly normal. It just means that postfix can't figure out the name of the connecting box by resolution or host look-up.

-Dennis Carr

On May 15, 2018 11:34:30 AM PDT, <a href="mailto:forums@mehl-family.fr">forums@mehl-family.fr</a> wrote:

Re: Problem when I send a mail

By forums at 05/15/2018 - 14:53

I have tried with add this entry on /etc/hosts :

192.168.1.1 my.domain.fr

But no change...

Philippe - Forums

Le 2018-05-15 20:51, Dennis Carr a écrit :

Re: Problem when I send a mail

By Matus UHLAR - f... at 05/15/2018 - 14:57

On 15.05.18 20:53, <a href="mailto:forums@mehl-family.fr">forums@mehl-family.fr</a> wrote:
postfix does not use /etc/hosts.
postfix uses DNS, you should configure DNS server on your machine.

Re: Problem when I send a mail

By Viktor Dukhovni at 05/15/2018 - 17:21

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.

Re: Problem when I send a mail

By forums at 05/15/2018 - 17:31

My /etc/nsswitch.conf contain that :

hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files

Philippe - Forums

Le 2018-05-15 23:21, Viktor Dukhovni a écrit :

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.

Re: Problem when I send a mail

By Viktor Dukhovni at 05/15/2018 - 17:39

Your SMTP server may be running in a chroot jail.

Re: Problem when I send a mail

By forums at 05/15/2018 - 16:58

I don't want to configure DNS server on my machine.

I use 2 DNS (/etc/resolv.conf) :

- 1.1.1.1

- 192.168.1.1

Philippe - Forums

Le 2018-05-15 20:57, Matus UHLAR - fantomas a écrit :

Re: Problem when I send a mail

By Bill Cole at 05/16/2018 - 00:58

That's perfectly fine but it is not relevant.

What you *want* has no effect on what *works*. If you want Postfix to
recognize an IP in RFC1918 private space as having a valid name, you
MUST set up your own DNS server that serves the relevant zone under
in-addr.arpa. This is true whether or not you *want* to configure such a
server.

Which will *correctly* reply that 192.168.1.1 has no name, because on
the public Internet, 192.168.1.1 has no name

Which will never be used as long as 1.1.1.1 responds with reasonable
speed.

Re: Problem when I send a mail

By Danny Horne at 05/15/2018 - 14:50

On 15/05/18 19:34, <a href="mailto:forums@mehl-family.fr">forums@mehl-family.fr</a> wrote: