Re: problem with sending emails from second IP'
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 : > 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*
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? 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
Re: problem with sending emails from second IP'
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 : > 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 : > > > > > 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*
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. There is no difference. You made a mistake when editing master.cf. Wietse > 2018-04-17 13:06 GMT+02:00 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 > > > > > > -- > > *Pozdrawiam / Best Regards* > *Piotr Bracha*
Re: problem with sending emails from second IP'
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:
Re: problem with sending emails from second IP'
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 : > 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 : >> >>> 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, uh...@fantomas.sk ; 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*
Re: problem with sending emails from second IP'
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 : 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, uh...@fantomas.sk ; 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.
Re: problem with sending emails from second IP'
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 : > 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*
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. 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
Re: problem with sending emails from second IP'
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 : > 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*
Re: problem with sending emails from second IP'
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:
Re: problem with sending emails from second IP'
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 : > Viktor Dukhovni: > > > > > > > On Apr 13, 2018, at 7:25 AM, Poliman - Serwis > 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*
Re: problem with sending emails from second IP'
Viktor Dukhovni: > > > > On Apr 13, 2018, at 7:25 AM, Poliman - Serwis 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
Re: problem with sending emails from second IP'
> On Apr 13, 2018, at 7:25 AM, Poliman - Serwis 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. -- Viktor.
Re: problem with sending emails from second IP'
Thank you for answer. About 1st: root@s1:/tmp/roundcubemail-1.3.6# ifconfig ens3 Link encap:Ethernet HWaddr fa:16:3e:21:c7:80 inet addr:145.239.29.218 Bcast:145.239.29.218 Mask:255.255.255.255 inet6 addr: fe80::f816:3eff:fe21:c780/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6751087 errors:0 dropped:0 overruns:0 frame:0 TX packets:6952810 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1144198503 (1.1 GB) TX bytes:14201583464 (14.2 GB) ens3:0Link encap:Ethernet HWaddr fa:16:3e:21:c7:80 inet addr:54.38.202.128 Bcast:54.38.202.128 Mask:255.255.255.255 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:79544422 errors:0 dropped:0 overruns:0 frame:0 TX packets:79544422 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:69690489045 (69.6 GB) TX bytes:69690489045 (69.6 GB) I have changes dns for the hostname of the server: reverse and a records in dns and modify /etc/hosts file. I can ping anything using this interface: root@s1:/usr/share/roundcube/config# ping -I 54.38.202.128 google.com PING google.com (172.217.18.206) from 54.38.202.128 : 56(84) bytes of data. 64 bytes from par10s38-in-f14.1e100.net (172.217.18.206): icmp_seq=1 ttl=49 time=28.8 ms 64 bytes from par10s38-in-f14.1e100.net (172.217.18.206): icmp_seq=2 ttl=49 time=28.8 ms 64 bytes from par10s38-in-f14.1e100.net (172.217.18.206): icmp_seq=3 ttl=49 time=28.8 ms ^C --- google.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 28.819/28.820/28.823/0.196 ms About 2nd: For Postfix I have added in main.cf the line smtp_bind_address like below: inet_interfaces = all smtp_bind_address = 54.38.202.128 inet_protocols = all In master.cf I tried add above line but it didn't work or I did something wrong. In my case - Postfix 3.1.0 - part with smtp_bind_address (which is there by default) looks like below: amavis unix - - y - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes * -o smtp_bind_address=* 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes 127.0.0.1:10027 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks -o smtp_send_xforward_command=yes -o milter_default_action=accept -o milter_macro_daemon_name=ORIGINATING -o disable_dns_lookups=yes I tried add after equal sign the ip address: * -o smtp_bind_address=54.38.202.128 * but without success, so I decided to try in main.cf. 2018-04-13 15:37 GMT+02:00 Wietse Venema : > Poliman - Serwis: > > Strange thing. Google says "spf=pass", mailing works but in mail.err > file I > > have: > > > > 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 > > 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 > > > > > > As I mentioned in earlier message I set smtp_bind_address = 54.38.202.128 > > in /etc/postfix/main.cf. > > 1) You need to 'ifconfig' 54.38.202.128 on your network interface, > otherwise how would your network stack know how to deliver packets > for that IP address? > > 2) You made a mistake when setting the IP address in master.cf, but > you failed to show us what you did, so no-one can help with that. > > Wietse > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
Re: problem with sending emails from second IP'
Poliman - Serwis: > Strange thing. Google says "spf=pass", mailing works but in mail.err file I > have: > > 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 > 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 > > > As I mentioned in earlier message I set smtp_bind_address = 54.38.202.128 > in /etc/postfix/main.cf. 1) You need to 'ifconfig' 54.38.202.128 on your network interface, otherwise how would your network stack know how to deliver packets for that IP address? 2) You made a mistake when setting the IP address in master.cf, but you failed to show us what you did, so no-one can help with that. Wietse
Re: problem with sending emails from second IP'
Strange thing. Google says "spf=pass", mailing works but in mail.err file I have: 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 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 As I mentioned in earlier message I set smtp_bind_address = 54.38.202.128 in /etc/postfix/main.cf. 2018-04-12 16:29 GMT+02:00 Wietse Venema : > 2018-04-12 15:39 GMT+02:00 Wietse Venema : > > > 2018-04-12 12:56 GMT+02:00 Wietse Venema : > > > Please define "not working". > > > > Poliman - Serwis: > > > main ip - 145.239.29.218 > > > failover ip - 54.38.202.128 > > > Not working means mails do not outbound. This same as for line > > > inet_interfaces = 54.38.202.128. > > > > As documented in http://www.postfix.org/postconf.5.html#inet_interfaces, > > on a multi-homed host DO NOT restrict inet_interfaces, instead: > > - specify the server IP address in master.cf. > > - specify the client IP address with smtp_bind_address. > > > > No further support without error messages. > > Poliman - Serwis: > > Thank you for answer. In logs I have this same line which I pasted. I can > > Please do not ask me to go read the whole thread. > > What is the POSTFIX error message for the configuration cited above? > > How does POSTFIX know that it should send mail from the main IP address? > > How does POSTFIX know that it should send mail from the failover IP > address? > > Wietse > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
Re: problem with sending emails from second IP'
Thank you and appreciate your help and disposition to investigate the problem. ;) 2018-04-13 7:18 GMT+02:00 Poliman - Serwis : > Here is this line from message header and from log file: > > spf=softfail (google.com: domain of transitioning i...@biodermagame.pl does > not designate 145.239.29.218 as permitted sender) > > > I fixed this problem. Below is needed result: > > spf=pass (google.com: domain of i...@biodermagame.pl designates 54.38.202.128 > as permitted sender) smtp.mailfrom=i...@biodermagame.pl > > In /etc/postfix/main.cf configured (fixed version): > inet_interfaces = all > smtp_bind_address = ip_failover //added this line, I tried in master.cf > but did not work > > 2018-04-12 16:29 GMT+02:00 Wietse Venema : > >> 2018-04-12 15:39 GMT+02:00 Wietse Venema : >> >> > 2018-04-12 12:56 GMT+02:00 Wietse Venema : >> > > Please define "not working". >> > >> > Poliman - Serwis: >> > > main ip - 145.239.29.218 >> > > failover ip - 54.38.202.128 >> > > Not working means mails do not outbound. This same as for line >> > > inet_interfaces = 54.38.202.128. >> > >> > As documented in http://www.postfix.org/postconf.5.html#inet_interfaces >> , >> > on a multi-homed host DO NOT restrict inet_interfaces, instead: >> > - specify the server IP address in master.cf. >> > - specify the client IP address with smtp_bind_address. >> > >> > No further support without error messages. >> >> Poliman - Serwis: >> > Thank you for answer. In logs I have this same line which I pasted. I >> can >> >> Please do not ask me to go read the whole thread. >> >> What is the POSTFIX error message for the configuration cited above? >> >> How does POSTFIX know that it should send mail from the main IP address? >> >> How does POSTFIX know that it should send mail from the failover IP >> address? >> >> Wietse >> > > > > -- > > *Pozdrawiam / Best Regards* > *Piotr Bracha* > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
Re: problem with sending emails from second IP'
Here is this line from message header and from log file: spf=softfail (google.com: domain of transitioning i...@biodermagame.pl does not designate 145.239.29.218 as permitted sender) I fixed this problem. Below is needed result: spf=pass (google.com: domain of i...@biodermagame.pl designates 54.38.202.128 as permitted sender) smtp.mailfrom=i...@biodermagame.pl In /etc/postfix/main.cf configured (fixed version): inet_interfaces = all smtp_bind_address = ip_failover //added this line, I tried in master.cf but did not work 2018-04-12 16:29 GMT+02:00 Wietse Venema : > 2018-04-12 15:39 GMT+02:00 Wietse Venema : > > > 2018-04-12 12:56 GMT+02:00 Wietse Venema : > > > Please define "not working". > > > > Poliman - Serwis: > > > main ip - 145.239.29.218 > > > failover ip - 54.38.202.128 > > > Not working means mails do not outbound. This same as for line > > > inet_interfaces = 54.38.202.128. > > > > As documented in http://www.postfix.org/postconf.5.html#inet_interfaces, > > on a multi-homed host DO NOT restrict inet_interfaces, instead: > > - specify the server IP address in master.cf. > > - specify the client IP address with smtp_bind_address. > > > > No further support without error messages. > > Poliman - Serwis: > > Thank you for answer. In logs I have this same line which I pasted. I can > > Please do not ask me to go read the whole thread. > > What is the POSTFIX error message for the configuration cited above? > > How does POSTFIX know that it should send mail from the main IP address? > > How does POSTFIX know that it should send mail from the failover IP > address? > > Wietse > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
Re: problem with sending emails from second IP
I have two interfaces: main ip - 145.239.29.218 failover ip - 54.38.202.128 Main is in class 145.239.29.0/24 which is regularly banned on blacklists. This particular address is clear but not class and I get hit by ricochet. I want send emails only from failover, because of listing main ip. 2018-04-12 16:18 GMT+02:00 Matus UHLAR - fantomas : > On 12.04.18 14:33, Poliman - Serwis wrote: > >> Unfortunately it isn't. In domain dns zone is record with added address ip >> failover: >> v=spf1 mx a ip4:54.38.202.128 ~all >> This is secondary - failover - IP. Main IP is 145.239.29.218. And postfix >> still reads main IP. I need postfix read ip failover. >> > > what do you mean "ip failover"? > Do you want to re-send every ougoing message from your failover IP when it > gets rejected on primary IP? > > -- > Matus UHLAR - fantomas, uh...@fantomas.sk ; 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. > "They say when you play that M$ CD backward you can hear satanic messages." > "That's nothing. If you play it forward it will install Windows." > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
Re: problem with sending emails from second IP'
2018-04-12 15:39 GMT+02:00 Wietse Venema : > 2018-04-12 12:56 GMT+02:00 Wietse Venema : > > Please define "not working". > > Poliman - Serwis: > > main ip - 145.239.29.218 > > failover ip - 54.38.202.128 > > Not working means mails do not outbound. This same as for line > > inet_interfaces = 54.38.202.128. > > As documented in http://www.postfix.org/postconf.5.html#inet_interfaces, > on a multi-homed host DO NOT restrict inet_interfaces, instead: > - specify the server IP address in master.cf. > - specify the client IP address with smtp_bind_address. > > No further support without error messages. Poliman - Serwis: > Thank you for answer. In logs I have this same line which I pasted. I can Please do not ask me to go read the whole thread. What is the POSTFIX error message for the configuration cited above? How does POSTFIX know that it should send mail from the main IP address? How does POSTFIX know that it should send mail from the failover IP address? Wietse
Re: problem with sending emails from second IP
On 12.04.18 14:33, Poliman - Serwis wrote: Unfortunately it isn't. In domain dns zone is record with added address ip failover: v=spf1 mx a ip4:54.38.202.128 ~all This is secondary - failover - IP. Main IP is 145.239.29.218. And postfix still reads main IP. I need postfix read ip failover. what do you mean "ip failover"? Do you want to re-send every ougoing message from your failover IP when it gets rejected on primary IP? -- Matus UHLAR - fantomas, uh...@fantomas.sk ; 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. "They say when you play that M$ CD backward you can hear satanic messages." "That's nothing. If you play it forward it will install Windows."
Re: problem with sending emails from second IP'
Thank you for answer. In logs I have this same line which I pasted. I can attach log file but probably this won't help anybody. ;) What attribute should be used to specify the server IP address in master.cf? 2018-04-12 15:39 GMT+02:00 Wietse Venema : > 2018-04-12 12:56 GMT+02:00 Wietse Venema : > > Please define "not working". > > Poliman - Serwis: > > main ip - 145.239.29.218 > > failover ip - 54.38.202.128 > > Not working means mails do not outbound. This same as for line > > inet_interfaces = 54.38.202.128. > > As documented in http://www.postfix.org/postconf.5.html#inet_interfaces, > on a multi-homed host DO NOT restrict inet_interfaces, instead: > - specify the server IP address in master.cf. > - specify the client IP address with smtp_bind_address. > > No further support without error messages. > > Wietse > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
Re: problem with sending emails from second IP'
2018-04-12 12:56 GMT+02:00 Wietse Venema : > Please define "not working". Poliman - Serwis: > main ip - 145.239.29.218 > failover ip - 54.38.202.128 > Not working means mails do not outbound. This same as for line > inet_interfaces = 54.38.202.128. As documented in http://www.postfix.org/postconf.5.html#inet_interfaces, on a multi-homed host DO NOT restrict inet_interfaces, instead: - specify the server IP address in master.cf. - specify the client IP address with smtp_bind_address. No further support without error messages. Wietse
Re: problem with sending emails from second IP
I fixed this annoying problem guys: spf=pass (google.com: domain of i...@biodermagame.pl designates 54.38.202.128 as permitted sender) smtp.mailfrom=i...@biodermagame.pl What I've done? In /etc/postfix/ configured: inet_interfaces = ip_failover, 127.0.0.1 smtp_bind_address = ip_failover With spaces around '=' and on left side address 127.0.0.1 2018-04-12 14:33 GMT+02:00 Poliman - Serwis : > Unfortunately it isn't. In domain dns zone is record with added address ip > failover: > v=spf1 mx a ip4:54.38.202.128 ~all > This is secondary - failover - IP. Main IP is 145.239.29.218. And postfix > still reads main IP. I need postfix read ip failover. > > 2018-04-12 14:29 GMT+02:00 Durga Prasad Malyala : > >> Hi, >> This is an SPF error actually. Pls check your SPF TXT record. >> >> Rgds/DP >> >> Sent from my iPhone. Pls excuse brevity and typos if any. >> >> On 12-Apr-2018, at 4:44 PM, Poliman - Serwis wrote: >> >> Of course afteer each changes in settings I did service postfix restart >> and it gone well each time. I use roundcube and I log into this mailbox - >> i...@biodermagame.pl - and try send email to gmail account. Looks like >> email is sent but it does not come to gmail account. On default postfix >> settings I have message mentioned in first post: >> >> spf=softfail (google.com: domain of transitioning i...@biodermagame.pl does >> not designate 145.239.29.218 as permitted sender) >> >> but mails reach the gmail account due to softfail. >> >> 2018-04-12 13:11 GMT+02:00 Poliman - Serwis : >> >>> main ip - 145.239.29.218 >>> failover ip - 54.38.202.128 >>> Not working means mails do not outbound. This same as for line >>> inet_interfaces = 54.38.202.128. >>> >>> 2018-04-12 12:56 GMT+02:00 Wietse Venema : >>> Please define "not working". Wietse >>> >>> >>> >>> -- >>> >>> *Pozdrawiam / Best Regards* >>> *Piotr Bracha* >>> >> >> >> >> -- >> >> *Pozdrawiam / Best Regards* >> *Piotr Bracha* >> >> > > > -- > > *Pozdrawiam / Best Regards* > *Piotr Bracha* > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
Re: problem with sending emails from second IP
Unfortunately it isn't. In domain dns zone is record with added address ip failover: v=spf1 mx a ip4:54.38.202.128 ~all This is secondary - failover - IP. Main IP is 145.239.29.218. And postfix still reads main IP. I need postfix read ip failover. 2018-04-12 14:29 GMT+02:00 Durga Prasad Malyala : > Hi, > This is an SPF error actually. Pls check your SPF TXT record. > > Rgds/DP > > Sent from my iPhone. Pls excuse brevity and typos if any. > > On 12-Apr-2018, at 4:44 PM, Poliman - Serwis wrote: > > Of course afteer each changes in settings I did service postfix restart > and it gone well each time. I use roundcube and I log into this mailbox - > i...@biodermagame.pl - and try send email to gmail account. Looks like > email is sent but it does not come to gmail account. On default postfix > settings I have message mentioned in first post: > > spf=softfail (google.com: domain of transitioning i...@biodermagame.pl does > not designate 145.239.29.218 as permitted sender) > > but mails reach the gmail account due to softfail. > > 2018-04-12 13:11 GMT+02:00 Poliman - Serwis : > >> main ip - 145.239.29.218 >> failover ip - 54.38.202.128 >> Not working means mails do not outbound. This same as for line >> inet_interfaces = 54.38.202.128. >> >> 2018-04-12 12:56 GMT+02:00 Wietse Venema : >> >>> Please define "not working". >>> >>> Wietse >>> >> >> >> >> -- >> >> *Pozdrawiam / Best Regards* >> *Piotr Bracha* >> > > > > -- > > *Pozdrawiam / Best Regards* > *Piotr Bracha* > > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
Re: problem with sending emails from second IP
Hi, This is an SPF error actually. Pls check your SPF TXT record. Rgds/DP Sent from my iPhone. Pls excuse brevity and typos if any. > On 12-Apr-2018, at 4:44 PM, Poliman - Serwis wrote: > > Of course afteer each changes in settings I did service postfix restart and > it gone well each time. I use roundcube and I log into this mailbox - > i...@biodermagame.pl - and try send email to gmail account. Looks like email > is sent but it does not come to gmail account. On default postfix settings I > have message mentioned in first post: > spf=softfail (google.com: domain of transitioning i...@biodermagame.pl does > not designate 145.239.29.218 as permitted sender) > but mails reach the gmail account due to softfail. > > 2018-04-12 13:11 GMT+02:00 Poliman - Serwis : >> main ip - 145.239.29.218 >> failover ip - 54.38.202.128 >> Not working means mails do not outbound. This same as for line >> inet_interfaces = 54.38.202.128. >> >> 2018-04-12 12:56 GMT+02:00 Wietse Venema : >>> Please define "not working". >>> >>> Wietse >> >> >> >> -- >> Pozdrawiam / Best Regards >> Piotr Bracha > > > > -- > Pozdrawiam / Best Regards > Piotr Bracha
Re: problem with sending emails from second IP
Of course afteer each changes in settings I did service postfix restart and it gone well each time. I use roundcube and I log into this mailbox - i...@biodermagame.pl - and try send email to gmail account. Looks like email is sent but it does not come to gmail account. On default postfix settings I have message mentioned in first post: spf=softfail (google.com: domain of transitioning i...@biodermagame.pl does not designate 145.239.29.218 as permitted sender) but mails reach the gmail account due to softfail. 2018-04-12 13:11 GMT+02:00 Poliman - Serwis : > main ip - 145.239.29.218 > failover ip - 54.38.202.128 > Not working means mails do not outbound. This same as for line > inet_interfaces = 54.38.202.128. > > 2018-04-12 12:56 GMT+02:00 Wietse Venema : > >> Please define "not working". >> >> Wietse >> > > > > -- > > *Pozdrawiam / Best Regards* > *Piotr Bracha* > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
Re: problem with sending emails from second IP
main ip - 145.239.29.218 failover ip - 54.38.202.128 Not working means mails do not outbound. This same as for line inet_interfaces = 54.38.202.128. 2018-04-12 12:56 GMT+02:00 Wietse Venema : > Please define "not working". > > Wietse > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
Re: problem with sending emails from second IP
Please define "not working". Wietse
Re: problem with sending emails from second IP
Which Is your failover IP , you need to have that information in SPF record as well. Ahsan On Thu, 12 Apr 2018 at 4:08 PM, Poliman - Serwis wrote: > One more information: > OVH is my registrar. There is set reverse for both addresses points to > s1.poliman.net. In this case I am not sure it's important. > > 2018-04-12 12:05 GMT+02:00 Poliman - Serwis : > >> I have ovh public cloud server. There is main IP 145.239.29.218 which >> belongs to class 145.239.29.0/24 which regularly get listed on >> blacklists. So I bought failover IP and configured it on server in >> /etc/hosts, dns zone for biodermagame.pl I set spf record (each dns >> record points to this new ip): >> v=spf1 mx a ip4:54.38.202.128 ~all >> >> Earlier was this ip 145.239.29.218 configured in spf record.All the same >> I have a problem with below message when I send email from >> i...@biodermagame.pl to gmail account: >> >> spf=softfail (google.com: domain of transitioning i...@biodermagame.pl does >> not designate 145.239.29.218 as permitted sender) >> >> >> I tried change in /etc/postfix/main.cf: >> inet_interfaces = 54.38.202.128 --> mails do not outbound >> inet_interfaces = 54.38.202.128, 127.0.0.1 --> mails works but still >> error message from google posted above >> >> After this I tried change in /etc/postfix/master.cf: >> -o smtp_bind_address=127.0.0.1:10025 inet n - n - - smtpd //this is >> default >> -o smtp_bind_address= 54.38.202.128,127.0.0.1:10025 inet n - n - - smtpd >> --> not working >> -o smtp_bind_address= 54.38.202.128:10025,127.0.0.1:10025 inet n - n - - >> smtpd --> also not working >> >> What I should do to provide sending emails using IP failover. I have >> Postfix 3.1.0. >> >> -- >> >> *Pozdrawiam / Best Regards* >> *Piotr Bracha* >> > > > > -- > > *Pozdrawiam / Best Regards* > *Piotr Bracha* > -- Regards Ahsan
Re: problem with sending emails from second IP
One more information: OVH is my registrar. There is set reverse for both addresses points to s1.poliman.net. In this case I am not sure it's important. 2018-04-12 12:05 GMT+02:00 Poliman - Serwis : > I have ovh public cloud server. There is main IP 145.239.29.218 which > belongs to class 145.239.29.0/24 which regularly get listed on > blacklists. So I bought failover IP and configured it on server in > /etc/hosts, dns zone for biodermagame.pl I set spf record (each dns > record points to this new ip): > v=spf1 mx a ip4:54.38.202.128 ~all > > Earlier was this ip 145.239.29.218 configured in spf record.All the same > I have a problem with below message when I send email from > i...@biodermagame.pl to gmail account: > > spf=softfail (google.com: domain of transitioning i...@biodermagame.pl does > not designate 145.239.29.218 as permitted sender) > > > I tried change in /etc/postfix/main.cf: > inet_interfaces = 54.38.202.128 --> mails do not outbound > inet_interfaces = 54.38.202.128, 127.0.0.1 --> mails works but still error > message from google posted above > > After this I tried change in /etc/postfix/master.cf: > -o smtp_bind_address=127.0.0.1:10025 inet n - n - - smtpd //this is > default > -o smtp_bind_address= 54.38.202.128,127.0.0.1:10025 inet n - n - - smtpd > --> not working > -o smtp_bind_address= 54.38.202.128:10025,127.0.0.1:10025 inet n - n - - > smtpd --> also not working > > What I should do to provide sending emails using IP failover. I have > Postfix 3.1.0. > > -- > > *Pozdrawiam / Best Regards* > *Piotr Bracha* > -- *Pozdrawiam / Best Regards* *Piotr Bracha*
problem with sending emails from second IP
I have ovh public cloud server. There is main IP 145.239.29.218 which belongs to class 145.239.29.0/24 which regularly get listed on blacklists. So I bought failover IP and configured it on server in /etc/hosts, dns zone for biodermagame.pl I set spf record (each dns record points to this new ip): v=spf1 mx a ip4:54.38.202.128 ~all Earlier was this ip 145.239.29.218 configured in spf record.All the same I have a problem with below message when I send email from i...@biodermagame.pl to gmail account: spf=softfail (google.com: domain of transitioning i...@biodermagame.pl does not designate 145.239.29.218 as permitted sender) I tried change in /etc/postfix/main.cf: inet_interfaces = 54.38.202.128 --> mails do not outbound inet_interfaces = 54.38.202.128, 127.0.0.1 --> mails works but still error message from google posted above After this I tried change in /etc/postfix/master.cf: -o smtp_bind_address=127.0.0.1:10025 inet n - n - - smtpd //this is default -o smtp_bind_address= 54.38.202.128,127.0.0.1:10025 inet n - n - - smtpd --> not working -o smtp_bind_address= 54.38.202.128:10025,127.0.0.1:10025 inet n - n - - smtpd --> also not working What I should do to provide sending emails using IP failover. I have Postfix 3.1.0. -- *Pozdrawiam / Best Regards* *Piotr Bracha*