Archive for the ‘Performance Tuning’ Category

Set display name of outgoing Emails send by phpBB311

Thursday, November 13th, 2008

phpBB3 [version 3.0.3] by default cannot set the display name in the headers of outgoing emails. You could try all you want from the administration control panel but a look under the hood in the source code will tell you its almost impossible.

Fixing it is pretty easy.

open file phpBB3_root_path/includes/functions_messenger.php
find:
$headers[] = 'From: ' . $this->;from;
replace with:
$headers[] = 'From: Display Name ' . $this->;from;
find:
$headers[] = 'Reply-To: ' . $this->;replyto;
replace with:
headers[] = 'Reply-To: Display Name ' . $this->;replyto;
find:
$headers[] = 'Return-Path: <' . $config['board_email'] . '>;';
replace with:
$headers[] = 'Return-Path: Display Name <' . $config['board_email'] . '>;';
find:
$headers[] = 'Sender: <' . $config['board_email'] . '>;';
replace with:
$headers[] = 'Sender: Display Name <' . $config['board_email'] . '>;';

That should do the trick. Did it work for you ?

ip_conntrack: table full, dropping packet

Friday, September 19th, 2008

Looking at syslog from my load balancing server that runs Linux LVS I noticed something that I had never seen before:
server2 kernel: [43206369.830000] ip_conntrack: table full, dropping packet.
It appears that my server has hit the maximum number of concurrent connections that can be tracked

Increasing the table size

The maximum number of connections tracked can be found by:

$sudo cat /proc/sys/net/ipv4/netfilter/ip_conntrack_max
65536

Time to double to number of connections that the table can track:

$sudo nano /etc/sysctl.conf

and add the line

net.ipv4.netfilter.ip_conntrack_max = 131072

reload the sysctl.conf

$sudo sysctl -p

Further Reading:

Netfilter conntrack performance tweaking