DevHeads.net

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
<a href="mailto: ... at biodermagame dot pl"> ... at biodermagame dot pl</a> to gmail account:

spf=softfail (google.com: domain of transitioning <a href="mailto: ... at biodermagame dot pl"> ... at biodermagame dot pl</a>
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.

Comments

Re: problem with sending emails from second IP

By Wietse Venema at 04/12/2018 - 06:56

Please define "not working".

Wietse

Re: problem with sending emails from second IP

By Poliman - Serwis at 04/12/2018 - 06:38

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 < ... at poliman dot pl>:

Re: problem with sending emails from second IP

By ahsan2011 at 04/12/2018 - 06:56

Which Is your failover IP , you need to have that information in SPF
record as well.

Ahsan