目前分類:CentOS (10)

瀏覽方式: 標題列表 簡短摘要

CentOS 6 vmtools 安裝

安裝前,先安裝下列

yum -y install perl gcc make kernel-headers kernel-devel

文章標籤

linux988 發表在 痞客邦 留言(0) 人氣()

CentOS 6 + amavisd-new + clamav

(1)安裝amavisd-new 與 clamav 相關套件

1. 安裝rpmforge
http://wiki.centos.org/zh-tw/AdditionalResources/Repositories/RPMForge?action=show&redirect=zh-tw%2FRepositories%2FRPMForge

2. 應該直接走步驟3與步驟4, 但是筆者會發生某些附屬套件未安裝的錯誤 , 常見 lz 套件
 2.1  安裝 lz 函式庫
      yum install lzo
 2.2  安裝lzop程式
     yum install lzop
     若無法安裝 lzop ,請 http://rpmfind.net 找 lzop 這個套件, 下載後安裝

3. 安裝防毒軟體(clamav的設定不在此討論範圍)
yum install clamav

4. amavisd-new
yum install amavisd-new


(2) 設定amavisd-new 
修改/etc/amavisd.conf 找出mydomain='test.com.tw', 改成自己的網域

(3) 設定postfix
1. /etc/postfix/main.cf 要有這些設定
soft_bounce = yes
content_filter = amavisfeed:[127.0.0.1]:10024

2. /etc/postfix/master.cf 加上以下設定

amavisfeed unix    -       -       n        -      2     lmtp
    -o lmtp_data_done_timeout=1200
    -o lmtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20

amavisfeed unix    -       -       n       -       2     smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20

127.0.0.1:10025 inet n    -       n       -       -     smtpd
    -o content_filter=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_data_restrictions=reject_unauth_pipelining
    -o smtpd_end_of_data_restrictions=
    -o smtpd_restriction_classes=
    -o mynetworks=127.0.0.0/8
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters
    -o local_header_rewrite_clients=
3. /etc/amavisd.conf要有這兩個
$notify_method  = 'smtp:[127.0.0.1]:10025';
$forward_method = 'smtp:[127.0.0.1]:10025';  # set to undef with milter!

 
文章標籤

linux988 發表在 痞客邦 留言(0) 人氣()

直接執行 service iptables save 就會儲存規則到

/etc/sysconfig/iptables

重開機,就完成了!

文章標籤

linux988 發表在 痞客邦 留言(0) 人氣()

修改 /etc/dovecot/dovecot.conf

protocols = imap pop3

listen = *

文章標籤

linux988 發表在 痞客邦 留言(0) 人氣()

編輯 /etc/sysctl.conf 加入以下敘述:

# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1

文章標籤

linux988 發表在 痞客邦 留言(0) 人氣()

SFTP 感覺上比 FTP 要來得安全些,其實 vsFTPD 已經很好用了,但老大就是要用 SFTP ,所以就去搜尋了一下,發現新版的 OpenSSH 也可以用 SFTP ,也實做OK,但是一直卡在 Log ,所以就回頭找 FTP 服務的軟體,剛好最新版本的 ProFTPD 有提供 SFTP 的功能,並且也修正了一些 Bug,所以就在幸運之神的眷顧下完成了。

1.到 ProFTPD 的官網 ( ftp://ftp.proftpd.org/distrib/source/ ) 下載最新的版本,我是下載 proftpd-1.3.3b.tar.gz

linux988 發表在 痞客邦 留言(1) 人氣()

CentOS 預設開啟很多服務,但拿來當 Server 時有很多服務是用不到的,所以就列下清單把不需要的服務關閉,增加系統效能 ,以下指令可以知道你的系統預設把多少服務給開啟。

#chkconfig --list |grep "3:on" |awk '{print $1}' |sort

 

linux988 發表在 痞客邦 留言(1) 人氣()

1.CentOS光碟開機後,按下 (Enter) 開始安裝(install)
CentOS5.2-install-01.png  

linux988 發表在 痞客邦 留言(0) 人氣()

yum install clamd

/etc/init.d/clamd start

linux988 發表在 痞客邦 留言(0) 人氣()

CentOS Adding RPMforge to Yum

1. Launch Firefox and go to http://dag.wieers.com/rpm/FAQ.php#B2. Click on the package appropriate for your version of Red Hat Enterprise Linux or CentOS.

2. Choose Open with Software Installer (default) and click Ok.

linux988 發表在 痞客邦 留言(0) 人氣()