CDOSYS not working when sending to any gmail address

I have this code to send cdosys using windows server:

<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<META http-equiv="Pragma" CONTENT="no-cache">




<title>Message sent</title>
<style type="text/css">
<!--
.BotonExit2 {
	color: #FFFFFF;
	background-color: #FF0000;
}
-->
</style>
</head>

<body> 

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> 
<%
DIM strEmail
strEmail = Request.Form("Email")
IF strEmail <> "" AND inStr(strEmail,"@") <> 0 AND inStr(strEmail,".") <> 0 THEN



'First lets Dim all the variables we need

Dim emailfromr 

Dim email

Dim name

Dim message

Dim company

Dim telephone

Dim address1

Dim city

Dim state

Dim zip

Dim users

Dim app_name

Dim decision_time

Dim OS

Dim bandwidth

Dim DedicatedFirewall

Dim TapeBackup

Dim special_details

Dim MyBody

Dim MyMail

Dim MyEmail

Dim SmtpMail

Dim racecn

Dim cn
 

'Now lets get some values for the variables from the form

smtpserver = "127.0.0.1"

youremail = "myemailto@gmail.com"

yourpassword = "ADDYOURPASSWORD"

email = Request.Form("email")

emailfromr = "info@ourcompany.com"

If email = "" then email ="Invalid Mail"

name = Request.Form("name")

message = Request.Form("message")

company = Request.Form("company")

telephone = Request.Form("telephone")

address = Request.Form("address")

city = Request.Form("city")

state = Request.Form("state")

zip = Request.Form("zip")

users = Request.Form("users")

app_name = Request.Form("app_name")

decision_time = Request.Form("decision_time")

OS = Request.Form("OS")

bandwidth = Request.Form("bandwidth")

DedicatedFirewall = Request.Form("DedicatedFirewall")

TapeBackup = Request.Form("TapeBackup")

special_details = Request.Form("special_details")

cn = Request.QueryString("cn")

 

'Now lets build the body of the email from the data in the form

MyBody = "<p><font face=Arial size=2>" & Chr(13) & vbcrlf

MyBody = MyBody & "Ñame who sent: "& Name & Chr(13) & vbcrlf & "<br>"

MyBody = MyBody & "Email who sent: "& email & vbcrlf & "<br>"

MyBody = MyBody & "Message: "& message & vbcrlf & "<br>"

'Now lets put the variables and other information we need into the mailing script 

TitleRace = "Question "

Dim ObjSendMail

Set ObjSendMail = CreateObject("CDO.Message") 

   

'This section provides the configuration information for the remote SMTP server.

   

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1 'Send the message using the network (SMTP over the network).

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "c:\inetpub\mailroot\pickup"

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpserver

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

   

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = youremail

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = yourpassword

   

ObjSendMail.Configuration.Fields.Update

   

'End remote SMTP server configuration section==

   

ObjSendMail.To = youremail

ObjSendMail.Subject = TitleRace
ObjSendMail.From = emailfromr

   

' we are sending a html email.. simply switch the comments around to send a text email instead

ObjSendMail.HTMLBody = MyBody

'ObjSendMail.TextBody = MyBody no

   

ObjSendMail.Send

   

Set ObjSendMail = Nothing 
%>
 <font face=Arial color=#878787 size=2>We will answer soon.
<br>
<br><br>

<font color=#58D1F0>

<% =Replace(MyBody,vbCr,"<font face=Arial size=2>") %>

</font>

 
<br><br>

<input name="Click Here to Exit or Close this Window" type="hidden" class="BotonExit2" onClick="history.go(-1)" value="Sent other message">
<% ELSE
Response.Write "<p><font face=Arial color=#878787 size=2>Invalid mail.</font></b></p>"

IF strEmail <> "" THEN
ELSE
Response.Write ""
END IF
IF inStr(strEmail,"@") <> 0 THEN
ELSE
Response.Write ""
END IF
IF inStr(strEmail,".") <> 0 THEN
ELSE
Response.Write ""
END IF
%>

<input type="image" src="downcdo.jpg" onmouseover="this.src='downcdoover.jpg'" onmouseout="this.src='downcdo.jpg'" onClick="history.go(-1)" value="Press here to fix" name="Click Here to Back and fill the Form again" />

<%
END IF 
%>

</body>
</html> 

Open in new window


