Dovecot with MBOX, IMAP and subfolders, or “Target mailbox doesn’t allow inferior mailboxes”

The MBOX format limits your clients to creating subfolders that can either store folders, or emails, not both. When creating a folder, you differentiate between a folder for storing folders or for storing emails by adding or leaving out a forward slash at the end of the folder name: A folder name like ‘withsubfolders/’ will […]

awstats + GeoIP


2.下載所需要的資料 wget wget wget

3.建立資料夾 sudo mkdir /usr/share/GeoIP


mv GeoIP.dat.gz /usr/share/GeoIP/ gunzip /usr/share/GeoIP/GeoIP.dat.gz mv GeoLiteCity.dat.gz /usr/share/GeoIP/ gunzip /usr/share/GeoIP/GeoLiteCity.dat.gz mv GeoIPASNum.dat.gz /usr/share/GeoIP/ gunzip /usr/share/GeoIP/GeoIPASNum.dat.gz 5.下載與安裝GeoIP套件 wget tar -xvzf GeoIP.tar.gz cd GeoIP-1.4.6 ./configure make make check sudo make install *注意你在./configur,查看是否有錯誤,版主出現少一個套件名稱 configure: error: Zlib header (zlib.h) not found. Tor requires zlib […]


[hgallery3 id=”10124″ height=”231″ width=”320]

Load balancing & NAT-ing multiple uplinks on Linux

LAN: eth0:

IP1: eth1:, gateway:

IP2: eth2:, gateway:

So here is how I would do by using iptables method:

Route tables

First edit the /etc/iproute2/rt_tables to add a map between route table numbers and ISP names

… 10 IP1 20 IP2 …

So table 10 and 20 is for ISP1 […]