公告版位

使用 SME Server 建置中小企業級伺服器

SME Server 特色

Posted by anderson1029 at 痞客邦 PIXNET Comments(1) Trackback(0) Hits(464)

目的: 把 Linux 塞進 1.44MB 磁片中, 以該磁片開機後能透過網卡連上網路

環境:

Posted by anderson1029 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(412)

幾天前在 Linux Today 看到了這篇文章: Linux.com - How to configure a low-cost load-balanced LAMP cluster (LAMP, Linux & Apache & MySQL & PHP / Perl / Python)

以下是基於該篇文章進行實作後的心得與備忘:

Posted by anderson1029 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(154)

IMSpector 特色

  • 以 Transparent Proxy 模式截錄資料
  • 支援 MSN, Yahoo, ICQ, AIM, IRC
  • 支援 MySQL, SQLite 資料庫
  • "髒話過濾" (badwords filter) 功能

一般安裝步驟

Posted by anderson1029 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(1637)

iptables recent module 操作備忘

  • 同一個 IP 來源在一個小時內只允許建立(或嘗試)五次 SSH 連線
  • 建立解除封鎖的後門
  • /proc/net/ipt_recent/* 清單

同一個 IP 來源在一個小時內只允許建立(或嘗試)三次 SSH 連線

Posted by anderson1029 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(282)

  • 設定 MailScanner 取用 Whitelist / Blacklist Rules File
  • 設定 /etc/sudoers, 讓 PHP 程式可執行 /etc/init.d/MailScanner reload
  • 透過 PHP 網頁維護黑白名單
    • 避免使用者回上頁、重新整理網頁造成資料錯亂
    • 以 md5 函數檢查檔案是否遭到其他使用者異動
    • 以 exec 函數執行 sudo /etc/init.d/MailScanner reload

環境: CentOS 5, Apache HTTP Server 2.2.3, PHP 5.1.6, MailScanner 4.71.10

cd /etc/MailScanner

Posted by anderson1029 at 痞客邦 PIXNET Comments(1) Trackback(0) Hits(334)

什麼是 Greylist?

環境: CentOS 5 with RPMforge repos

Posted by anderson1029 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(212)

問題: /var/spool/mail/someone 容量達 2GB 導致 openwebmail 處理速度緩慢

解決方法: 使用 archivemailarchmbox 等郵件歸檔工具, 將舊信件匯入 ~/mail/, 讓 openwebmail / imap 可直接從 ~/mail/ 讀取歸檔的郵件

Posted by anderson1029 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(213)

自製郵件發送程式

目的: 以 perl、shell script 自製可夾帶檔案 (使用 MIME 格式) 的郵件發送程式

系統需求: perl、sendmail

Posted by anderson1029 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(136)

讓 sendmail 自動回覆信件

渡假去? 只要使用 Vacation Mail Responder 或 Openwebmail 內建的自動回覆功能, 就不會因為無法回信讓別人誤以為信件寄丟.

Posted by anderson1029 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(195)