The script works perfect to any email, the only problem is when, like the example of above, in the TO put any gmail address. Not send to gmail addresses. What could be the problem of why is not sending to any gmail address?

Thank you
Alex E.Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
Looking at the IIS SMTP service logs will tell you whether Google, Gmail is rejecting your connections and why.

For mail server trouble shooting, looking at the logs and the interactions ..
Run nslookup -q=txt yourdomainname
The above is to see if you have SPF or DomainKeys setup on the sender domain, if you do, Gmail might reject the message if the source is not authorized by those records.

On the system, run nslookup -q=MX gmail.com

You would need to use a tool that can initiate an SMTP session to one of the servers reported in the nslookup response.
Use an SMTP session
Ehlo your_system
mail from: youremailaddress
Rcpt to: someuser@gmail.com
Data
From: youremailaddress
To:  someuser@gmail.com
Subject: test

This is a test
.

Once you place the period (.) on its own live, you will receive a response from the server. Note you might get denied at any time prior to this point that their servers see you/your system..
0
Alex E.Author Commented:
Well in the problem is that the email server we have on godaddy and on other server (not in godaddy and where is the domain and when the email is sent) via smpt virtual server in relay we add the “dedrelay.secureserver.net” and the ip of godaddy email server. On godaddy email server we added in connections of smpt virtual server the permission for the ip of the other server.

Now I tried to go to the logs of smpt on both servers and there is nothing about the gmail sendings other mails not gmail appears in logs.

I made file text like this:

to: anyemail@gmail.com
from: otheremail@hotmail.com
subject:This is a test.

This is a final test

.

I copied that to pickup folder and not send the email of course, not appear in logs like I mentioned. The only thing I receive on the from mail the rejection:

postmaster@FQDN
Today, 6:03 PM anyemail@gmail.com
This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

       anyemail@gmail.com

In the source code of the email. I have:

Received: from VE1EUR01HT176.eop-EUR01.prod.protection.outlook.com
 (2603:10a6:208::29) by AM0PR0102MB3156.eurprd01.prod.exchangelabs.com with
 HTTPS via AM0PR0102CA0052.EURPRD01.PROD.EXCHANGELABS.COM; Sat, 14 Apr 2018
 23:03:16 +0000
Received: from VE1EUR01FT044.eop-EUR01.prod.protection.outlook.com
 (10.152.2.52) by VE1EUR01HT176.eop-EUR01.prod.protection.outlook.com
 (10.152.2.190) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.653.8; Sat, 14
 Apr 2018 23:03:16 +0000
Authentication-Results: spf=none (sender IP is IP of the sender server)
 smtp.helo=FQDN; hotmail.com; dkim=none (message
 not signed) header.d=none;hotmail.com; dmarc=none action=none
 header.from=14933-71078.masterbrain.shadaimc;
Received-SPF: None (protection.outlook.com: FQDM
 does not designate permitted sender hosts)
Received: from FQDM (IP is IP of the sender server) by
 VE1EUR01FT044.mail.protection.outlook.com (10.152.3.137) with Microsoft SMTP
 Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id
 15.20.653.8 via Frontend Transport; Sat, 14 Apr 2018 23:03:15 +0000
X-IncomingTopHeaderMarker: OriginalChecksum:ADFCFE54DF8895A77BB84E4B75501462FB4F929B1799367899854EBAF3AC07CA;UpperCasedChecksum:455671374C86E109F326ED4F94903DC996FE928AB66E000CA9287E7329A160C8;SizeAsReceived:433;Count:8
From: <postmaster@FQDN>
To: <otheremail@hotmail.com>
Date: Sat, 14 Apr 2018 17:55:35 -0500
Content-Type: multipart/report; report-type=delivery-status;
	boundary="9B095B5ADSN=_01D3D443A07103DB0000000114933?71078.mast"
X-DSNContext: 7ce717b1 - 1196 - 00000002 - 00000000
Message-ID: <FRaqbC8wS00000001@14933-71078.masterbrain.shadaimc>
Subject: Delivery Status Notification (Failure)
X-IncomingHeaderCount: 8
Return-Path: <>
X-MS-Exchange-Organization-ExpirationStartTime: 14 Apr 2018 23:03:15.9599
 (UTC)
