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:0 Link 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 lo Link 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 <wie...@porcupine.org>: > 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*