瀏覽模式: 普通 | 列表

tar解壓縮不用加-z或-j

它自已可以辨識,什麼版本以上才可以?
不過至少在tar (GNU tar) 1.15.1版本,是不用加 -z 或 -j 參數

MySQL3升級MySQL4 + 亂碼問題

3版資料庫環境
Client characterset: latin1
Server characterset: latin1

[閱讀全文]

Postfix + main.cf + queue

發很多廣告信時所作的郵件遞送機制

狀況一

maximal_queue_lifetime = 3d
queue_run_delay = 12h
minimal_backoff = 1000s # default
maximal_backoff = 4000s # default

      /var/log/maillog查同一封信的發送時間

00:12
00:28
12:28

[閱讀全文]

標籤: postfix

bac_function

# 2006/12/04 authored by cross@ssorc.tw
# Function for bac_serv.sh
# Local Host with Database
FuncDBlocal() {

[閱讀全文]

bac_serv.sh

#!/bin/bash
# 2006/12/04 be authored by cross@ssorc.tw
#
# Purpose:
#       Increment backup and keeps the data some days.
#
# ChangeLog:
#       2007/04/17 fixed 保留備份逾一個月
#       2006/12/15 fixed bac_function path
#                       "source bac_function" to "source `echo ${0%/*}`/bac_function"
#                  fixed "if file exist and exit 0" to "if []; then else fi"
#
# Plan:
#       2007/xx/xx add sync or hard link
#       2007/xx/xx add check space dir and exclude it.
#       2007/xx/xx add scp options for Yes or No.
#       2007/xx/xx add which database can be choice.
#       2007/xx/xx add display the progress, or not.
#
#set -x

export LANG=C

[閱讀全文]

查看 logrotate 沒有運作的原因

遇到 logrotate沒運作的時後,從 http://www.neo.com.tw/archives/000531.html得知
我就直接下這指令就ok了,

/usr/sbin/logrotate /etc/logrotate.conf

Postfix + virtual domain + MySQL + Dovecot + mailbox

[1] 編譯

    更新 postfix-2.3.3

        make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -DUSE_SASL_AUTH -DUSE_TLS -DDEF_SERVER_SASL_TYPE="dovecot" -I/usr/include/mysql' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lssl -lcrypto -lz -lm'

        make upgrade

    更新 dovecot-1.0.rc15

        ./configure --with-pgsql --with-sql --with-pam --with-shadow --with-passwd-file --with-passwd --with-mysql

        make && make install

[2] 建立 MySQL

CREATE TABLE `domains` (

[閱讀全文]

標籤: postfix