X-MS-Exchange-Organization-ExpirationStartTimeReason: Original Submit
X-MS-Exchange-Organization-ExpirationInterval: 2:00:00:00.0000000
X-MS-Exchange-Organization-ExpirationIntervalReason: Original Submit
X-MS-Exchange-Organization-Network-Message-Id: a8b60c57-1939-4c64-35e4-08d5a25be7ed
X-EOPAttributedMessage: 0
X-EOPTenantAttributedMessage: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa:0
X-MS-Exchange-Organization-MessageDirectionality: Incoming
X-Microsoft-Exchange-Diagnostics: 1;VE1EUR01FT044;1:WxI45MxWoAguxkQBsH13vX1wa3pV3DR/gWBTP3tNKCgUxUBNGPLAfhbR5HJlclLO8GnQAB+3Uj8DoyS1HojqlBoWtOqt6Qd1F564yM5mhzqkxCfJxOPmXAUxIqevuvfK
X-Forefront-Antispam-Report: EFV:NLI;
X-MS-Exchange-Organization-AuthSource: VE1EUR01FT044.eop-EUR01.prod.protection.outlook.com
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-PublicTrafficType: Email
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(5000109)(4605076)(610169)(8291501071);SRVR:VE1EUR01HT176;
X-Microsoft-Exchange-Diagnostics: 1;VE1EUR01HT176;3:+u1Dkmv/Nj6ePzwrVlPHerGWm1lVk4en/VRx3/WzofXyxd1gAMHY6h/c8BouAxxNAfLuNWx84EY2SioyvM8jwtZgzroJCMhqaD7yeFMsFCUypymH+93+bcsqmUEqn7m5zsoFdVt4bByI0X2k5G2pQdhs1E3vxjEPBYCCaFHI5oJKvV3XB83WHLNFRKW/0yvbGZ3lTV75UDOgpPWjFkC9GcXFk2bPS97RKEcnwWByrmwidbe3T60vZks/a6p1TqoUCzQpx7rzSMxJALMmey1GqDyuMpn6hNYmIUzmOutRYUhF6+MkvZKoOoC5x0mhe7us;25:eIy2DzXpPgwS1an77bDV62DXob2NzWqLwT6wBh2+jBi3ubxctOqvZgvJw/UKywa/e+0Dta8mR71pjaKM/mXc0I3A/j6bHx4HqEMJucgjQwOZZTZMcdiZzVcCE3/XjX51yTKI/4E6wT3hTdwRyJswr8ywejUkATkof60CXR+wAxPn8Ca3q0tPP9kCRgPjQBgQK+hyfbqXhIQjkB8nsNDMOmB0nPGQslOhJMBLwV9gv2y/Q7yqg0aF9gJijlY7HqLv3DovCEknpu7VGpXCIQN8D4i0stuLsQhbU1R1RX8CCN3i4w4rSt8mn6KbyBaeKjPpbSy0MAWB6Kk7KRzgv/0uUg==;31:Y1dhnmLyo5lAf3kKudfmWa3KtwtYo3xJjyZLjfpDZlRwg/FRVC8hTqreLizI0nQZCzDGyDz2rKnoKZHGWkusuppenA3t6x0vENbOA1CMucdsitr4Cvt7v4YUzFT1Ml2bCVkQOPd4yj0pnt+0Hd7RhFIbHs9t6DeaVXIQBYpUScNTND5PkoyG8IQ/yHMpkaoklzp5jNsQhWgpQxnQ3TnYjUFVDx+nUpt9/nTCjNsk2AE=
X-MS-TrafficTypeDiagnostic: VE1EUR01HT176:
X-MS-Exchange-EOPDirect: true
X-Sender-IP: 208.96.30.116
X-SID-PRA: POSTMASTER@FQDN
X-SID-Result: NONE
X-MS-Exchange-Organization-PCL: 2
X-Exchange-Antispam-Report-Test: UriScan:(85827821059158);
X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(444111676)(60000075)(52401190)(52601095)(52505095)(52504095)(52406095)(52402095)(102415395)(82015058);SRVR:VE1EUR01HT176;BCL:0;PCL:0;RULEID:;SRVR:VE1EUR01HT176;
X-Microsoft-Exchange-Diagnostics: 1;VE1EUR01HT176;4:PMeydNsx1GLBtDrghRVs6zPqe/gCpzjB5zxFtOjN6sehHZXEK74Dg+mM1blhr2niDfT31H6qMn1xkxtlUEfw03fBwEy+ykCYGrxizdsNILsE/KkO2RxbhpdDeTuOT/CIeFTgl87vgsGsKQCM/R7zOD1FRit6Y2Dr0FFvZf6MjP9fxHTyWkGYky9Lvq4bgWPRWraoZ38B8v3gQQqzjcXZqT/Isinr9eDBE5TNnFHZmXrFK3qKYql47VY/tTEmMRfJIN3+qtJZSmYfguRxIA79cbuSJzg3tTK4dI85aKkMuhBGfqlPfDWG2y8fTREwX4Si;6:hiBvwsNFbGQN79VrbaQHDg1Oh5Q5/op2ZJxMHnSpXWQ2X/L8aLJ2pEQynDgT9bceoUHDJhKjRWr7KZtgdH7E9HslRc4P31ueR/+SUmb9Rcwgg42BnEOpRmxaAzVtUjfo/DxbJs1wTKBvcL5DmhsGl3QEzaMrWyqkzdSXhEP/AXmFtZb11D98UB6sciatay16ZMwclIeQE7q+LTwEKQlt3nF+MTP93NowcnNjLrkqtjQZugxV2un3H6zyRHFwW53kHTmX6TwZeCpttsePSQsP9nNheeGLBj6bZXu+0dXrIrWUUeIoeU36cqJpyH5Rw0XD+tqo1LSpJxzvH4mm+qvMlGniVowi4+5YOzUsv21KuhuqOY9H9XrKnGR5UI7c/z8ccEAeA801NrzsOefc4Mi62WCWAvYVvFykrBDIKzJi10wcp7zBXzSyXDeh8RvBoEKRF2UKPsBWKzwn8JycyDaW9w==
X-Microsoft-Antispam-Message-Info: +1aI3yEM51FyrYpG2SLN15CFKl9xEBCECd2jUPBE7xSQwDrV2OPiwIZ8dwtmNCarIbOiLPfjNPSPwPZxzzUhbsGico9knUgk+2ITCU7RljS1OkpZGITA1kbXNfCe8nscB4OOYxuU1LQexR1Vm4sj7GTHp9BivZ1o0PWFZju74KU=
X-Microsoft-Exchange-Diagnostics: 1;VE1EUR01HT176;5:w4m21+QwIefzJLtJ0HSnA9GgZivkO1l28g4YulDBh2ZQmTLB39AA5iWXo/ZK5Rgm2BXqwwjbFTBcnzcqdT6iV46JxbWrQGKjTCKUBdAeS6oWJeUdMEeTXNT2bvQhqXkQOmFV7PCf7z8pfs5FaUjw8KajgCLrtpS/wnL9U6bdyoA=;7:RHy2IhMJ44zMl3GSaNS+clkekk9ZBknVM7gGFmD8p8ZAALBRxO5e8qGCERCnbKhc0OiJotOZyep27wjaNCfFmHHHibaO853RG4nse0d9v/xBsOXT0Ax8QtB8HR8uhTPNizzWD3lmRbowY34TZp1L290zk1Af7ufP5EVoqSF4YpoYKla3Ldi/LxzAnS4Em1tB9paeAfmEkLfPKhwLyl5XbQDt5AENrnaqaC+U2V9IoFjj+eCFBcqbgl8KqlTDO2TC
X-MS-Office365-Filtering-Correlation-Id: a8b60c57-1939-4c64-35e4-08d5a25be7ed
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2018 23:03:15.6096
 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: a8b60c57-1939-4c64-35e4-08d5a25be7ed
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR01HT176
X-MS-Exchange-Transport-EndToEndLatency: 00:00:00.8929847
X-MS-Exchange-Processed-By-BccFoldering: 15.20.0675.014
X-Microsoft-Exchange-Diagnostics:
	1;AM0PR0102MB3156;27:v96zZ4CRu9oJzwJHx9O1D25i9JcQe+C+yDYBP7MoSh1pjCpNDaxljcpR+STBRU8u2k0xa3Cvo60cR5zw1vuOcZ5sL88cnAQe+UHvWvzpo3YDaGHIqVRfYS8PRQTtqZyw
X-Microsoft-Antispam-Mailbox-Delivery:
	abwl:0;wl:0;pcwl:0;kl:0;iwl:0;dwl:0;dkl:0;rwl:0;ex:0;psp:0;auth:0;dest:J;ENG:(400001000128)(400125000095)(5062000261)(5061607266)(5061608174)(1002269)(4900095)(4920089)(6360004)(4950130)(4990090)(9140004);RF:JunkEmail;OFR:SpamFilterAuthJ;
X-Message-Info:
	qoGN4b5S4yqCEFufU2XVDMw16p9qQj+IRjQ8wMx/IXELUA+1CsbLQoK310/63i4tCSVgaFonX22qez5PU1oa7D8zSBUSpVYdbLEo3zpjyUlqHC97KCoaWXwSFkEPdREnA6u1BnLCqSAATwTxwTKE9RcYElb37Hsp1tVHhBzWUAuwxEcw061gDDaaADChAcZ81zxekXNAni/td1SNgfi8xQ==
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD02
X-Microsoft-Antispam-Message-Info:
	JuDITQZre5g5C125DPpv4VtnaHs0mv4FAK1h1NVfFukRw/Z+2GWtIVtXjWz8gOEPxLYYruE9hdqwm9I6jQDU5GHsOQqszZN9HcJvdWT+hitjuEjRf/7pDGlNI8Uchwuf6URsN69EdZVFttCZylbdkzxwhf3NI5tDxUvMXWS6h3I3sa7TCGCSN3qALM9/4pbpB2QCj8fg1QKIFbIITswdLq+MXFMIbm07YpvO4JDE5C75kjcvyQ5fMAJvMNexTcOAhhNaaRnNSPji21qZuSMgznvEWihukdDLH9a4SXJDMW6+aWn/rA9L43r/qj7FTsLCKhXAITLwpXsrpOQBciMyhO2HZRSfVBryij2BTHCNXQOoeYWv4/b1ez/qTwA6a05u
MIME-Version: 1.0

--9B095B5ADSN=_01D3D443A07103DB0000000114933?71078.mast
Content-Type: text/plain; charset="unicode-1-1-utf-7"
X-Microsoft-Exchange-Diagnostics:
	1;AM0PR0102MB3156;27:v96zZ4CRu9oJzwJHx9O1D25i9JcQe+C+yDYBP7MoSh1pjCpNDaxljcpR+STBRU8u2k0xa3Cvo60cR5zw1vuOcZ5sL88cnAQe+UHvWvzpo3YDaGHIqVRfYS8PRQTtqZyw
X-Microsoft-Antispam-Mailbox-Delivery:
	abwl:0;wl:0;pcwl:0;kl:0;iwl:0;dwl:0;dkl:0;rwl:0;ex:0;psp:0;auth:0;dest:J;ENG:(400001000128)(400125000095)(5062000261)(5061607266)(5061608174)(1002269)(4900095)(4920089)(6360004)(4950130)(4990090)(9140004);RF:JunkEmail;OFR:SpamFilterAuthJ;
X-Message-Info:
	qoGN4b5S4yqCEFufU2XVDMw16p9qQj+IRjQ8wMx/IXELUA+1CsbLQoK310/63i4tCSVgaFonX22qez5PU1oa7D8zSBUSpVYdbLEo3zpjyUlqHC97KCoaWXwSFkEPdREnA6u1BnLCqSAATwTxwTKE9RcYElb37Hsp1tVHhBzWUAuwxEcw061gDDaaADChAcZ81zxekXNAni/td1SNgfi8xQ==
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD02
X-Microsoft-Antispam-Message-Info:
	JuDITQZre5g5C125DPpv4VtnaHs0mv4FAK1h1NVfFukRw/Z+2GWtIVtXjWz8gOEPxLYYruE9hdqwm9I6jQDU5GHsOQqszZN9HcJvdWT+hitjuEjRf/7pDGlNI8Uchwuf6URsN69EdZVFttCZylbdkzxwhf3NI5tDxUvMXWS6h3I3sa7TCGCSN3qALM9/4pbpB2QCj8fg1QKIFbIITswdLq+MXFMIbm07YpvO4JDE5C75kjcvyQ5fMAJvMNexTcOAhhNaaRnNSPji21qZuSMgznvEWihukdDLH9a4SXJDMW6+aWn/rA9L43r/qj7FTsLCKhXAITLwpXsrpOQBciMyhO2HZRSfVBryij2BTHCNXQOoeYWv4/b1ez/qTwA6a05u

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

       anyemail+AEA-gmail.com




