I have disabled the send connector that I have created after that. now I am able to send email outside organization but I have issue sending email to gmail because I am getting following error,
Error:- mx.google.com rejected your message to the following email addresses:
mytestemail@Stuff .com (mytestemail@Stuff .com)
Your message wasn't delivered because the recipient's email provider rejected it.
mx.google.com gave this error:
This message fails to pass SPF checks for an SPF record with a hard fail policy (-all). To best protect our users from spam and phishing, the message has been blocked. Please visit https://support.google.com/mail/answer/81126#authentication for more information. n13-2002ds5d598d000000b0021b8bbc9c7csi6481689wri.876 - gsmtp
Diagnostic information for administrators:
Generating server: edgeserver-EG01.mail.mydomain.com.us
mytestemail@Stuff .com
mx.google.com
Remote Server returned '550-5.7.26 This message fails to pass SPF checks for an SPF record with a hard 550-5.7.26 fail policy (-all). To best protect our users from spam and 550-5.7.26 phishing, the message has been blocked. Please visit 550-5.7.26 https://support.google.com/mail/answer/81126#authentication for more 550 5.7.26 information. n13-20020a5d598d000000b0021b8bbc9c7csi6481689wri.876 - gsmtp'
Original message headers:
Received: from exchangeserver01.mydomain.local (192.168.x.xx) by mail.mydomain.com
(192.168.edge.edge) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.7; Mon, 27 Jun
2022 15:36:07 +0300
Received: from exchangeserver02.mydomain.local (192.168.x.xx) byexchangeserver02.mydomain.local
(192.168.) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.7; Mon, 27 Jun
2022 15:36:17 +0300
Received: from exchangeserver02.mydomain.locall ([::1]) by exchangeserver02.mydomain.local
([fe80::9935:35c7:be72:7ad2%14]) with mapi id 15.02.1118.007; Mon, 27 Jun
2022 15:36:17 +0300
------------------------------------------------------------------------------
and also I cannot receive email from outside organization