Results 1 to 5 of 5

Thread: Attachment Size disparity ?

  1. #1
    Join Date
    Nov 2006
    Posts
    177
    Rep Power
    9

    Default Attachment Size disparity ?

    My MTA is separated from the other services on a different machine. I tried to send an 8meg attachment through and it failed. So I went to the admin console and made both message and attachent size 10240 (supposedly this is kb) or 10 meg.

    Being distrustful I also found that I can change the values from zmprov.

    In a forum post I found this:

    for message size: zmprov mcf zimbraMtaMaxMessageSize size-in-bytes

    So took that literally and set it to 10485760. I also set the attachment size to that limit but I could not find a corresponding value in the main.cf

    I checked the main.cf postfix file and saw my changes (good) However I tried to send a mail and it was rejected with the same message.

    Do I have to do a restart on tomcat, postfix all when I make that change?

    If so is there a chart that exists that can tell you when you need to restart something based on a config change.

    thanks

    Doug
    Last edited by dlochart; 12-21-2006 at 02:03 PM.

  2. #2
    Join Date
    Aug 2005
    Posts
    821
    Rep Power
    11

    Default

    not 100% on this, but zimbraMtaMaxMessageSize may be the max MIME message size. If it is and you send an 8MB zip file, the MIME message will be a hair over 33% larger (the data is base64 encoded). So, the 8MB message will be around 10.6MB.
    Sam Khavari

    :: :: [ Zimbra ] :: :: [ Bugzilla ] :: :: [ Product Portal ] :: :: [ Wiki ] :: :: [ Downloads ] :: :: [ . ] ::

  3. #3
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default base64 encoding

    The attachment may be <10MB, and so it'll get accepted by the ZCS's file upload system. But when it's serialized into a MIME message it ends up base64-encoded, which takes 4/3 as much space as the original attachment. The resulting (larger) MIME message is then handed off to postfix, which does a check against zimbraMtaMaxMessageSize and rejects the message if it's over the 10MB limit.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  4. #4
    Join Date
    Nov 2006
    Posts
    177
    Rep Power
    9

    Default

    Thanks that was exactly the case. However my disparity still remains (I realize I did not expound upon this). After I raised both limits with zmprov to 20 meg I logged back in as admin and went to the MTA global tab and still saw 10240 kb. How come the data is not reflected properly? Doesn't it refresh from the LDAP server or is there some sort of caching going on?

    thanks

  5. #5
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Yes to the caching

    I believe the server-side cache lifetime is 15 minutes. (I don't know if the admin client caches as well -- don't think so, but not sure.)

    If you're not using the -l switch to zmprov and you're calling zmprov on the same server as the admin client you're connecting to, you should get the update version, however.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Similar Threads

  1. attachment size
    By randyg in forum Administrators
    Replies: 4
    Last Post: 11-16-2006, 11:18 AM
  2. Increasing the size of an email
    By mansuper in forum Administrators
    Replies: 2
    Last Post: 10-30-2006, 12:36 AM
  3. Attachment Size Limits
    By tbullock in forum Administrators
    Replies: 11
    Last Post: 10-25-2006, 08:29 AM
  4. Replies: 2
    Last Post: 10-19-2006, 11:26 PM
  5. Attachment size
    By kowell in forum Administrators
    Replies: 2
    Last Post: 06-14-2006, 09:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •