Godaddy smtp server problem Windows 2012 R2

Hello we have a server with godaddy with Windows 2012 R2 and we configure the IIs 6 virtual smpt server  like:

In tab general (All unasigned)
In Access tab/Authentication anonymous
In access tab/Connection all except the list below and all is empty
In access tab/relay only the list below and the ”dedrelay.secureserver.net” and the IP of the server.
tab delivery/outbound connection just anonymous and checked TLS.
tab delivery/advanced we tested in FQDN the IP of the server above mentioned and also in a second test with the default full computer name. Then in both cases smart host we have “dedrelay.secureserver.net” and we have checked “Attempt direct delivery...”.

we have another server that is. it on godaddy and is Windows  2008 r2 we use an lms complex there and that email uses cdosys to send emails. We want to use or call in the server with Windows 2008 r2 the Windows 2012 r2 smpt. In other words we want to use the configuration above in smpt in the Windows 2012 r2 to use in the  Windows 2008 r2. How can we configure the Windows 2008 r2 smpt or anywhere to use the Windows 2012 r2 like the server to send emails?

Note: Both server are on different networks, in other words from two different companies, they don’t share anything in common.

We hope someone can help.

Thank you
Alex E.Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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:
Not clear what it is you are asking here.

Your pages should use sysmail and inject it into the local server2012. You can then configure the smart host on the 2012 to deliver it to the 2008 which means you have to configure the 2008 to allow relaying from the IP that the 2012 has.

Of you can configure the 2008 smart host to send through 2012 and make appropriate adjustments ......

You do not want to configure your pages to use the SMTP session as that has a higher overhead than the injection of the message into the c:\inetpub\mailroot\pickup directory and have the IIS SMtp service handle the message and its disposition.


under IIS SMTP relay, grant the IP of the remote server rights to send through this server.
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:
Ok worked doing this: In windows 2008 r2 in relay I entered the “dedrelay.secureserver.net” in smart host and also in relay. In relay also the IP of the  Windows 2012 r2 server and worked making a file text like this:

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

This is a test. 

Open in new window


If I copy that text file in pickup folder the email is sent successfully.

However I have this script in the windows 2008 r2 server and not work.


<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


What we need to change in that script to make work? Because making the text file and copying in pickup directory works but the script no.

Any suggestion?

Thank you for the help.
0
arnoldCommented:
you either have to make sure that the localhost allow relaying.
as you are using an SMTP without specifying that this is the intended method.

Please see:
https://www.w3schools.com/asp/asp_send_email.asp
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.server.com"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
myMail.Configuration.Fields.Update

Without specifying the SMTPserver, the process should drop the formatted message into the c:\inetpub\mailroot\pickup

are you sending emails to external destinations from this form??
This could lead to your form being used/abused by spammers.

The form should collect emails, add them to your list, generate a confirmation to opt-in. and then have a separate process that generates notifications to confirmed email recipients.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Alex E.Author Commented:
It worked thank you so much for the help. What you mean with “are you sending emails to external destinations from this form??
This could lead to your form being used/abused by spammers.“
The form is a public form that when the users click on contact us they enter their questions with their emails and names and that are the emails we receive nothing else all emails are from that users to one destination email, our support email.

On the script of the windows 2008 I entered the IP of the main server Windows 2012 R2 and worked. On connections on smpt server of the windows 2012 r2 I entered to be accepted only the IPs of course of same windows 2012 r2, dedrelay.secureserver.net, the windows 2008 r2.

Thank you
0
arnoldCommented:
at a glance, I think the form appeared as though it is using mailfrom using your email address, and there is a check for an email (  you do not validate beyond making sure it is not empty) and guess read into that the form is a mailing out to the user visiting the site, versus what you are saying as effectively a contact form where a visiting user submits a form for info or .. that is sent to your own email address.
0
Alex E.Author Commented:
Thank you
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
Email Servers

From novice to tech pro — start learning today.