Hello, please check the logs in the mail server to check what is causing the problem.
Check the mail score and troubleshoot according to its error message
https://www.mail-tester.com/
Check blacklists
https://mxtoolbox.com/
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
useradmin