Link to home
Start Free TrialLog in
Avatar of Cicio1412
Cicio1412Flag for United States of America

asked on

Exchange 2007 attachment limit size

We have Exchange 2007 and I am having some issues regarding attachment limit sizes.  This appears to be only affecting some users and not others.

I have used the Exchange command shell  to modify the following:

get-receiveconnector | fl fqdn, maxmessagesize
get-receiveconnector | set-recieveconnector -maxmessagesize 100MB

Get-Sendconnector | fl fqdn,maxmessagesize
Set this to unlimited

get-transportconfig | fl maxrecievesize,maxsendsize
Set this to unlimited

I then restarted the Transport service and System Attendant service.

There are no size limits on any individual mailbox that I can see.

Are there any other places I have missed making a change?  Wouldn't the changes I have already made have been global?
Avatar of muzzi_in
muzzi_in
Flag of India image

you cannot set different level of size limit, it has to be same everywhere,

get-receiveconnector | fl fqdn, maxmessagesize
get-receiveconnector | set-recieveconnector -maxmessagesize 100MB

Get-Sendconnector | fl fqdn,maxmessagesize
Set this to 100MB

get-transportconfig | fl maxrecievesize,maxsendsize
Set this to 100MB

then restart information store service & transport service, it should work.
Global setting:
---------------
   The systemwide default is held in Active Directory and is set to 10MB by default (this is 10240 K, the setting is just a number but is in K)

   Using ADSIedit, navigate to:
CN=Message Delivery,CN=Global Settings,
CN=Assocaited Network Solutions PLC,
CN=Microsoft Exchange,CN=Services,CN=Configuration,
DC=xansplc,DC=com

the arguments you want are:
msExchRecipLimit     (default 5000)
submissionContLength (default 10240)
delivContLength      (default 10240)

Transport Setting
-----------------
Site Default is set in powershell; use Get-TransportConfig to get current settings, then:

Set-TransportConfig -MaxRecipientEnvelopeLimit <nn> -MaxReceiveSize <nn>MB -MaxSendSize <nn>MB

current setting:

Set-TransportConfig -MaxRecipientEnvelopeLimit 5000 -MaxReceiveSize 20MB -MaxSendSize 20MB
Avatar of Cicio1412

ASKER

These are my Transport Settings:

ClearCategories                : True
DSNConversionMode              : UseExchangeDSNs
GenerateCopyOfDSNFor           : {5.4.8, 5.4.6, 5.4.4, 5.2.4, 5.2.0, 5.1.4}
InternalSMTPServers            : {}
JournalingReportNdrTo          : <>
MaxDumpsterSizePerStorageGroup : 18MB
MaxDumpsterTime                : 7.00:00:00
MaxReceiveSize                 : unlimited
MaxRecipientEnvelopeLimit      : 5000
MaxSendSize                    : unlimited
TLSReceiveDomainSecureList     : {}
TLSSendDomainSecureList        : {}
VerifySecureSubmitEnabled      : False
VoicemailJournalingEnabled     : True
WritingBrandingInDSNEnabled    : True
Xexch50Enabled                 : True

Restarted the store and transport service and folks are still receiving the attachment limitation error.
What is the attachment limitation error? Can you post the whole thing here (removing any domain specifics)

Did you review the Global limits in AD? If they are empty, set them to 100MB as well. I've seen a previous post where this was the fix.

Shaun
The error some are receiving is"

The file was not attached because the file exceeded the max limitation of 5MB.

SOLUTION
Avatar of ryt2asim
ryt2asim

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have looked at my Exchange console | Organization Configuration | Hub Transport | Global Settings tab | Transport Settings | properties.

The Global tab has no limits.  They are blank.  And yet I am still receiving the limitation error.
There are three places where Message size is set in Exchange 2007 RTM
There are two places where Message size is set in Exchange 2007 SP1
Global Setting (RTM Only. Transport setting will change this automatically in SP1)
--------------
Global Settings stored in Active Directory (access using ADSIEdit)
Configuration --> Services --> Microsoft Exchange --> [DOMAINNAME] --> Global Settings --> right client
Message Delivery -->
Check the settings below. They are in KB
submissionContLength (default 10240) (MaxSendSize)
delivContLength      (default 10240) (MaxReceiveSize)

Transport Setting
-----------------
To show current settings:
Get-TransportConfig | fl Max*Size
To Alter:
Set-TransportConfig -MaxReceiveSize <nn>MB -MaxSendSize <nn>MB

