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 monitor your Nginx server status and all connections per second just like Apache mod_status unde Debian or any Linux/Unix distribution follow this tutorial.

By default, Nginx web server comes with a module called  HttpStubStatusModule that provides information on Nginx active connections, connections per second and other.

This tutorial will show you how to enable this feature in Debian Squeeze:

1. Configure Ngins Status:

First, open the nginx.conf file. On Debian, this is located under the /etc/nginx directory.

# vi nginx.conf

Then add the followings in context location or under every virtualhost that you have configured:

location /nginx_status {
#This turn on stats
stub_status on;
access_log off;
#You can allow only from your home IP address or from any location
allow; #Let's day that this is your IP
#Uncomment the next line if you want to allow access to this from anywhere
#allow all;
deny all;

2. Save and close the file and reload nginx server:

/etc/init.d/nginx restart
[ ok ] Restarting nginx: nginx.

OR Continue Reading…

CentOS 6.4 was Released

Valic —  March 10, 2013 — Leave a comment

CentOS team was announced today the release of CentOS-6.4  install media for i386 and x86_64 Architectures.

You should look on those release notes for 6.4  that are available here:

CentOS-6.4 is based on the upstream release EL 6.4 and includes packages from all variants. All upstream repositories have been combined into one, to make it easier for end users to work with.

There are some changes in this release, compared with the past CentOS-6 releases, and is highly recommend for everyone to read the Release Notes.

All updates released since upstream 6.4 release are also released to the CentOS-6.4 mirrors

Torrent files for the DVD’s are available at :

You can also use a mirror close to you :

More info here

When you are browsing a website, you can check the type of web server running by retrieving the response server header. For example the following server response return for website

HTTP/1.1 200 OK
Server: Apache/2.2.22
Date: Mon, 04 Mar 2013 00:43:59 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.2.17
Cache-Control: max-age=7200
Expires: Mon, 04 Mar 2013 02:43:58 GMT
Vary: Accept-Encoding

From the information we can know that the web server is running on Apache version 2.2.22.

By using NginX you can personalize and customize your server header to the name that you want. Instead of showing the real web server name which is “nginx“  you can set for users to see the web server name as “my websites webserver“.

In this guide I will show you how to  customize server header using NginX headers-more module without compiling again the server.

1. Install Nginx webserver if you don’t have it installed already.

You can use this guide to do it: Setting up Nginx plus PHP FastCGI on Debian 6.0.6 Squeeze

2.Install nginx-extras package.

In Debian Squeeze exists one package called nginx-extras that contains some standard modules, plus extra features and modules like headers-more-module and others. You can find more info here:

Install the nginx-extras packages like this:

apt-get install nginx-extras

3. Make some changes under  http directive to NginX configuration file which located under /etc/nginx/nginx.conf as below: Continue Reading…

Debian Squeeze: 6.0.7 Released

Valic —  February 24, 2013 — Leave a comment

On February 23rd, 2013 Debian Squeeze version 6.0.7 was released.

This update mainly adds corrections for security problems to the stable release, along with a few adjustments for serious problems. Security advisories were already published separately and are referenced where available.

Please note that this update does not constitute a new version of Debian 6.0 but only updates some of the packages included. There is no need to throw away 6.0 CDs or DVDs but only to update via an up-to-date Debian mirror after an installation, to cause any out of date packages to be updated.

Those who frequently install updates from won’t have to update many packages and most updates from are included in this update.

New installation media and CD and DVD images containing updated packages will be available soon at the regular locations.

Upgrading to this revision online is usually done by pointing the aptitude (or apt) package tool (see the sources.list(5) manual page) to one of Debian’s many FTP or HTTP mirrors. A comprehensive list of mirrors is available at:

More info here