Fix: Postfix File too big error

Valic —  March 13, 2013 — 1 Comment

I was looking in my server logs and I’ve found an error from my Postfix Mail Server. That appeared when I wanted to send a 10MB backup trough mail. The error was found in /var/log/mail.err file and looks like this:

postfix/postdrop[197353]: warning: uid=0: File too large
postfix/sendmail[197352]: fatal: root(0): message file too big

To check the default attachments size settings of Postfix use the following command:

# postconf -d | grep size
berkeley_db_create_buffer_size = 16777216
berkeley_db_read_buffer_size = 131072
body_checks_size_limit = 51200
bounce_size_limit = 50000
header_size_limit = 102400
mailbox_size_limit = 51200000
message_size_limit = 10240000
tcp_windowsize = 0

As you can see the Postfix default value for a mailbox size is 51200000 bytes and max message size is 10240000 bytes.
To fix this issue the maximum outgoing message size needs to be increased as well as the mailbox size.
By entering the following commands we will set unlimited for both, mailbox size and max message size:

postconf -e mailbox_size_limit=0 Continue Reading...

If you want to set-up an mail server in Debian Linux using Postfix and SquirrelMail you need to follow the next guide:

Step1.  Install Postfix:

apt-get install postfix

This command will remove sendmail. Sendmail is installed by default on Debian.

Step2. Configure Postfix:

Open the file /etc/postfix/ with your favorite editor and uncomment or add the followins:

inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
home_mailbox = Maildir/

Step3. Restart and test if Postfix is working:

/etc/init.d/postfix restart

Continue Reading…

To delete the Postfix mail queue use the following command:

root@deb:~# postsuper -d ALL
postsuper: Deleted: 5 messages

You can also use man postsuper command for more options.

The Spamhaus Project is one of the largest anti-spam DNS blacklist services known. Founded in 1998, Spamhaus has operations in Geneva, Switzerland, and London in addition to the 28 investigators and forensic specialists located in 8 countries. Spamhaus is a true 24 hour a day anti-spam operation. With over 60 public DNS Servers distributed across 18 countries, Spamhaus is able to serve billion of DNS requests to the world over, all free of charge. It has been estimated that 1.4 billion users mailboxes are in some way protected by The Spamhaus Project every day.

Here, I will show you a script that automatically blocks IPs blocked by Spamhaus:



echo “”
echo -n “Deleting DROP list from existing firewall…”

Continue Reading…

In this article you are going to learn how to install Postfix on your already running Debian 5.0.

I am going to assume you have it networked and have a domain registered that you want to use. At the end of this article you should have a working mail server, ready for use:


apt-get install postfix


The file for confugure is /etc/postfix/

To set your Postfix installation up for your domain you will want to open that file for editing like so:

nano /etc/postfix/

The above command opens in the Nano editor. What you need to look for is this section:

Continue Reading…