Problem when I send a mail

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem when I send a mail

forums

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.


--

##########

Philippe - Forums

Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

Danny Horne
On 15/05/18 19:34, [hidden email] wrote:

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]


I think all that means is Postfix can't resolve the IP address to a hostname
Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

dennisthetiger
In reply to this post by forums
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, [hidden email] wrote:

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.


--

##########

Philippe - Forums


--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

forums

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 :

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, [hidden email] wrote:

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.


--

##########

Philippe - Forums


--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

Matus UHLAR - fantomas
On 15.05.18 20:53, [hidden email] 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.


>> On May 15, 2018 11:34:30 AM PDT, [hidden email] wrote:
>>> 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.

--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Support bacteria - they're the only culture some people have.
Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

forums

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 :

On 15.05.18 20:53, [hidden email] 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.


On May 15, 2018 11:34:30 AM PDT, [hidden email] wrote:
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.
Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

Viktor Dukhovni
In reply to this post by Matus UHLAR - fantomas


> On May 15, 2018, at 2:57 PM, Matus UHLAR - fantomas <[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

forums

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 :



On May 15, 2018, at 2:57 PM, Matus UHLAR - fantomas <[hidden email]> 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.
Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

Viktor Dukhovni


> On May 15, 2018, at 5:31 PM, [hidden email] wrote:
>
> My /etc/nsswitch.conf contain that :
>
> hosts:          files mdns4_minimal [NOTFOUND=return] dns
> networks:       files

Your SMTP server may be running in a chroot jail.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

Bill Cole-3
In reply to this post by forums
On 15 May 2018, at 16:58, [hidden email] wrote:

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

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.

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

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

> - 192.168.1.1

Which will never be used as long as 1.1.1.1 responds with reasonable
speed.
Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

forums
In reply to this post by Viktor Dukhovni

My SMTP server is running in chroot.

Here is the line in /etc/postfix/master.cf :

smtp       inet  n       -       y       -       -       smtpd


---

##########

Philippe - Forums


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



On May 15, 2018, at 5:31 PM, [hidden email] wrote:

My /etc/nsswitch.conf contain that :

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

Your SMTP server may be running in a chroot jail.
Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

forums
In reply to this post by Bill Cole-3

I am thus going to remove the "local" DNS (192.168.1.1)

I planned to go up a firewall on a new server, and to transform it into DNS.


---

##########

Philippe - Forums


Le 2018-05-16 06:58, Bill Cole a écrit :

On 15 May 2018, at 16:58, [hidden email] wrote:

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

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.

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

- 1.1.1.1

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

- 192.168.1.1

Which will never be used as long as 1.1.1.1 responds with reasonable speed.
Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

Viktor Dukhovni
In reply to this post by forums


> On May 16, 2018, at 1:20 PM, [hidden email] wrote:
>
> My SMTP server is running in chroot.
>
> Here is the line in /etc/postfix/master.cf :
>
> smtp       inet  n       -       y       -       -       smtpd
>

You can disable chroot, or make sure that /etc/hosts and nsswitch.conf,
... are the same in the chroot jail as outside.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: Problem when I send a mail

forums

The files are the same.

---

##########

Philippe - Forums


Le 2018-05-16 19:45, Viktor Dukhovni a écrit :



On May 16, 2018, at 1:20 PM, [hidden email] wrote:

My SMTP server is running in chroot.

Here is the line in /etc/postfix/master.cf :

smtp       inet  n       -       y       -       -       smtpd

You can disable chroot, or make sure that /etc/hosts and nsswitch.conf,
... are the same in the chroot jail as outside.