Here is a snippet from my PHP code to add email accounts, applying it to
perl is trivial.
if($add_email == "on")
{
$info["objectclass"][5] = "mailrecipient";
$info["objectclass"][6] = "nsmessagingserveruser";
$info["mailalternateaddress"] = $alternatemail;
$info["maildeliveryoption"] = "mailbox";
$info["mailhost"] = $mailhost;
} end if($add_email)
"Eric Clope" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Goodevening,
>
> I have made a simple perl script using perldap to make email accounts.
> I can visibly see them in the LDAP directory but they don't take
> effect in the manner of mail routing. I can check mail but mail never
> gets delievered into the mailbox. If you send the test receipient an
> email it never reaches his/her hashmailbox partition..it goes into the
> void(actualy hits the smtp logs) but you can go authentificate as the
> user but no mail of course. =(
>
> But if I go to let's say my netscape console and bring up and account
> and click okay it automagicaly activates the user for mail routing. I
> have read on news group that you still have to do more stuff to make
> the mailbox work, something with "configutil" to create an entry
> "store.partition.testuser.path". Or using the mailbox utility (i was
> goofing with it to create mailbox..I was not succeful..=( )..
>
> If you have any suggestings on how to "activate" the email accounts I
> would like to here about it..thanks =P
>
>
> ### reference info
> >>> link:
>
"http://groups.google.com/groups?q=Netscape+Messaging+Server+add+user+perl&h
l=en&rnum=1&selm=3767156C.BDEA900B%40netscape.com"
>
> here is my snippet of my ldap scheme stuff..if interested
> ---------------------
> $entry->setDN("uid=userbob,ou=Student Users,o=school.com");
> $entry->{objectclass} = [ "top", "person", "organizationalPerson",
> "inetorgperson", "mailrecipient", "nsmessagingserveruser" ];
> $entry->addValue("mailhost", "mail.school.com");
> $entry->addValue("mail", "userbob\@school.com");
> $entry->addValue("cn", "userbob");
> $entry->addValue("uid", "userbob");
> $entry->addValue("givenname", "Bob Man");
> $entry->addValue("sn", "Bob");
> $entry->addValue("userpassword", "{SHA}QnaFNqddNW06aFXGxRFhH3EociU=");
> $entry->addValue("creatorsname",
> "uid=admin,ou=Administrators,ou=TopologyManagement,o=NetscapeRoot");
> $entry->addValue("modifiersname",
> "uid=admin,ou=Administrators,ou=TopologyManagement,o=NetscapeRoot");
> $entry->addValue("createtimestamp", "20010717185843Z");
> $entry->addValue("modifytimestamp", "20010717185843Z");
> ---------------------
>
> I'm currently running on a solaris box:
> Netscape Directory 4.1
> Netscape Messaging Server 4.15 Patch 4
>
> Thanks for your time and help if any.. =)
> Chip Floyd
> [EMAIL PROTECTED]