Posts Tagged ‘Mail Server’

Change the Maximum Message Size In OS X Mail Server

Wednesday, August 14th, 2013

The default size limit of new mail messages in OS X 10.8 Server is 10 MB. That’s small for many environments. To increase to 20 MB, open Terminal. Use serveradmin to increase the number, plugging it into mail:postfix:message_size_limit as follows:

serveradmin settings mail:postfix:message_size_limit = 20971520

To change it back, you would use:

serveradmin settings mail:postfix:message_size_limit = 10485760

BCC Mail In OS X Server

Thursday, April 4th, 2013

OS X Server has the ability to bcc mail that flows through it. This can be a good way to keep a copy of mail for the purposes of things like legal requirements. To enable this feature, once upon a time you could use the GUI in OS X Server. These days, the feature is still there but is now accessed through the command line as the always_bcc_enabled option within serveradmin’s mail settings. To enable this option, use the following command:

sudo serveradmin settings mail:postfix:always_bcc_enabled = yes

Once enabled, you will also need to supply an actual address to bcc mail to, which is done using always_bcc as follows:

sudo serveradmin settings mail:postfix:always_bcc = "

Next, you’ll want to

sudo serveradmin stop mail
sudo serveradmin start mail

Finally, if there are any issues, putting the postfix logging facility into debug mode can help you triangulate, done using the following command (and restarting the mail service again):

sudo serveradmin settings mail:postfix:log_level = "debug"