Receive and Send Connectors
---------------------------
To Get current settings:
Get-ReceiveConnector | ft Name, Max*Size
Get-SendConnector | ft Name, Max*Size
To Alter:
Set-ReceiveConnector "<connector name>" -MaxMessageSize <nn>MB
Set-SendConnector "<connector name>" -MaxMessageSize <nn>MB

http://technet.microsoft.com/en-us/library/bb124345.aspx

This is how to set Transport level message limits, but you should also ensure that there are no 'more
restrictive' limits set on Mail enabled objects such as mailbox users, distribution groups, public
folders etc that are causing a fail.
Here are my new settings:
ClearCategories                : True
DSNConversionMode              : UseExchangeDSNs
GenerateCopyOfDSNFor           : {5.4.8, 5.4.6, 5.4.4, 5.2.4, 5.2.0, 5.1.4}
InternalSMTPServers            : {}
JournalingReportNdrTo          : <>
MaxDumpsterSizePerStorageGroup : 18MB
MaxDumpsterTime                : 7.00:00:00
MaxReceiveSize                 : unlimited
MaxRecipientEnvelopeLimit      : unlimited
MaxSendSize                    : unlimited
TLSReceiveDomainSecureList     : {}
TLSSendDomainSecureList        : {}
VerifySecureSubmitEnabled      : False
VoicemailJournalingEnabled     : True
WritingBrandingInDSNEnabled    : True
Xexch50Enabled                 : True
Note that if you are using RTM, you need to manually use ADSIEdit to alter the Global settings. Global transport settings will not suffice.

Better still update to SP1.

Shaun
I am running Exchange 2007 SP2
The settings I shared were all set with ADSIEdit.
My new settings after changing the AD global limits to 100MB

ClearCategories                : True
DSNConversionMode              : UseExchangeDSNs
GenerateCopyOfDSNFor           : {5.4.8, 5.4.6, 5.4.4, 5.2.4, 5.2.0, 5.1.4}
InternalSMTPServers            : {}
JournalingReportNdrTo          : <>
MaxDumpsterSizePerStorageGroup : 18MB
MaxDumpsterTime                : 7.00:00:00
MaxReceiveSize                 : 100MB
MaxRecipientEnvelopeLimit      : unlimited
MaxSendSize                    : 100MB
TLSReceiveDomainSecureList     : {}
TLSSendDomainSecureList        : {}
VerifySecureSubmitEnabled      : False
VoicemailJournalingEnabled     : True
WritingBrandingInDSNEnabled    : True
Xexch50Enabled                 : True
Exchange 2007 SP2 is not publically available yet.

The settings you are showing are from a powershell command. This is not showing values in CN=Message Delivery using ADSIEdit.

Shaun
My apologies when you SP1 I thought you were refering to Service Pack 1.  I am running Service Pack 2.

CN=Message Delivery Properties
delivContLength 102400
msExchRecipLimit <not set>
SubmissionContLength 102400
I'm a little confused now, are you referring to the Operating System pack level?

It looks as if you are running Exchange 2007 SP1, because when you have set Global Transport settings to 100MB it appears to have correctly edited the Global settings in AD as well as you have attached.

So I think we can safely say it is not a Transport size limit.

Are you using OWA when trying to attach the attachment to an email message or a bounce back when you send a message with a large attachment? If it is when trying to attach the attachment, particularly using OWA (but would probably be same with Outlook) there may be other settings to consider as outlined below:

http://msexchangeteam.com/archive/2006/11/14/431477.aspx

Shaun


Again my apologies, the 2 should have been a 1.  I am running Exchange SP1 :)

I receive the attachment limitation error from within Outlook.  
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It is fine to have different values on the Send/Receive connectors and Global settings, but note that the most restrictive value will take precedence.

It's starting to sound more like a mailbox or user specific limit now. Review User settings in this article http://www.msexchange.org/articles-tutorials/exchange-server-2007/management-administration/exchange-2007-message-size-limits.html as well as the OWA article I attached above but you are using Outlook so perhaps this article first.

Shaun
Does anyone know the original file association foe web.config in the OWA folder on exchange?
There is no association by default. The file can be viewed / edited using any text editor. Notepad / wordpad / word etc.

Shaun
Well. I made the change to the OWA file web.config.  I made the mistake of associating the file with wordpad.  I finally was able to clear this association, but now when I go to OWA via the web, I am getting a runtime error with error screen.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What was it in the end?

Shaun