--9B095B5ADSN=_01D3D443A07103DB0000000114933?71078.mast
Content-Type: message/delivery-status
X-Microsoft-Exchange-Diagnostics:
	1;AM0PR0102MB3156;27:v96zZ4CRu9oJzwJHx9O1D25i9JcQe+C+yDYBP7MoSh1pjCpNDaxljcpR+STBRU8u2k0xa3Cvo60cR5zw1vuOcZ5sL88cnAQe+UHvWvzpo3YDaGHIqVRfYS8PRQTtqZyw
X-Microsoft-Antispam-Mailbox-Delivery:
	abwl:0;wl:0;pcwl:0;kl:0;iwl:0;dwl:0;dkl:0;rwl:0;ex:0;psp:0;auth:0;dest:J;ENG:(400001000128)(400125000095)(5062000261)(5061607266)(5061608174)(1002269)(4900095)(4920089)(6360004)(4950130)(4990090)(9140004);RF:JunkEmail;OFR:SpamFilterAuthJ;
X-Message-Info:
	qoGN4b5S4yqCEFufU2XVDMw16p9qQj+IRjQ8wMx/IXELUA+1CsbLQoK310/63i4tCSVgaFonX22qez5PU1oa7D8zSBUSpVYdbLEo3zpjyUlqHC97KCoaWXwSFkEPdREnA6u1BnLCqSAATwTxwTKE9RcYElb37Hsp1tVHhBzWUAuwxEcw061gDDaaADChAcZ81zxekXNAni/td1SNgfi8xQ==
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD02
X-Microsoft-Antispam-Message-Info:
	JuDITQZre5g5C125DPpv4VtnaHs0mv4FAK1h1NVfFukRw/Z+2GWtIVtXjWz8gOEPxLYYruE9hdqwm9I6jQDU5GHsOQqszZN9HcJvdWT+hitjuEjRf/7pDGlNI8Uchwuf6URsN69EdZVFttCZylbdkzxwhf3NI5tDxUvMXWS6h3I3sa7TCGCSN3qALM9/4pbpB2QCj8fg1QKIFbIITswdLq+MXFMIbm07YpvO4JDE5C75kjcvyQ5fMAJvMNexTcOAhhNaaRnNSPji21qZuSMgznvEWihukdDLH9a4SXJDMW6+aWn/rA9L43r/qj7FTsLCKhXAITLwpXsrpOQBciMyhO2HZRSfVBryij2BTHCNXQOoeYWv4/b1ez/qTwA6a05u

Reporting-MTA: dns;FQDN
Received-From-MTA: dns;FQDN
Arrival-Date: Sat, 14 Apr 2018 17:55:32 -0500

Final-Recipient: rfc822;anyemail@gmail.com
Action: failed
Status: 5.5.0
Diagnostic-Code: smtp;550-5.7.1 [IP is IP of the sender] The IP address sending this message does not have a
550-5.7.1 PTR record setup. As a policy, Gmail does not accept messages from
550-5.7.1 IPs with missing PTR records. Please visit
550-5.7.1  https://support.google.com/mail/answer/81126#authentication for more
550 5.7.1 information. m21si8722753qkm.275 - gsmtp

--9B095B5ADSN=_01D3D443A07103DB0000000114933?71078.mast
Content-Type: message/rfc822
X-Microsoft-Exchange-Diagnostics:
	1;AM0PR0102MB3156;27:v96zZ4CRu9oJzwJHx9O1D25i9JcQe+C+yDYBP7MoSh1pjCpNDaxljcpR+STBRU8u2k0xa3Cvo60cR5zw1vuOcZ5sL88cnAQe+UHvWvzpo3YDaGHIqVRfYS8PRQTtqZyw
X-Microsoft-Antispam-Mailbox-Delivery:
	abwl:0;wl:0;pcwl:0;kl:0;iwl:0;dwl:0;dkl:0;rwl:0;ex:0;psp:0;auth:0;dest:J;ENG:(400001000128)(400125000095)(5062000261)(5061607266)(5061608174)(1002269)(4900095)(4920089)(6360004)(4950130)(4990090)(9140004);RF:JunkEmail;OFR:SpamFilterAuthJ;
