Tag Archives: Linux

PostFWD example configuration

Posted on .

This is something I’ve been tweaking for a few months now. I’ve got it filtering 99% of spam before it hits content filtering.

Postfix v2.5.5 using PostFWD v1.18 as a policy daemon with PostGrey v1.31 for greylisting.

apt-get error “Dynamic MMap ran out of room”

Posted on .

After adding a few extra repositories to /etc/apt/sources.list I then ran an apt-get update and came accross the following error:

Fetched 8399kB in 5s (1427kB/s)
Reading package lists... Error!
E: Dynamic MMap ran out of room
E: Error occurred while processing umbrello (NewVersion1)
E: Problem with MergeList [...]
E: The package lists or status file could not be parsed or opened.

The reason being is that the disk cache used by apt when parsing packages is now too small to handle the number of packages available.

On debian, I created a new file at /etc/apt/apt.conf.d/99user adding the following line:

APT::Cache-Limit "20000000";

Don’t forget the trailing semicolon (;).

This fix is for any distro using apt-get, like debian, ubuntu etc.

Synchronize Windows with a Linux ntpd server


I have a Windows Server 2008 DC and I wanted to use my internal time server on a linux box running ntpd.

After a little hunting around, I found the command required to set Windows up to use the correct time peer.
w32tm /config /update /manualpeerlist:"0.pool.ntp.org,0x8 1.pool.ntp.org,0x8" /syncfromflags:MANUAL

After making this change, you need to restart the Windows Time Service by issuing the following 2 commands,
net stop w32time
net start w32time

If you have problems, first make sure the Windows Time Service is enabled.

This works with Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008.

ProFTPd Connection Delay

Posted on .

I noticed that ProFTPd took a few seconds to connect. On a LAN, it should be instant.

Sniffing traffic, it seemed that ProFTPd was first making an auth request using the ident protocol before falling back to user/pass authentication. This seems to be the standard behaviour according to RFC’s 912, 931 and 1413

Some google searching turned up a page over at metafilter concerning connection delay.

Adding this to the ProFTPd configuration file disabled the auth checks and made connecting/authorising instant, as it should be.
IdentLookups off

On Debian, the ProFTPd config file is at /etc/proftpd/proftpd.conf