Settings for Remote Adiministration from webpage

Discussion for developers using MailEnable.
Post Reply
gixerino
Posts: 2
Joined: Fri Sep 30, 2011 8:29 am

Settings for Remote Adiministration from webpage

Post by gixerino »

Hello,
I have the need to integrate the potential of the login, calendar and files getione MailEnable with my application I am building.
The application will be built on another domain that has a static IP address (80.68.196.107)
MailEnable of an IPO is too static: 80.68.196.90.
I downloaded the examples in ASP enterprise version of mail enable.
http://www.mailenable.com/developers/de ... spcode.asp
I uploaded the files and the location is as follows:

http://www.domain.com/mewebmail/base/en ... /login.asp

Before you start I created a test file to see if I could run the "Remote Administration" only I get the following error:
"The call to Server.CreateObject failed while checking permissions. Access is denied to this object."
This is the code of the test page:

Code: Select all

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
'Dim oMEAORAHost As Object
'Set oMEAORAHost = CreateObject("MEAORA.Hosts")
Dim oMEAORAHost
Set oMEAORAHost = Server.CreateObject("MEAORA.Hosts")
oMEAORAHost.HostName = Me.lstIPAddress
oMEAORAHost.Address = Me.lstIPAddress
oMEAORAHost.UserName = Me.txtUsername
oMEAORAHost.Password = Me.txtPassword
oMEAORAHost.Port = Me.txtPort
oMEAORAHost.AddHost
Set oMEAORAHost = Nothing

'Dim oMEAORASession As Object
'Set oMEAORASession = CreateObject("MEAORA.Session")
Dim oMEAORASession
Set oMEAORASession = Server.CreateObject("MEAORA.Session")
oMEAORASession.Address = strIPAddress
Select Case oMEAORASession.Authenticate
Case 0:
MsgBox "Communications Failure"
Case 1:
MsgBox "Service authenticated user successfully."
Case 2:
MsgBox "Remote Host does not appear to be running MailEnable Remote Administration Service"
Case 3:
MsgBox "Service was contacted but account used was invalid. Check the password for the account and ensure that the user has SYSADMIN rights."
End Select
Set oMEAORASession = Nothing

'Dim oMEAOAM As Object
'Set oMEAOAM = CreateObject("MEAOAM.AddressMap")
Dim oMEAOAM
Set oMEAOAM = Server.CreateObject("MEAOAM.AddressMap")
oMEAOAM.CurrentHost = "80.68.196.90"
oMEAOAM.SetHost
 '
Response.Write("Esecuzione ok")
'
Set oMEAOAM = Nothing
%>
There are settings to be done on mail enable?
Sorry for the bad English and I thank everyone in advance.

DeShark
Posts: 8
Joined: Tue Sep 27, 2011 7:31 pm

Re: Settings for Remote Adiministration from webpage

Post by DeShark »

Their documentation is non-existent for doing anything remotely. I am working on a control panel integration project that has the same requirements. I will let you know what I find out that helps if anything. Have you installed any of the ME components on your app server? I am taking that route and trying to establish a connection with the ME server. So far I can get a connection but it is failing on the authentication, not sure why as it is the same user that ME runs with.

Thanks,
DeShark

gixerino
Posts: 2
Joined: Fri Sep 30, 2011 8:29 am

Re: Settings for Remote Adiministration from webpage

Post by gixerino »

I installed enable regular mail on the server with static address. Semra other addresses on the same server I have some tea when static. On this one I'm trying to create this new application that exploits the MailEnable API.

Components enable email on the server I installed without problems xx.xx.xxx.90 ip address.
The future application of property located on the same server, but the following ip: xx.xx.xxx.107

I need to install components mailenalbe also on 107?

MailEnable
Site Admin
Posts: 4441
Joined: Tue Jun 25, 2002 3:03 am
Location: Melbourne, Victoria Australia

Re: Settings for Remote Adiministration from webpage

Post by MailEnable »

You would need MailEnable installed on both servers to administer the 107 server using the Remote Management Service code mentioned earlier in this thread.
An alternative is to do it via .NET using web services, and this is discussed here:
http://forum.mailenable.com/viewtopic.php?f=4&t=20961
Regards, Andrew

Post Reply