Tag: mountain lion server

Mountain Lion Server: Mail Message Size Limit

By default, Mountain Lion Server’s installation of Postfix (the mail server), each email has a default size limit of 10 MB.  That’s generally OK, but to avoid errors and undelivered emails, many people advise increasing the limit.

In order to increase the size limit to 25 MB, open Terminal.  Type in the following command, then press enter.  Once you press enter, you’ll be prompted to enter your administrator password.

Select Code
sudo serveradmin settings mail:postfix:message_size_limit = 26214400

Although generally not required, you can restart the mail server.  Do to this, open Terminal and execute the following command:

Select Code
sudo postfix reload

Then, open the Server app and toggle the Mail service off and on again.

You’re done.


If you have any questions or trouble with these commands, just comment here and I’ll be happy to offer some assistance.



Mountain Lion Server: Disable Greylisting

Greylisting. Was it ever a good idea?ServerCenter

Well, some say so.  Greylisting (detailed at Greylisting.org) is a spam prevention technique for mail servers.  The concept is simple:

– When your mail server receives a message from a new sender, the server temporarily rejects the message with a “try again later” or “delay” message.

– Most outgoing mail servers (senders) will indeed try again.  Sometimes this doesn’t occur for a while, though.  15 minutes, 30 minutes, a hour….longer.

– When the message is sent again, it’s cleared and delivered to the user.

Most spammers don’t get this option.  Spammers are smart, though! They know this trick. So, was this ever a good idea?  Maybe.  Is it useful now?  I say no.

Disable Greylisting on Mac OS X Mountain Lion Server

Open Terminal on your server and execute the following command:

Select Code
sudo serveradmin settings mail:postfix:greylist_disable = yes

You can restart the Mail server, as needed.


You’re done.  Comment here if you have any challenges using this command.