亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1178 | 回復: 0
打印 上一主題 下一主題

redhat9+postfix+pop3+sasl2+openwebmail+mailsecanne [復制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2007-03-24 21:54 |只看該作者 |倒序瀏覽
今天忙了一天LINUX 配置了redhat9+postfix+pop3+sasl2+openwebmail+mailsecanner
總休來說還算順利,現(xiàn)在總體說一下安裝過程!
Redhat9
winxp裝了wingrub這樣就可以用硬盤安裝了(本人光驅(qū)以壞,而且硬盤安裝速度比較快)
配置wingrub 解開redhat9 disc1.iso 提取二個文件vmlinuz,initrd.img 放入D(fat32格式)盤的linuxboot文件夾中把再新建一個文件夾取名為 linux 把linux的3個ISO文件放在其中。
安裝wingrub后 會在c:\grub目錄下有一個menu.lst文件 設置如下:
timeout 30
title installRH9
kernel (hd0,4)/linuxboot/vmlinuz root=/dev/hda5
initrd (hd0,4)/linuxboot/initrd.img
title Windows at (hd0,0)
root (hd0,0)
chainloader +1
設置后重啟電腦
重啟進入 會多出一個installRH9選項,選擇它。進入安裝界面,先設置一下鍵盤和鼠標,接著要輸入ISO文件所在位置。這時我們選擇/dev/hda5 再在下面輸入所在的文件夾 我這里就是linux(剛才我在D盤建的那個目錄啦),之后就進行分區(qū),接著就是自動安裝了。
========================================================================================
sasl2和 pop3 httpd(安裝openwebmail時要用到)是系統(tǒng)自帶的我們就不用安裝了
...
.....
========================================================================================
postfix 的安裝
下載postfix-2.0.6.tar.gz
tar -zxvf postfix-2.0.6.tar.gz
cd postfix-2.0.6.tar.gz
make tidy
make makefiles CCARGS="-DUSE_SASL_AUTH -L/usr/include/sasl/" \
               AUXLIBS="-L/usr/lib/sasl2 -lsasl2"
make
make install(出現(xiàn)很多選項,不用管一直回車)
這樣postfix安裝完成
基本設置 postfix 的主配置文件是/etc/postfix/main.cf
myhostname =你的主機名
mydomain = 你的域名
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost
relay_domains = $mydestination
inet_interfaces = all
alias_maps = hash:/etc/aliases
home_mailbox = Maildir/
mynetworks=你要開放delay的網(wǎng)段 如192.168.0.0/24
=========================================================================================
啟動pop3 saslauthd postfix
chkconfig --add ipop3
chkconfig --add saslauthd
vi /etc/rc.d/rc.local
加入這樣行
postfix start
這樣 pop3 saslauthd postfix在linux開機時就會自動啟動了
=========================================================================================
完成以上后 用命令 netstat -antl查看25 100二個端口有沒有在listen,如果有說明安裝成功,沒有
查看上面的設置有無問題
=========================================================================================
設置SMTP認證
cd /usr/lib/sasl2
echo 'pwcheck_method:saslauthd'>smtpd.conf
echo 'mech_list:plain login'>>smtpd.conf
vi /etc/postfix/main.cf 添加下面幾行。
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_recipient_restrictions = permit_mynetworks,_
                               permit_sasl_authenticated,reject_unauth_destination
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
測試smtp認證是不是正確
假如我有一個帳號為 id:test pwd:123 我們進行如下驗證
printf 'test\0test\0123' |mmencode
但是你先要裝metamail-2.7-29.fc2.mok.i386.rpm
裝metamail-2.7-29.fc2.mok.i386.rpm時 系統(tǒng)會調(diào)用sharutils
所以也要裝 sharutils-4.2.1-12.i386.rpm
rpm -ivh sharutils-4.2.1-12.i386.rpm
rpm -ivh metamail-2.7-29.fc2.mok.i386.rpm
這樣就可以了
printf 'test\0test\0123' |mmencode
n12fja3fj32ak56ljflkf==
telnet localhost 25
ehlo localhost
auth plain n12fja3fj32ak56ljflkf== (輸入這一行回車)
如果你看到
235 anutentication successful 表示成功了!恭喜
==========================================================================================
openwebmail安裝
裝之前確保 postfix和Apachet以后正常工作了
一些如perl / suidperl / perl(CGI) / perl-Text-Iconv / perl-Compress-Zlib 也要裝好
沒有可以去
http://turtle.ee.ncku.edu.tw/openwebmail/download/redhat/rpm/packages/rh9/
下載
下載 openwebmail-2.40-1.i386.rpm
rpm -ivh openwebmail-2.40-1.i386.rpm
cd /var/www/cgi-bin/openwebmail
./openwebmail-tool.pl --init
初如化后 修改 dbm.conf這個文件中的一些參數(shù)
dbm_ext                 .db
dbmopen_ext             .db
dbmopen_haslock         yes
保存后再
./openwebmail-tool.pl --init
Welcome to the Open WebMail!
This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:
OS: Linux 2.4.22-1.2199.nptl i686
Perl: 5.008003
WebMail: Open WebMail 2.40 20040816
Send the site report?(Y/n)
sending report...
Thank you.
出現(xiàn)以上畫面就算是完成了
您的 WWW 主機必須要能提供 perl 的執(zhí)行環(huán)境,因為 openwebmail 就是以 perl 寫成的!以 apache 為例,您必須要知道如何啟動 perl 的 CGI 執(zhí)行環(huán)境
vi /etc/httpd/conf/httpd.conf
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
保存后就可以輸入
http://your.linux.server/cgi-bin/openwebmail/openwebmail.pl
==================================================================================
安裝mailscanner f-port
下載 MailScanner-4.58.9-1.rpm.tar  
http://www.mailscanner.info/downloads.html
下載 fp-linux-ws.rpm      
http://www.f-prot.com/download/home_user/
安裝 fp-linux
rpm -ivh fp-linux-ws.rpm
安裝  MailScanner
tar -zxvf  MailScanner-4.58.9-1.rpm.tar
cd MailScanner-4.58.9-1
./install.sh(這里時間會很長,要裝很多的perl)
MailScanner設定
1修改MailScanner.conf
# vi /etc/MailScanner/MailScanner.conf
Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
MTA = postfix
Virus Scanners = f-prot
2、修改 postfix支援mailscanner
# vi /etc/postfix/main.cf
變更以下的值
header_checks = regexp:/etc/postfix/header_checks
# vi /etc/postfix/header_checks
/^Received:/ HOLD
PS: 注意, 在 / 之前不可以有空白!
3、改變目錄權(quán)限
# chown postfix.postfix /var/spool/MailScanner/incoming
# chown postfix.postfix /var/spool/MailScanner/quarantine
停止postfix執(zhí)行、啟動MailScanner
# service postfix stop
# chkconfig postfix off
# service MailScanner start
PS:設定MailScanner,當MTA = postfix時,會自己啟動postfix,如有設定啟動postfix的請先將它停掉
4、定期更新病毒定義檔
# crontab -e
0 4 * * * /usr/local/f-prot/tools/check-updates.pl –cron
並將原本在/etc/cron.hourly/update_virus_scanners 刪除掉
最後測試你的mail server 的防毒!


   


本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u/12497/showart_264345.html
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP