Currently I've been told that our Exchange Server has been configured to allow emails sent out of our network domain to be 5MB in size and 10MB if they are within the network. Is there any way I can retrieve these settings via WebDAV? Thank you.
These setting could be set in multiple places (it sounds like you may have a combination) eg they could be set globally under message-delivery in Global Setting in ESM. They could also be configured per user via AD users and computers or restrictions could be implemented at the SMTP virtual server level and the connector level have a look at http://www.msexchange.org/tutorials/Set-Size-Limits-Messages.html for more detail. This configuration information is all stored in Active Directory so using LDAP is the most appropriate method of accessing the information. Cheers Glen "Frank" wrote in message news:954FF151-F9BF-4C99-AA75-A5D04CB36B7E@microsoft.com... > Currently I've been told that our Exchange Server has been configured to > allow emails sent out of our network domain to be 5MB in size and 10MB if > they are within the network. > > Is there any way I can retrieve these settings via WebDAV? > > Thank you.
Thank you Glen. I believe the limitations are implemented at the server level for all users. My application is not running on the Exchange Server and am going to be using WebDAV to retrieve emails, etc... from Exchange. I've never used LDAP or ADSI. Do you have any examples (or links) that show how to connect to Exchange to obtain this information? From what I found it looks like I must use ADO (OLEDB) and a connection string, but am not clear on what to do. Thanks again, Frank "Glen Scales [MVP]" wrote: > These setting could be set in multiple places (it sounds like you may have a > combination) eg they could be set globally under message-delivery in Global > Setting in ESM. They could also be configured per user via AD users and > computers or restrictions could be implemented at the SMTP virtual server > level and the connector level have a look at > http://www.msexchange.org/tutorials/Set-Size-Limits-Messages.html for more > detail. This configuration information is all stored in Active Directory so > using LDAP is the most appropriate method of accessing the information. > > Cheers > Glen > > "Frank" wrote in message > news:954FF151-F9BF-4C99-AA75-A5D04CB36B7E@microsoft.com... > > Currently I've been told that our Exchange Server has been configured to > > allow emails sent out of our network domain to be 5MB in size and 10MB if > > they are within the network. > > > > Is there any way I can retrieve these settings via WebDAV? > > > > Thank you. > > >
MSDN and the Exchange SDK are the best place to look for ADSI samples that realate to Exchange eg http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_mgmt_management_tasks_using_adsi.asp . If you want to show what the global message limits are something like this should work set conn = createobject("ADODB.Connection") set com = createobject("ADODB.Command") Set iAdRootDSE = GetObject("LDAP://RootDSE") strNameingContext = iAdRootDSE.Get("configurationNamingContext") Conn.Provider = "ADsDSOObject" Conn.Open "ADs Provider" mbQuery = "<LDAP://" & strNameingContext & ">;(objectCategory=msExchMessageDeliveryConfig);name,distinguishedName;subtree" Com.ActiveConnection = Conn Com.CommandText = mbQuery Set Rs = Com.Execute Wscript.echo "Global Settings - Message Delivery Properties" Wscript.echo While Not Rs.EOF strconfcont = "LDAP://" & rs.fields("distinguishedName") set ccConfig = getobject(strconfcont) wscript.echo "Sending Message Size Limit: " & ccConfig.delivContLength wscript.echo "Recieving Message Size Limit: " & ccConfig.submissionContLength wscript.echo "Recipient Limits: " & ccConfig.msExchRecipLimit rs.movenext wend Cheers Glen "Frank" wrote in message news:7E8A7FCE-4B05-43DF-A229-9AEC8D3428D8@microsoft.com... > Thank you Glen. I believe the limitations are implemented at the server > level for all users. My application is not running on the Exchange Server > and am going to be using WebDAV to retrieve emails, etc... from Exchange. > I've never used LDAP or ADSI. Do you have any examples (or links) that > show > how to connect to Exchange to obtain this information? From what I found > it > looks like I must use ADO (OLEDB) and a connection string, but am not > clear > on what to do. > > Thanks again, > > Frank > > "Glen Scales [MVP]" wrote: > >> These setting could be set in multiple places (it sounds like you may >> have a >> combination) eg they could be set globally under message-delivery in >> Global >> Setting in ESM. They could also be configured per user via AD users and >> computers or restrictions could be implemented at the SMTP virtual server >> level and the connector level have a look at >> http://www.msexchange.org/tutorials/Set-Size-Limits-Messages.html for >> more >> detail. This configuration information is all stored in Active Directory >> so >> using LDAP is the most appropriate method of accessing the information. >> >> Cheers >> Glen >> >> "Frank" wrote in message >> news:954FF151-F9BF-4C99-AA75-A5D04CB36B7E@microsoft.com... >> > Currently I've been told that our Exchange Server has been configured >> > to >> > allow emails sent out of our network domain to be 5MB in size and 10MB >> > if >> > they are within the network. >> > >> > Is there any way I can retrieve these settings via WebDAV? >> > >> > Thank you. >> >> >>
Thank you very much Glen. I will give it a try. Best Regards, Frank "Glen Scales [MVP]" wrote: > MSDN and the Exchange SDK are the best place to look for ADSI samples that > realate to Exchange eg > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_mgmt_management_tasks_using_adsi.asp . > If you want to show what the global message limits are something like this > should work > > set conn = createobject("ADODB.Connection") > set com = createobject("ADODB.Command") > Set iAdRootDSE = GetObject("LDAP://RootDSE") > strNameingContext = iAdRootDSE.Get("configurationNamingContext") > Conn.Provider = "ADsDSOObject" > Conn.Open "ADs Provider" > mbQuery = "<LDAP://" & strNameingContext & > ">;(objectCategory=msExchMessageDeliveryConfig);name,distinguishedName;subtree" > Com.ActiveConnection = Conn > Com.CommandText = mbQuery > Set Rs = Com.Execute > Wscript.echo "Global Settings - Message Delivery Properties" > Wscript.echo > While Not Rs.EOF > strconfcont = "LDAP://" & rs.fields("distinguishedName") > set ccConfig = getobject(strconfcont) > wscript.echo "Sending Message Size Limit: " & ccConfig.delivContLength > wscript.echo "Recieving Message Size Limit: " & > ccConfig.submissionContLength > wscript.echo "Recipient Limits: " & ccConfig.msExchRecipLimit > rs.movenext > wend > > Cheers > Glen > > "Frank" wrote in message > news:7E8A7FCE-4B05-43DF-A229-9AEC8D3428D8@microsoft.com... > > Thank you Glen. I believe the limitations are implemented at the server > > level for all users. My application is not running on the Exchange Server > > and am going to be using WebDAV to retrieve emails, etc... from Exchange. > > I've never used LDAP or ADSI. Do you have any examples (or links) that > > show > > how to connect to Exchange to obtain this information? From what I found > > it > > looks like I must use ADO (OLEDB) and a connection string, but am not > > clear > > on what to do. > > > > Thanks again, > > > > Frank > > > > "Glen Scales [MVP]" wrote: > > > >> These setting could be set in multiple places (it sounds like you may > >> have a > >> combination) eg they could be set globally under message-delivery in > >> Global > >> Setting in ESM. They could also be configured per user via AD users and > >> computers or restrictions could be implemented at the SMTP virtual server > >> level and the connector level have a look at > >> http://www.msexchange.org/tutorials/Set-Size-Limits-Messages.html for > >> more > >> detail. This configuration information is all stored in Active Directory > >> so > >> using LDAP is the most appropriate method of accessing the information. > >> > >> Cheers > >> Glen > >> > >> "Frank" wrote in message > >> news:954FF151-F9BF-4C99-AA75-A5D04CB36B7E@microsoft.com... > >> > Currently I've been told that our Exchange Server has been configured > >> > to > >> > allow emails sent out of our network domain to be 5MB in size and 10MB > >> > if > >> > they are within the network. > >> > > >> > Is there any way I can retrieve these settings via WebDAV? > >> > > >> > Thank you. > >> > >> > >> > > >