Hello, port 25 cannot be modified. Only port 25 can be used to communicate between mail servers and send emails.
It is recommended that you check the reason for the spam email.
Sending to gmail needs to configure SSL, do DKIM, SPF, it is best to let the network provider make the PTR RDNS record of ip
aaP_alucardhanafi21