Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon API > Mailbox folder created in wrong directory when added via API

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon API  /

Mailbox folder created in wrong directory when added via API

[steinmann, otto]
otto steinmann
Newbie
Newbie
Posts: 17
otto steinmann - 05:07am, May 28 2020

Hello!
when creating a Mailbox via API Mdaemon does create the User Folder in D:/mdaemon/data/Users/.....
but should do in D:/mails/.....
even if you send the MailDir via API it does not work...
but in the responce.xml it shows the the Path i sent bia API, but is created wrong..
it works correct via mgt Console oder Via Remote Web, in the Template for New Mailboxes the path setting is correct...

regards
otto

Attachments:

request.xml (0 KB)

 

response.xml (1 KB)


  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Keith Personett (apparently) - May 28, 2020 10:12 am (#1 Total: 6)  

via email  

Photo of Author
Keith Personett
Newbie
Newbie
Posts: 76

Otto,

 

If you review the documentation, you will find that the MailDir field is only valid as a response element in a GetUserInfo operation. Further, it is only display if the logged on user is a Global Administrator.

 

In addition to being able to be used by Global Admins that we could potentially assume also have Server Console access, the CreateUser operation is designed to be used by Domain Admins, who, in the vast majority of case, do not know and should not know the underlying file system on the server. That would be a severe security breach.

 

The CreateUser operation will look at the location specified in the “New Accounts” new account template. If that is empty, it will default to {MDaemonIni::[Directories]::DataFolder}\{DomainName}\Users\{Mailbox} directory.

 

The recommendation is to Specify the location by editing your New Account Template for new users.

 

In a future version, it may support using alternate account template keys.

 

 

Keith Personett

Senior Software Developer, Cerebro Calibration Specialist, Agent of S.H.I.E.LD., Helicarrier Systems Analyst

MDaemon Technologies http://www.mdaemon.com/ or on Facebook

Sent using Outlook 2013 via ActiveSync Services for MDaemon Messaging Server.

I 16 1018

"You get hurt, hurt 'em back. You get killed... walk it off!"

                - Steve Rogers/Captain America


--MD-API-------------------------------------------------------------
This list is for questions and discussions regarding MDAEMON's API.
To unsubscribe from this mailing list send an email to
md-api-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion.  MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/support/request_support.asp
---------------------------------------------------------------------

Replies to this message
  • otto steinmann (May 29, 2020 8:32 am)


  • otto steinmann - May 29, 2020 8:32 am (#2 Total: 6)  

     

    Photo of Author
    otto steinmann
    Newbie
    Newbie
    Posts: 17
    Replying to: Keith Personett (May 28, 2020 10:12 am)
    Otto, If you review the documentation, you will find that the MailDir field is only valid as a response element in...

    Hello Keith!
    but the directory d:/mails/ is defined in the NewAccountTemplate and the new Mailbox added via API (without definging the path in the XML)is created somwhere else...!
    and this has worked before allready - as we dit not change our mgt software...
    and the user which we use to comunicate to the api is the gobal admin
    when i add a user from the gui or the remote-weg-gut it is created in the right directory..
    if you want, you can have access to the server to see yourself
    ...
    regards
    otto

    Attachments:

    request (1).xml (0 KB) (149 Downloads)

    response (1).xml (1 KB) (142 Downloads)

    path.JPG (62 KB) (135 Downloads)


    Keith Personett (apparently) - May 29, 2020 10:53 am (#3 Total: 6)  

    via email  

    Photo of Author
    Keith Personett
    Newbie
    Newbie
    Posts: 76

    Otto,

     

    I will have to look into it, though, it is unlikely that we would fix this in a post 19.5.5 build. I know that it works as I described in MD v20 Beta.

     

    For the directory, in your AccountTemplates.dat file, is it listed using slashes, like in your message, or using proper backslashes ( ie. D:\Mails\ )

     

    That MIGHT cause a problem.

     

    Keith Personett

    Senior Software Developer, Cerebro Calibration Specialist, Agent of S.H.I.E.LD., Helicarrier Systems Analyst

    MDaemon Technologies http://www.mdaemon.com/ or on Facebook

    Sent using Outlook 2013 via ActiveSync Services for MDaemon Messaging Server.

    I 16 1018

    "You get hurt, hurt 'em back. You get killed... walk it off!"

                    - Steve Rogers/Captain America

     

    From: md-api@mdaemon.com [mailto:md-api@mdaemon.com] On Behalf Of lists-md-api@mdaemon.com (otto steinmann)
    Sent: Friday, May 29, 2020 8:32 AM
    To: md-api List Member <md-api@mdaemon.com>
    Subject: [md-api] Mailbox folder created in wrong directory when added via API

     

    Hello Keith!
    but the directory d:/mails/ is defined in the NewAccountTemplate and the new Mailbox added via API (without definging the path in the XML)is created somwhere else...!
    and this has worked before allready - as we dit not change our mgt software...
    and the user which we use to comunicate to the api is the gobal admin
    when i add a user from the gui or the remote-weg-gut it is created in the right directory..
    if you want, you can have access to the server to see yourself
    ..
    regards
    otto

    Attachment: request (1).xml
    Attachment: response (1).xml
    Attachment: path.JPG


    View/reply at Mailbox folder created in wrong directory when added via API

     
     
    --MD-API-------------------------------------------------------------
    This list is for questions and discussions regarding MDAEMON's API.
    To unsubscribe from this mailing list send an email to
    md-api-unsubscribe@mdaemon.com .
    --POWERED BY MDAEMON!------------------------------------------------
     
    ---------------------------------------------------------------------
    These forums are provided by MDaemon Technologies for user-to-user 
    support and discussion.  MDaemon staff members may participate in the 
    forums periodically but please recognize that this is not the official
    method of receiving technical support. To receive personal technical 
    support please use the form here:
    http://www.mdaemon.com/support/request_support.asp
    ---------------------------------------------------------------------
    
    --MD-API-------------------------------------------------------------
    This list is for questions and discussions regarding MDAEMON's API.
    To unsubscribe from this mailing list send an email to
    md-api-unsubscribe@mdaemon.com .
    --POWERED BY MDAEMON!------------------------------------------------
    
    ---------------------------------------------------------------------
    These forums are provided by MDaemon Technologies for user-to-user
    support and discussion.  MDaemon staff members may participate in the
    forums periodically but please recognize that this is not the official
    method of receiving technical support. To receive personal technical
    support please use the form here:
    http://www.mdaemon.com/support/request_support.asp
    ---------------------------------------------------------------------
    

    Replies to this message
  • otto steinmann (May 29, 2020 11:25 am)
  • otto steinmann (May 29, 2020 11:26 am)


  • otto steinmann - May 29, 2020 11:25 am (#4 Total: 6)  

     

    Photo of Author
    otto steinmann
    Newbie
    Newbie
    Posts: 17
    Replying to: Keith Personett (May 29, 2020 10:53 am)
    Otto,&nbsp;I will have to look into it, though, it is unlikely that we would fix this in a post 19.5.5...

    hello,
    in the NewAccountTemplate it is correct
    as on the attached path.jpg i sent before
    regards
    otto

    otto steinmann - May 29, 2020 11:26 am (#5 Total: 6)  

     

    Photo of Author
    otto steinmann
    Newbie
    Newbie
    Posts: 17
    Replying to: Keith Personett (May 29, 2020 10:53 am)
    Otto,&nbsp;I will have to look into it, though, it is unlikely that we would fix this in a post 19.5.5...

    hello again,
    when can we acpect the 20.x final?
    regards and have a nice weekend..

    Keith Personett (apparently) - May 29, 2020 12:34 pm (#6 Total: 6)  

    via email  

    Photo of Author
    Keith Personett
    Newbie
    Newbie
    Posts: 76

    Otto,

     

    Tuesday, June 16:

    - MD 20.0.0 will be released on the MDaemon Technologies website and will be available for download. 

    - Automated updated notifications WILL NOT be initiated.  Server admins will not be notified that an upgrade is available and automatic installs will not be initiated if enabled. This means that you will have to go to the MDaemon download page in order to get MDaemon 20.0.0.

    
    --MD-API-------------------------------------------------------------
    This list is for questions and discussions regarding MDAEMON's API.
    To unsubscribe from this mailing list send an email to
    md-api-unsubscribe@mdaemon.com .
    --POWERED BY MDAEMON!------------------------------------------------
    
    ---------------------------------------------------------------------
    These forums are provided by MDaemon Technologies for user-to-user
    support and discussion.  MDaemon staff members may participate in the
    forums periodically but please recognize that this is not the official
    method of receiving technical support. To receive personal technical
    support please use the form here:
    http://www.mdaemon.com/support/request_support.asp
    ---------------------------------------------------------------------
    



      All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



     Content:

    Read New | Search

     Guest:

    Email to Admin



    You are visiting as a Guest user.