Tag Archive: Debian

I was getting the following error in my logs whenever my server would attempt to e-mail me my daily backup file (8mb):

postfix/postdrop[21071]: warning: uid=1001: File too large Mar 28 00:00:11 xxxxx postfix/sendmail[21070]: fatal: xxxxx(1001): message file too big

To solve this, the maximum outgoing message size needs to be increased. Run the following command:

nano /etc/postfix/main.cf

Add the following entry to the end of the file:

message_size_limit = 20480000

Run the following command to restart postfix:

/etc/init.d/postfix restart

After doing this, the server was once again able to send out my backups.


The apt repository only includes JDK version 6 or version 5.16. Versions of 5 prior to update 17 have a known security vulnerability, so you may want to use 5.18 instead. However, this requires a manual install. From Java-free install of Ubuntu/Debian, follow the instructions here, taking careful note of logging in as the different uses (e.g., follow the instructions explicitly): http://www.debianhelp.co.uk/debianjava.htm.

After this, you’ll need to set the JAVA_HOME variable and include it in your path. Include the following lines at the end of /etc/profile and /etc/bash.bashrc (see the explanation of Debian/Ubuntu environment variables here: https://help.ubuntu.com/community/EnvironmentVariables#System-wide):

export JAVA_OPTS="-server -Xms768m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:NewSize=192m -XX:MaxNewSize=384m"
export JAVA_HOME="/usr/bin/java"
export JDK_HOME="${JAVA_HOME}"
export PATH="${JAVA_HOME}/bin:${PATH}"