HVAonline
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.

HVAonline

Security, Designing, Hacking, Programming
 
Trang ChínhLatest imagesTìm kiếmĐăng kýĐăng Nhập
Tìm kiếm
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Xác định định dạng dữ liệu
Làm mail server với Postfix I_icon_minitimeFri Jul 10, 2015 7:02 pm by tran quang huy

» Compra Viagra. viagra generico catalogo
Làm mail server với Postfix I_icon_minitimeThu Aug 04, 2011 1:25 pm by Khách viếng thăm

» Compra Viagra. viagra generico all estero
Làm mail server với Postfix I_icon_minitimeThu Aug 04, 2011 11:55 am by Khách viếng thăm

» real time gaming online casinos
Làm mail server với Postfix I_icon_minitimeWed Aug 03, 2011 8:11 pm by Khách viếng thăm

» Why wont my phone lt me use GIF images?
Làm mail server với Postfix I_icon_minitimeWed Aug 03, 2011 7:34 pm by Khách viếng thăm

» fish oil dietary supplement
Làm mail server với Postfix I_icon_minitimeWed Aug 03, 2011 9:44 am by Khách viếng thăm

» How do i turn on cookies on .my headset?
Làm mail server với Postfix I_icon_minitimeTue Aug 02, 2011 10:25 pm by Khách viếng thăm

» гинекология грибы
Làm mail server với Postfix I_icon_minitimeMon Aug 01, 2011 10:33 pm by Khách viếng thăm

» backlink popularity backlink services
Làm mail server với Postfix I_icon_minitimeMon Aug 01, 2011 3:34 pm by Khách viếng thăm

Top posters
conmale
Làm mail server với Postfix EmptyLàm mail server với Postfix I_voting_barLàm mail server với Postfix Empty 
quanta
Làm mail server với Postfix EmptyLàm mail server với Postfix I_voting_barLàm mail server với Postfix Empty 
seamoun
Làm mail server với Postfix EmptyLàm mail server với Postfix I_voting_barLàm mail server với Postfix Empty 
mrro
Làm mail server với Postfix EmptyLàm mail server với Postfix I_voting_barLàm mail server với Postfix Empty 
quanlytruong
Làm mail server với Postfix EmptyLàm mail server với Postfix I_voting_barLàm mail server với Postfix Empty 
mulan
Làm mail server với Postfix EmptyLàm mail server với Postfix I_voting_barLàm mail server với Postfix Empty 
TranVanMinh
Làm mail server với Postfix EmptyLàm mail server với Postfix I_voting_barLàm mail server với Postfix Empty 
Z0rr0
Làm mail server với Postfix EmptyLàm mail server với Postfix I_voting_barLàm mail server với Postfix Empty 
zeno
Làm mail server với Postfix EmptyLàm mail server với Postfix I_voting_barLàm mail server với Postfix Empty 
WinDak
Làm mail server với Postfix EmptyLàm mail server với Postfix I_voting_barLàm mail server với Postfix Empty 
Thống Kê
Hiện có 13 người đang truy cập Diễn Đàn, gồm: 0 Thành viên, 0 Thành viên ẩn danh và 13 Khách viếng thăm

Không

Số người truy cập cùng lúc nhiều nhất là 64 người, vào ngày Sun Oct 13, 2024 2:44 am

 

 Làm mail server với Postfix

Go down 
Tác giảThông điệp
TranVanMinh

TranVanMinh


Tổng số bài gửi : 11
Join date : 18/10/2010

Làm mail server với Postfix Empty
Bài gửiTiêu đề: Làm mail server với Postfix   Làm mail server với Postfix I_icon_minitimeMon Oct 18, 2010 9:43 pm

Postfix + amavisd-new + ClamAV


Nội dung

1. Giới thiệu
2. Cài đặt, cấu hình
3. Tham khảo

Giới thiệu

ClamAV: http://www.clamav.net/
amavisd-new: http://www.ijs.si/software/amavisd/
Postfix: http://www.postfix.org/

Bắt đầu viết: tháng 5 năm 2003.
Thay đổi lần cuối vào lúc: Sun Feb 1 12:47:44 JST 2004.

Cài đặt và cấu hình

1. Phần 1: Cài đặt, cấu hình Clam AntiVirus
* tải rpm và cài đặt

// tải rpm cho FC2
// rpm cho FC phiên bản khác: tìm ở http://crash.fce.vutbr.cz/crash-hat/
$ wget http://crash.fce.vutbr.cz/crash-hat/2/clamav/clamav-version.i386.rpm

// cài đặt
# rpm -ivh clamav-version.i386.rpm

* Cấu hình: sửa đổi 2 file /etc/freshclam.conf và /etc/clamav.conf
Chú ý: phiên bản trước 0.80 : clamd.conf, từ 0.80: clamav.conf

file /etc/freshclam.conf (tự động cập nhật thông tin virus)


##
## ví dụ về freshclam.conf
## đọc clamd.conf(5) manual để biết cách cấu hình
##

# nơi giữ thông tin virus
DatabaseDirectory /var/lib/clamav

# vị trí log
UpdateLogFile /var/log/clamav/freshclam.log

# thông tin pid
PidFile /var/run/clamav/freshclam.pid

# chạy freshclam bằng tài khoản sau đây
DatabaseOwner clamav

# dùng DNS TXT record để xác định phiên bản
DNSDatabaseInfo current.cvd.clamav.net

# địa chỉ cập nhật thông tin virus (round-robin DNS)
# XY là mã quốc gia, xem http://www.iana.org/cctld/cctld-whois.htm
DatabaseMirror db.XY.clamav.net
#DatabaseMirror database.clamav.net

# thử làm lại, trường hợp không kết nối được
MaxAttempts 3

# cập nhật thông tin virus, 12 lần/ngày (every 2 hour)
Checks 12

# Nếu dùng proxy
#HTTPProxyServer myproxy.com
#HTTPProxyPort 1234
#HTTPProxyUsername myusername
#HTTPProxyPassword mypass

# RELOAD clamd nếu có thông tin virus mới
NotifyClamd /etc/clamd.conf



file /etc/clamav.conf (chương trình chính)


##
## ví dụ về clamav.conf
## đọc clamd.conf(5) manual để biết cách cấu hình
##

# vị trí log
LogFile /var/log/clamav/clamd.log

# giới hạn cỡ log file, mặc định là 1 MB.
# 0: không giới hạn
LogFileMaxSize 0

# dùng system logger
LogSyslog

# thông tin pid
PidFile /var/run/clamav/clamd.pid

# vùng tạm
TemporaryDirectory /tmp

# nơi giữ thông tin virus
DatabaseDirectory /var/lib/clamav

# chỉ nhận yêu cầu từ cổng 3310 của localhost
TCPSocket 3310
TCPAddr 127.0.0.1


# những option khác: có thể dùng giá trị mặc định


* khởi động ClamAV

# chkconfig --level 3 freshclam on
# chkconfig --level 3 clamd on

# /etc/init.d/freshclam start
# /etc/init.d/clamd start


2. Phần 2: Cài đặt, cấu hình amavisd-new
3. Phần 3: Cấu hình Postfix
4. Phần 4: Kiểm tra hoạt động

Tham khảo

1. /usr/share/doc/postfix-version/README_FILES/FILTER_README
2. http://www.ijs.si/software/amavisd/README.postfix
3. http://www.eicar.org/anti_virus_test_file.htm
Về Đầu Trang Go down
https://hvaonline.forumvi.net
 
Làm mail server với Postfix
Về Đầu Trang 
Trang 1 trong tổng số 1 trang
 Similar topics
-
» Cấu hình DHCP server
» Hỏi cách đổ VPN log từ Cisco router về syslog-ng server?
» Tuyển người quản lý server và các thiết bị

Permissions in this forum:Bạn không có quyền trả lời bài viết
HVAonline :: Hệ điều hành và thiết bị ứng dụng :: Thảo luận hệ điều hành *nix-
Chuyển đến