2011年1月29日 星期六

Solstice Backup 6.1 中斷備份方法

停止savegrp 指令行程式
若要停止savegrp指令行程式:
1. 使用ps 指令確定savegrp程序ID:
# ps -ef | grep savegrp
程序ID 將以㆘列格式顯示:
2. 使用kill指令停止savegrp程序:
root 程序id 4769 0 13:53:10 pts/2 0:00 savegrp myGroup
# kill 程序id

2009年9月25日 星期五

CISCO ASA/PIX URL Filter設定方式

起因是看到網路上都在討論要如何擋facebook....

請參閱:

這裡

本來以為ASA/PIX不支援URL Filter,後來找一找發現還是有支援,不過設定比較繁瑣....

action只有drop和reset可以選,很可惜沒有redirect的選項....

不然就可以把match rule的連線導到別的網站去.....形成一個鬼打牆的狀況讓User搞不清楚....

2009年6月29日 星期一

Vista裡的Windows Mail無法直接開啟附件解決辦法

Vista裡的Windows Mail會出現無法直接開啟附件的狀況(如.doc or .pdf or .ppt)
可是存到桌面在開啟卻可以正常開啟....

解法:

doc http://www.winhelponline.com/articles/232/1/Unable-to-open-DOC-attachments-from-Windows-Mail.html
pdf http://www.winhelponline.com/articles/236/1/Unable-to-open-PDF-attachments-from-Windows-Mail.html
ppt http://www.winhelponline.com/articles/149/1/Unable-to-open-PPS-attachments-directly-from-Windows-Mail-in-Windows-Vista.html

2009年5月20日 星期三

Spamassassin裡的DCC.....

要開啟spamassassin裡的DCC還要一些步驟.....

可以參考

http://erichuang89.blogspot.com/2008/09/dcc.html

寫得非常詳細.....

2008年6月26日 星期四

postfix + dovecot + openwebmail 建立Virtual User的mail server

網路上找到有關建立virtual user的mail server文章幾乎都是用vm-pop3,不過好幾年沒有新版本,可能已經停止開發了,而且不支援SSL,也不支援SASL認證,導致要用Pop-before-smtp來防止被relay,所以這邊改用dovecot....他支援SSL,SASL.

關於postfix和openwebmail的設定參考這邊,在postfix+vm-pop3+openwbemail的架構下把vm-pop3換成dovecot,這樣就還是可以用openwebmail來開帳號,比較方便.

修改/etc/dovecot.conf下面幾行:

protocols = pop3 pop3s
listen = *
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
log_timestamp = "%b %d %H:%M:%S "
syslog_facility = mail
mail_privileged_group = mail
first_valid_uid = 8

下面是設定virtual user的信箱位置,帳號,和密碼檔
mail_location = mbox:/var/spool/virtual/%d:INBOX=/var/spool/virtual/%d/%n:INDEX=MEMORY
mechanisms = plain login digest-md5 cram-md5
passdb passwd-file {
args = /etc/virtual/%d/passwd
}
userdb static {
args = uid=8 gid=12
}

下面是增加tls的設定
ssl_cert_file = /etc/pki/dovecot/certs/dovecot.pem
ssl_key_file = /etc/pki/dovecot/private/dovecot.pem
ssl_disable = no
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}

dovecot.pem的產生,先到 /etc/pki/tls/certs 目錄內,用裡面的 Makefile 檔案協助建立就可以.
make dovecot.pem

postfix使用doecot sasl認證,參考這邊:
smtpd_sasl_type = dovecot
# Can be an absolute path, or relative to $queue_directory
smtpd_sasl_path = private/auth
# and the common settings to enable SASL:
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous

2008年6月16日 星期一

perl和openwebmail的相容問題

WARNING: please note, that UTF-8 support is broken in recent versionsof perl's CGI.pm module. To find out if you're affected, please run

perl -e 'use CGI; print "$CGI::VERSION\n";'

If your version is 3.21 or higher, you need to find the file CGI.pmin your system's perl tree (/usr/lib/perl5/..., /usr/local/lib/perl5/...or so) and replace the line:

my $utf8 = $charset eq 'utf-8';

with:

my $utf8 = 0;

2008-06-26 update:後來新版的openwebmail好像有改善這個問題,用Fedora 9安裝新版openwebmail就沒這問題了...

2008年4月14日 星期一

Windows下查詢及清除DNS快取

刪除DNS快取 ipconfig /flushdns
查詢DNS快取 ipconfig /displaydns

刪除之後,IE要重開才會生效