I create MailBox but the password isn't created.

Discussion for developers using MailEnable.
Post Reply
shobhit
Posts: 6
Joined: Thu Sep 17, 2009 2:57 pm
Contact:

I create MailBox but the password isn't created.

Post by shobhit »

Hi,

I m using Standard MAil Eanable.


i have my aplication (dot net) creating the account and everything fine but it is not setting the password or thowing an error .. when i go into the mailbox properties it says "Failed to get password entry from AUTH.tab an entry will be created for you to fix this error, please enter a password" and here is my code to create the login .

MY Code

MEAOPO.MailboxClass mailBoxCreate = new MEAOPO.MailboxClass();

mailBoxCreate.Postoffice = "test.com";
mailBoxCreate.Mailbox = mailbox1;
mailBoxCreate.Host = "test.com";

mailBoxCreate.RedirectAddress = "";
mailBoxCreate.RedirectStatus = 0;
mailBoxCreate.Status = 1;


if (mailBoxCreate.GetMailbox() == 0)
{
mailBoxCreate.Limit = -1;
mailResult = mailBoxCreate.AddMailbox();
}

MEAOAM.AddressMapClass adp = new MEAOAM.AddressMapClass();

// MailEnable.Administration.AddressMap adp = new MailEnable.Administration.AddressMap();
adp.Account = "test.com";
adp.DestinationAddress = "[SF:" + adp.Account + "/" + mailbox1 + "]";
adp.SourceAddress = "[SMTP:" + mailbox1 + "@" + adp.Account + "]";
adp.Scope = "";

adp.AddAddressMap();


// MailEnable.Administration.Login lin = new MailEnable.Administration.Login();


MEAOAU.LoginClass lin = new MEAOAU.LoginClass();

lin.Account = "test.com";
lin.Description = "";
lin.UserName = mailbox1 + "@" + mailBoxCreate.Postoffice;
lin.Password = "welcome";
lin.Rights = "USER";
lin.Status = 1;
lin.AddLogin();



pls give me solution.

Thanks

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

Post by MailEnable »

I suggest you create a mailbox via the MMC, and then do the same via your application. You can then inspect the auth.tab file and see what differences exist.

Also, you should not need to set the host property on the objects
(eg: mailBoxCreate.Host). They should be set to blank. They are for remote administration.
Regards, Andrew

shobhit
Posts: 6
Joined: Thu Sep 17, 2009 2:57 pm
Contact:

I create MailBox but the password isn't created.

Post by shobhit »

Hi,


I m using Standard mailenable Edition and mailbox and passowrd is created on local . but on server they give the error and password is not set.

The error message is:

"Failed to get password entry from authentication configuration store. An entry will be created for you with a random password to fix this error. You should enter a new password when possible."



i have already given the permission of config dir.

pls give me the soution.


Thanks

rsivakumarmca
Posts: 15
Joined: Thu Oct 08, 2009 10:43 am
Location: india

Post by rsivakumarmca »

Hello,

I am also getting the following error messages

"Failed to get password entry from authentication configuration store. An entry will be created for you with a random password to fix this error. You should enter a new password when possible."

Kindly give me exact solution to resolve this issue

Thanks!
Siva

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

Post by MailEnable »

Did you notice any difference in the AUTH.TAB files when you did this...:
I suggest you create a mailbox via the MMC, and then do the same via your application. You can then inspect the auth.tab file and see what differences exist.
The lines of the two logins you attempted to add (the MMC one and yours) should appear consecutively at the bottom of the file.
Regards, Andrew

jrswick
Posts: 46
Joined: Wed Feb 27, 2008 5:34 pm
Location: Salt Lake City, Utah

anyone

Post by jrswick »

Anyone figure this out. I have the same issue. It didn;t used to do this. Now when I add a user via web app it wont authenticate.
Jesse Swick


Favorite Quote: Just because a guy reads comics doesn't mean he can't start some @#$%

Post Reply