How to change mail server IP

Hi, I have several ips added to my server and I want to change my mail server IP.

I have tried the following:

1- Change server ip /etc/cyberpanel/machineIP
2- Change the mail.mydomain.com IP in the dns settings
3- I have also tried to change the smtp server of the domain and the smtp server of the cyberpanel.

But still the IP that is sending e-mails is the same.

How can I change my servermail ip?

Thanks for your help and greetings

Greetings, did you find any solution to this?