problem with sending emails from second IP

classic Classic list List threaded Threaded
33 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Wietse Venema
Viktor Dukhovni:

>
>
> > On Apr 13, 2018, at 7:25 AM, Poliman - Serwis <[hidden email]> wrote:
> >
> > Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal:
> >   smtp_connect_addr: bad smtp_bind_address parameter:
> >   54.38.202.128,: Name or service not known
>
> That "," there looks like it does not belong.  Something's wrong with your smtp_bind_address syntax.
>
> > Apr 12 11:49:00 s1 postfix/smtp[13190]: fatal:
> >   smtp_connect_addr: bad smtp_bind_address parameter:
> >   54.38.202.128:10025,: Name or service not known
>
> Ditto.

Good job. smtp_bind_address needs an IP address, no
commas, no TCP ports.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Poliman - Serwis
Yea, that's right. Unbeliveable that there is no comma. :D Now I have smtp_bind_address in main.cf and master.cf. :)

2018-04-13 21:46 GMT+02:00 Wietse Venema <[hidden email]>:
Viktor Dukhovni:
>
>
> > On Apr 13, 2018, at 7:25 AM, Poliman - Serwis <[hidden email]> wrote:
> >
> > Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal:
> >   smtp_connect_addr: bad smtp_bind_address parameter:
> >   54.38.202.128,: Name or service not known
>
> That "," there looks like it does not belong.  Something's wrong with your smtp_bind_address syntax.
>
> > Apr 12 11:49:00 s1 postfix/smtp[13190]: fatal:
> >   smtp_connect_addr: bad smtp_bind_address parameter:
> >   54.38.202.128:10025,: Name or service not known
>
> Ditto.

Good job. smtp_bind_address needs an IP address, no
commas, no TCP ports.

        Wietse



--
Pozdrawiam / Best Regards
Piotr Bracha
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

/dev/rob0
On Mon, Apr 16, 2018 at 07:23:34AM +0200, Poliman - Serwis wrote:
> Yea, that's right. Unbeliveable that there is no comma. :D Now
> I have smtp_bind_address in main.cf and master.cf. :)

After being here awhile you'll get that Postfix is all about the
Principle of Least Astonishment.  Names of postconf(5) settings
suggest what will be accepted there.

In the case of an "*_address" setting, you would expect to see an
address.  For an "_address6" setting, that would take an ipv6
address.  Note also that it's in singular form, "address", as opposed
to plural, "addresses".

Commas, as described in the leading part of the postconf(5) manual,
the part on general syntax, are a form of whitespace.  Also, commas
are not part of normal ipv4 nor ipv6 address syntax.

Therefore it should be quite believable that a comma would have no
place in smtp_bind_address.
--
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Poliman - Serwis
Thank you for answer. You understand me wrong. I can't believe that I made a typo there and left comma. I know that comma is a form of whitespace. ;) But I am curious why set smtp_bind_address=X.X.X.X in master.cf like docs say didn't work in my case. I added it to main.cf then it works.

2018-04-16 16:28 GMT+02:00 /dev/rob0 <[hidden email]>:
On Mon, Apr 16, 2018 at 07:23:34AM +0200, Poliman - Serwis wrote:
> Yea, that's right. Unbeliveable that there is no comma. :D Now
> I have smtp_bind_address in main.cf and master.cf. :)

After being here awhile you'll get that Postfix is all about the
Principle of Least Astonishment.  Names of postconf(5) settings
suggest what will be accepted there.

In the case of an "*_address" setting, you would expect to see an
address.  For an "_address6" setting, that would take an ipv6
address.  Note also that it's in singular form, "address", as opposed
to plural, "addresses".

Commas, as described in the leading part of the postconf(5) manual,
the part on general syntax, are a form of whitespace.  Also, commas
are not part of normal ipv4 nor ipv6 address syntax.

Therefore it should be quite believable that a comma would have no
place in smtp_bind_address.
--
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:



--
Pozdrawiam / Best Regards
Piotr Bracha
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Wietse Venema
Poliman - Serwis:
> Thank you for answer. You understand me wrong. I can't believe that I made
> a typo there and left comma. I know that comma is a form of whitespace. ;)
> But I am curious why set smtp_bind_address=X.X.X.X in master.cf like docs
> say didn't work in my case. I added it to main.cf then it works.

Your logs say otherwise:

    Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal:
      smtp_connect_addr: bad smtp_bind_address parameter:
      54.38.202.128,: Name or service not known

Here, you specified "54.38.202.128," including the comma.

    Apr 12 11:49:00 s1 postfix/smtp[13190]: fatal:
      smtp_connect_addr: bad smtp_bind_address parameter:
      54.38.202.128:10025,: Name or service not known