X-Message-Info:
	qoGN4b5S4yqCEFufU2XVDMw16p9qQj+IRjQ8wMx/IXELUA+1CsbLQoK310/63i4tCSVgaFonX22qez5PU1oa7D8zSBUSpVYdbLEo3zpjyUlqHC97KCoaWXwSFkEPdREnA6u1BnLCqSAATwTxwTKE9RcYElb37Hsp1tVHhBzWUAuwxEcw061gDDaaADChAcZ81zxekXNAni/td1SNgfi8xQ==
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD02
X-Microsoft-Antispam-Message-Info:
	JuDITQZre5g5C125DPpv4VtnaHs0mv4FAK1h1NVfFukRw/Z+2GWtIVtXjWz8gOEPxLYYruE9hdqwm9I6jQDU5GHsOQqszZN9HcJvdWT+hitjuEjRf/7pDGlNI8Uchwuf6URsN69EdZVFttCZylbdkzxwhf3NI5tDxUvMXWS6h3I3sa7TCGCSN3qALM9/4pbpB2QCj8fg1QKIFbIITswdLq+MXFMIbm07YpvO4JDE5C75kjcvyQ5fMAJvMNexTcOAhhNaaRnNSPji21qZuSMgznvEWihukdDLH9a4SXJDMW6+aWn/rA9L43r/qj7FTsLCKhXAITLwpXsrpOQBciMyhO2HZRSfVBryij2BTHCNXQOoeYWv4/b1ez/qTwA6a05u

Received: from mail pickup service by FQDN with Microsoft SMTPSVC;
	 Sat, 14 Apr 2018 17:55:32 -0500
To: <anyemail@gmail.com>
From: <otheremail@hotmail.com>
Subject: This is a test. 
Message-ID: <14933-71078wBPFFSQt00000001@14933-71078.masterbrain.shadaimc>
X-OriginalArrivalTime: 14 Apr 2018 22:55:32.0402 (UTC) FILETIME=[B128E120:01D3D443]
Date: Sat, 14 Apr 2018 17:55:32 -0500
Content-Type: text/plain
MIME-Version: 1.0

This is a final test

Open in new window

Where says FQDN is the qualified domain of the sender, not the email godaddy server. Is supposed to be sent from email godaddy server.

Anyway what could be the problem?
0
arnoldCommented:
When relaying through goddaddy, their server interacts with gmail and only their admin's can see why gmail defers the message.

The notice you are getting is because of a delay in sending this message.

You are using hotmail.com in your example,
Nslookup -q=txt hotmail.com
None of your IPs will be in the authorized path for hotmail.com

Some validate so run
nslookup FQDN
Then perform the same lookup on the IP to which it resolves.

Your sender/recipient should not be ...

If you want to use the submitter's email address when responding, add a reply-you: to the email message and use their email address. This way the message will always be from you to you, unless and until you reply to the message.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Alex E.Author Commented:
Here I made the commands you mentioned on first answer:

nslookup -q=txt IP is IP sender machine
(root)  nameserver = g.root-servers.net
(root)  nameserver = l.root-servers.net
(root)  nameserver = k.root-servers.net
(root)  nameserver = f.root-servers.net
(root)  nameserver = h.root-servers.net
(root)  nameserver = d.root-servers.net
(root)  nameserver = a.root-servers.net
(root)  nameserver = e.root-servers.net
(root)  nameserver = c.root-servers.net
(root)  nameserver = b.root-servers.net
(root)  nameserver = j.root-servers.net
(root)  nameserver = i.root-servers.net
(root)  nameserver = m.root-servers.net
g.root-servers.net      internet address = 192.112.36.4
l.root-servers.net      internet address = 199.7.83.42
k.root-servers.net      internet address = 193.0.14.129
f.root-servers.net      internet address = 192.5.5.241
h.root-servers.net      internet address = 128.63.2.53
d.root-servers.net      internet address = 128.8.10.90
a.root-servers.net      internet address = 198.41.0.4
e.root-servers.net      internet address = 192.203.230.10
c.root-servers.net      internet address = 192.33.4.12
b.root-servers.net      internet address = 192.228.79.201
j.root-servers.net      internet address = 192.58.128.30
i.root-servers.net      internet address = 192.36.148.17
m.root-servers.net      internet address = 202.12.27.33
Server:  UnKnown
Address:  ::1

