amperfrombeinasco

Q: Mail on OS X Server ver. 5.1

Good morning.

 

A question about Mail Server!

I want to set NO limits for single email size (with attachments).

Default value seems to be max 10 MB...

For my needs it is not enough

Now when somebody send a big e-mail to one account on the server, receives this message:

 

  SMTP error: 552 5.3.4 Message size exceeds fixed limit


This message is repeated many times.

Also, how can I stop it?

 

Can you help me?

Many thanks and best regards!

Mac Pro, OS X Server, El Capitan + app "OS X Server"

Posted on Apr 6, 2016 11:21 PM

Close

Q: Mail on OS X Server ver. 5.1

  • All replies
  • Helpful answers

  • by Andy Woollard,

    Andy Woollard Andy Woollard Apr 7, 2016 12:37 AM in response to amperfrombeinasco
    Level 1 (44 points)
    Apr 7, 2016 12:37 AM in response to amperfrombeinasco

    you do it in terminal

     

    OS X Server: Adjusting message size limits for the Mail service

    In OS X Server (Mountain Lion) and OS X Server (Mavericks), the default Mail service configuration limits delivery of messages to 10 MB or less. Messages larger than 10 MB will be rejected by the Server.

    To change the message size limit, execute the following command:

    sudo serveradmin settings mail:postfix:message_size_limit = number 

    The number in the command above is equal to the desired message size limit in bytes.  To calculate the correct value for the desired size limit, multiply the MB value by 1048576. For example, for a 20 MB limit, the calculation would be 20x1048576=20971520. The number in the above command would therefore be 20971520.

    Note: Excessively small values will result in the loss of non-delivery notifications, when a bounce message size exceeds the local or remote MTA's message size limit.

    Learn more

    To disable the message size limit, execute the following command:

    sudo serveradmin settings mail:postfix:message_size_limit_enabled = no 

    Note: The size limit can be reinstated by using the same command with a value of yes in place of no.

    You can check the current message size limit value with this command:

    sudo serveradmin settings mail:postfix:message_size_limit
  • by amperfrombeinasco,

    amperfrombeinasco amperfrombeinasco Apr 10, 2016 11:39 PM in response to Andy Woollard
    Level 1 (4 points)
    Mac OS X
    Apr 10, 2016 11:39 PM in response to Andy Woollard

    Dear Andy,

    MANY THANKS!

    You have solved our problem in exhaustive mode!

    Best regards.

  • by pterobyte,

    pterobyte pterobyte Apr 11, 2016 2:03 AM in response to amperfrombeinasco
    Level 6 (11,101 points)
    Servers Enterprise
    Apr 11, 2016 2:03 AM in response to amperfrombeinasco

    amperfrombeinasco: How about marking Andy's answer as the solution so that others can profit from this thread too? And to give credit where credit is due?

  • by amperfrombeinasco,

    amperfrombeinasco amperfrombeinasco Apr 12, 2016 11:20 PM in response to amperfrombeinasco
    Level 1 (4 points)
    Mac OS X
    Apr 12, 2016 11:20 PM in response to amperfrombeinasco

    I don't understand...

    What do you mean with "marking"?

    I'm new in this community...

     

    Many thanks and best regards.

  • by pterobyte,

    pterobyte pterobyte Apr 13, 2016 6:40 AM in response to amperfrombeinasco
    Level 6 (11,101 points)
    Servers Enterprise
    Apr 13, 2016 6:40 AM in response to amperfrombeinasco

    Below Andy's post, click on "This solved my question".