Here, you specified "54.38.202.128:10025," including the
port :10025 and comma.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Poliman - Serwis
Yes, you have right but this is already fixed. In postfix's config files is clear and setting works nice. But I am curious why set smtp_bind_address=X.X.X.X in master.cf like docs say didn't work in my case. I added it to main.cf then it works.

2018-04-17 13:06 GMT+02:00 Wietse Venema <[hidden email]>:
Poliman - Serwis:
> Thank you for answer. You understand me wrong. I can't believe that I made
> a typo there and left comma. I know that comma is a form of whitespace. ;)
> But I am curious why set smtp_bind_address=X.X.X.X in master.cf like docs
> say didn't work in my case. I added it to main.cf then it works.

Your logs say otherwise:

    Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal:
      smtp_connect_addr: bad smtp_bind_address parameter:
      54.38.202.128,: Name or service not known

Here, you specified "54.38.202.128," including the comma.

    Apr 12 11:49:00 s1 postfix/smtp[13190]: fatal:
      smtp_connect_addr: bad smtp_bind_address parameter:
      54.38.202.128:10025,: Name or service not known

Here, you specified "54.38.202.128:10025," including the
port :10025 and comma.

        Wietse



--
Pozdrawiam / Best Regards
Piotr Bracha
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Matus UHLAR - fantomas
On 17.04.18 13:26, Poliman - Serwis wrote:
>Yes, you have right but this is already fixed. In postfix's config files is
>clear and setting works nice. But I am curious why set
>smtp_bind_address=X.X.X.X in master.cf like docs say didn't work in my
>case. I added it to main.cf then it works.

according to you original post, at the begin you have only set inet_interfaces in
your main.cf, not smtp_bind_address.
You have only set smtp_bind_address in master.cf, with invalid syntax.

>> Poliman - Serwis:
>> > Thank you for answer. You understand me wrong. I can't believe that I  made
>> > a typo there and left comma. I know that comma is a form of whitespace. ;)
>> > But I am curious why set smtp_bind_address=X.X.X.X in master.cf like docs
>> > say didn't work in my case. I added it to main.cf then it works.

>2018-04-17 13:06 GMT+02:00 Wietse Venema <[hidden email]>:
>> Your logs say otherwise:
>>
>>     Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal:
>>       smtp_connect_addr: bad smtp_bind_address parameter:
>>       54.38.202.128,: Name or service not known
>>
>> Here, you specified "54.38.202.128," including the comma.
>>
>>     Apr 12 11:49:00 s1 postfix/smtp[13190]: fatal:
>>       smtp_connect_addr: bad smtp_bind_address parameter:
>>       54.38.202.128:10025,: Name or service not known
>>
>> Here, you specified "54.38.202.128:10025," including the
>> port :10025 and comma.

--
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.
Eagles may soar, but weasels don't get sucked into jet engines.
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Poliman - Serwis
Now all works fine. I have to add smtp_bind_address in main.cf, because any modification of original smtp_bind_address from master.cf did not work at all (thus in logs which I put you can see combinations like this one from port and comma). Based on documentation I thought I should modify smtp_bind_address from master.cf but no.

2018-04-17 13:33 GMT+02:00 Matus UHLAR - fantomas <[hidden email]>:
On 17.04.18 13:26, Poliman - Serwis wrote:
Yes, you have right but this is already fixed. In postfix's config files is
clear and setting works nice. But I am curious why set
smtp_bind_address=X.X.X.X in master.cf like docs say didn't work in my
case. I added it to main.cf then it works.

according to you original post, at the begin you have only set inet_interfaces in
your main.cf, not smtp_bind_address.
You have only set smtp_bind_address in master.cf, with invalid syntax.


Poliman - Serwis:
> Thank you for answer. You understand me wrong. I can't believe that I  made
> a typo there and left comma. I know that comma is a form of whitespace. ;)
> But I am curious why set smtp_bind_address=X.X.X.X in master.cf like docs
> say didn't work in my case. I added it to main.cf then it works.

2018-04-17 13:06 GMT+02:00 Wietse Venema <[hidden email]>:
Your logs say otherwise:

    Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal:
      smtp_connect_addr: bad smtp_bind_address parameter:
      54.38.202.128,: Name or service not known

Here, you specified "54.38.202.128," including the comma.

    Apr 12 11:49:00 s1 postfix/smtp[13190]: fatal:
      smtp_connect_addr: bad smtp_bind_address parameter:
      54.38.202.128:10025,: Name or service not known

Here, you specified "54.38.202.128:10025," including the
port :10025 and comma.

--
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.
Eagles may soar, but weasels don't get sucked into jet engines.



--
Pozdrawiam / Best Regards
Piotr Bracha
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

/dev/rob0
On Tue, Apr 17, 2018 at 01:39:45PM +0200, Poliman - Serwis wrote:
> Now all works fine. I have to add smtp_bind_address in main.cf,
> because any modification of original smtp_bind_address from
> master.cf did not work at all (thus in logs which I put you can
> see combinations like this one from port and comma). Based on
> documentation I thought I should modify smtp_bind_address from
> master.cf but no.

You didn't show us how you did it ("postconf -Mf"), so we can't say
what was wrong about it.  My guess is that you did something wrong.
--
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Wietse Venema
In reply to this post by Poliman - Serwis
Poliman - Serwis:
> Yes, you have right but this is already fixed. In postfix's config files is
> clear and setting works nice. But I am curious why set
> smtp_bind_address=X.X.X.X in master.cf like docs say didn't work in my
> case. I added it to main.cf then it works.

There is no difference. You made a mistake when editing master.cf.

        Wietse

> 2018-04-17 13:06 GMT+02:00 Wietse Venema <[hidden email]>:
>
> > Poliman - Serwis:
> > > Thank you for answer. You understand me wrong. I can't believe that I
> > made
> > > a typo there and left comma. I know that comma is a form of whitespace.
> > ;)
> > > But I am curious why set smtp_bind_address=X.X.X.X in master.cf like
> > docs
> > > say didn't work in my case. I added it to main.cf then it works.
> >
> > Your logs say otherwise:
> >
> >     Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal:
> >       smtp_connect_addr: bad smtp_bind_address parameter:
> >       54.38.202.128,: Name or service not known
> >
> > Here, you specified "54.38.202.128," including the comma.
> >
> >     Apr 12 11:49:00 s1 postfix/smtp[13190]: fatal:
> >       smtp_connect_addr: bad smtp_bind_address parameter:
> >       54.38.202.128:10025,: Name or service not known
> >
> > Here, you specified "54.38.202.128:10025," including the
> > port :10025 and comma.
> >
> >         Wietse
> >
>
>
>
> --
>
> *Pozdrawiam / Best Regards*
> *Piotr Bracha*
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Poliman - Serwis
Now is ok but I would like to know where this setting should be set according to rules - master.cf or main.cf?

2018-04-17 16:24 GMT+02:00 Wietse Venema <[hidden email]>:
Poliman - Serwis:
> Yes, you have right but this is already fixed. In postfix's config files is
> clear and setting works nice. But I am curious why set
> smtp_bind_address=X.X.X.X in master.cf like docs say didn't work in my
> case. I added it to main.cf then it works.

There is no difference. You made a mistake when editing master.cf.

        Wietse

> 2018-04-17 13:06 GMT+02:00 Wietse Venema <[hidden email]>:
>
> > Poliman - Serwis:
> > > Thank you for answer. You understand me wrong. I can't believe that I
> > made
> > > a typo there and left comma. I know that comma is a form of whitespace.
> > ;)
> > > But I am curious why set smtp_bind_address=X.X.X.X in master.cf like
> > docs
> > > say didn't work in my case. I added it to main.cf then it works.
> >
> > Your logs say otherwise:
> >
> >     Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal:
> >       smtp_connect_addr: bad smtp_bind_address parameter:
> >       54.38.202.128,: Name or service not known
> >
> > Here, you specified "54.38.202.128," including the comma.
> >
> >     Apr 12 11:49:00 s1 postfix/smtp[13190]: fatal:
> >       smtp_connect_addr: bad smtp_bind_address parameter:
> >       54.38.202.128:10025,: Name or service not known
> >
> > Here, you specified "54.38.202.128:10025," including the
> > port :10025 and comma.
> >
> >         Wietse
> >
>
>
>
> --
>
> *Pozdrawiam / Best Regards*
> *Piotr Bracha*



--
Pozdrawiam / Best Regards
Piotr Bracha
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Wietse Venema
Poliman - Serwis:
> Now is ok but I would like to know where this setting should be set
> according to rules - master.cf or main.cf?

smtp_bind_address, smtp_bind_address6

In main.cf if this setting applies to the majority of SMTP clients.

In master.cf if this setting applies to a minority of SMTP clients.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: problem with sending emails from second IP'

Poliman - Serwis
Thank you for answer. How to detect that some is major or minor smtp client?

2018-04-18 12:57 GMT+02:00 Wietse Venema <[hidden email]>:
Poliman - Serwis:
> Now is ok but I would like to know where this setting should be set
> according to rules - master.cf or main.cf?

smtp_bind_address, smtp_bind_address6

In main.cf if this setting applies to the majority of SMTP clients.

In master.cf if this setting applies to a minority of SMTP clients.

        Wietse



--
Pozdrawiam / Best Regards
Piotr Bracha
12