(root)  nameserver = l.root-servers.net
(root)  nameserver = k.root-servers.net
(root)  nameserver = f.root-servers.net
(root)  nameserver = h.root-servers.net
(root)  nameserver = d.root-servers.net
(root)  nameserver = a.root-servers.net
(root)  nameserver = e.root-servers.net
(root)  nameserver = c.root-servers.net
(root)  nameserver = b.root-servers.net
(root)  nameserver = j.root-servers.net
(root)  nameserver = i.root-servers.net
(root)  nameserver = m.root-servers.net
(root)  nameserver = g.root-servers.net
l.root-servers.net      internet address = 199.7.83.42
k.root-servers.net      internet address = 193.0.14.129
f.root-servers.net      internet address = 192.5.5.241
h.root-servers.net      internet address = 128.63.2.53

C:\Users\coershadai.14933-71078>nslookup -q=MX gmail.com
(root)  nameserver = e.root-servers.net
(root)  nameserver = c.root-servers.net
(root)  nameserver = b.root-servers.net
(root)  nameserver = j.root-servers.net
(root)  nameserver = i.root-servers.net
(root)  nameserver = m.root-servers.net
(root)  nameserver = g.root-servers.net
(root)  nameserver = l.root-servers.net
(root)  nameserver = k.root-servers.net
(root)  nameserver = f.root-servers.net
(root)  nameserver = h.root-servers.net
(root)  nameserver = d.root-servers.net
(root)  nameserver = a.root-servers.net
e.root-servers.net      internet address = 192.203.230.10
c.root-servers.net      internet address = 192.33.4.12
b.root-servers.net      internet address = 192.228.79.201
j.root-servers.net      internet address = 192.58.128.30
i.root-servers.net      internet address = 192.36.148.17
m.root-servers.net      internet address = 202.12.27.33
g.root-servers.net      internet address = 192.112.36.4
l.root-servers.net      internet address = 199.7.83.42
k.root-servers.net      internet address = 193.0.14.129
f.root-servers.net      internet address = 192.5.5.241
h.root-servers.net      internet address = 128.63.2.53
d.root-servers.net      internet address = 128.8.10.90
a.root-servers.net      internet address = 198.41.0.4
Server:  UnKnown
Address:  ::1

(root)  nameserver = c.root-servers.net
(root)  nameserver = b.root-servers.net
(root)  nameserver = j.root-servers.net
(root)  nameserver = i.root-servers.net
(root)  nameserver = m.root-servers.net
(root)  nameserver = g.root-servers.net
(root)  nameserver = l.root-servers.net
(root)  nameserver = k.root-servers.net
(root)  nameserver = f.root-servers.net
(root)  nameserver = h.root-servers.net
(root)  nameserver = d.root-servers.net
(root)  nameserver = a.root-servers.net
(root)  nameserver = e.root-servers.net
c.root-servers.net      internet address = 192.33.4.12
b.root-servers.net      internet address = 192.228.79.201
j.root-servers.net      internet address = 192.58.128.30
i.root-servers.net      internet address = 192.36.148.17

Open in new window


it shows something?
0
arnoldCommented:
Yes, its showing that your DNS is not setup right.
Your DNS is not setup as a resolver.
Usually, your DNS shoukd query the root servers, and chase down the info you are after.
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
There are a couple potential issues including sendusing and port. Although port *should* work through 25, I never got it to work.  You also have to make sure the sending account is allowing smtp to pass through.  https://support.google.com/a/answer/176600?hl=en

Check out these settings Wayne ended up with and note cdoSendUsingMethod,cdoSMTPServer, smtpusessl and smtpserverport

https://www.experts-exchange.com/questions/28005021/Sending-CDO-SMTP-Mail-via-gmail.html#a38809385
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "smtp.gmail.com"
.Item(cdoSMTPAuthenticate) = 1
.Item(http://schemas.microsoft.com/cdo/configuration/smtpusessl)=true ' If use SSL set to True, if not, set to False
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465
.Item(cdoSendUsername) = "your_mom"
.Item(cdoSendPassword) = "pwd"
.Update
End With

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alex E.Author Commented:
Worked with new port. Thank you so much.
1
arnoldCommented:
Alex,
Were you not using the local IIS SMTP service to inject the messages that are then routed out to godaddy for final disposition?

an SMTP session is a single attempt proposition. if it fails, the email does not get resent.
Injecting the message into a local SMTP service such as IIS SMTP, the message delivery to the destined recipient will be retried based on the IIS SMTP service configuration.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.