⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 基于freebsd和postfix的邮件系统与邮件列表的web mail安装 linuxsir_org.htm

📁 linuxSir 网站的精华文章
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0040)http://www.linuxsir.org/main/?q=node/203 -->
<HTML lang=zh-hans xml:lang="zh-hans" 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>基于FreeBSD和Postfix的邮件系统与邮件列表的web mail安装 | LinuxSir.Org</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css media=all>@import url( misc/drupal.css );
</STYLE>



<STYLE type=text/css media=all>@import url( modules/taxonomy_context/taxonomy_context.css );
</STYLE>
<LINK media=screen 
href="基于FreeBSD和Postfix的邮件系统与邮件列表的web mail安装  LinuxSir_Org.files/menuExpandable3.css" 
type=text/css rel=stylesheet>
<SCRIPT 
src="基于FreeBSD和Postfix的邮件系统与邮件列表的web mail安装  LinuxSir_Org.files/menuExpandable3.js" 
type=text/javascript></SCRIPT>
<LINK 
href="基于FreeBSD和Postfix的邮件系统与邮件列表的web mail安装  LinuxSir_Org.files/common.css" 
type=text/css rel=stylesheet>
<STYLE type=text/css media=all>@import url( themes/chameleon/marvin/style.css );
</STYLE>

<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV id=header><A title=Home href="http://www.linuxsir.org/main/"><IMG alt=Home 
src="基于FreeBSD和Postfix的邮件系统与邮件列表的web mail安装  LinuxSir_Org.files/logo.jpg"></A></DIV>
<DIV class=navlinks>
<DIV class=primary><A href="http://www.linuxsir.org/main/?q"><FONT 
color=white>首页</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/34"><FONT 
color=white>事件</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/"><FONT 
color=white>文档</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/"><FONT 
color=white>资源</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=search"><FONT color=white>搜索</FONT></A> | 
<A href="http://www.linuxsir.org/bbs"><FONT color=white>论坛</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/38"><FONT 
color=white>贡献者</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=node/3"><FONT color=white>关于</FONT></A> | 
<A href="http://www.linuxsir.org/main/?q=user"><FONT 
color=white>注册/登录</FONT></A></DIV></DIV>
<TABLE id=content>
  <TBODY>
  <TR>
    <TD id=sidebar-left>
      <DIV class="block block-block" id=block-block-1>
      <H2 class=title>子站索引</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://fedora.linuxsir.org/" target?_blank?>Fedora中文</A> 
        <LI><A href="http://debian.linuxsir.org/" target?_blank?>Debian中文</A> 
        <LI><A href="http://lfs.linuxsir.org/" target?_blank?>LFS 中文</A> 
        <LI><A href="http://slack.linuxsir.org/">Slackware</A> 
        <LI><A href="http://gentoo.linuxsir.org/">Gentoo中文</A> 
        <LI><A href="http://arch.linuxsir.org/">Arch 中文</A> </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-3>
      <H2 class=title>重要资讯</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/36">本站公告</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/34">新闻事件</A> 
        <LI><A href="http://www.linuxsir.org/bbs" target=_blank>本站论坛</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/38">贡 献 者</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-7>
      <H2 class=title>项目索引</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.fcitx.org/" target=_blank>小企鹅输入法</A> 
        <LI><A href="http://lumaqq.linuxsir.org/" target=_blank>LumaQQ</A> 
        <LI><A href="http://openq.linuxsir.org/" target=_blank>OpenQ</A> 
        <LI><A href="http://www.relaxbsd.org/" target=_blank>RelaxBSD</A> 
      </LI></UL></DIV></DIV>
      <DIV class="block block-user" id=block-user-1>
      <H2 class=title>站点导航</H2>
      <DIV class=content>
      <DIV class=menu>
      <UL>
        <LI class=leaf><A title=注册/登录 
        href="http://www.linuxsir.org/main/?q=user">注册/登录</A> 
        <LI class=collapsed><A 
        href="http://www.linuxsir.org/main/?q=aggregator">新闻聚合</A> 
      </LI></UL></DIV></DIV></DIV>
      <DIV class="block block-aggregator" id=block-aggregator-feed-2>
      <H2 class=title>LinuxSir.Org 论坛</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267213&amp;goto=newpost">告别LINUX</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267212&amp;goto=newpost">suse中国社区(论坛)已正式开放</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267211&amp;goto=newpost">在文本编辑器中显示乱码</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267210&amp;goto=newpost">archlinux用最新的ntfs-3g驱动读写ntfs分区</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267209&amp;goto=newpost">实在是不行了~发帖请教一下,关于samba的中文问题~~~</A> 
        </LI></UL></DIV>
      <DIV class=more-link><A title=查看此feed的最新消息 
      href="http://www.linuxsir.org/main/?q=aggregator/sources/2">更多</A></DIV></DIV></DIV>
      <DIV class="block block-user" id=block-user-2>
      <H2 class=title>最新注册</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI>sosopro
        <LI>babyvox963
        <LI>wanglan0415
        <LI>ShiningMoon
        <LI>idomiles</LI></UL></DIV></DIV></DIV>
      <DIV class="block block-user" id=block-user-3>
      <H2 class=title>当前在线</H2>
      <DIV class=content>1 用户 和 73 游客 在线
      <DIV class=item-list>
      <H3>在线用户</H3>
      <UL>
        <LI>北南南北</LI></UL></DIV></DIV></DIV></TD>
    <TD id=main>
      <DIV class=breadcrumb><A href="http://www.linuxsir.org/main/?q=">首页</A> » 
      <A 
      href="http://www.linuxsir.org/main/?q=taxonomy/term/29">Mail服务器</A></DIV>
      <H2>基于FreeBSD和Postfix的邮件系统与邮件列表的web mail安装</H2><!-- begin content -->
      <DIV class=node>
      <DIV class=content>
      <P><B>作者:</B> 杨廷勇(scyzxp at toping.net)<BR><B>来自:</B> 
      LinuxSir.Org<BR><B>版权:</B>杨廷勇 Copyright © 2004、2005、2006<BR><B>摘要:</B> 
      本文介绍使用FreeBSD + Postfix + Cyrus-sasl + Courier-imap + tmail3.5 + 
      spamassassin + Clamav + mailscanner + mailscanner-mrtg + mailman 
      ,来架构一个具有多域名,有邮件列表、webmail、防病毒、防垃圾邮件、web管理界面的邮件系统。</P>
      <P>本文介绍使用 FreeBSD + Postfix + Cyrus-sasl + Courier-imap + tmail3.5 + 
      spamassassin + Clamav + mailscanner + mailscanner-mrtg + mailman 
      来架构一个具有多域名,有邮件列表、webmail、防病毒、防垃圾邮件、web管理界面的邮件系统。</P>
      <P>Jacky, $Revision: 4.51 bate $Date: 2006-05-03</P>
      <P>系统主要采用MailScanner+clamav+Spamd+APF来对病毒过滤和垃圾邮件过滤。</P>
      <P>本文在4.10、5.3、5.4、6.0上安装测试通过,病毒过滤放弃采用amavisd。主要采用执行效率更高的MailSanner来对邮件过滤和垃圾邮件过滤,配置更容易,并且降低了系统开消。让系统更加稳定,经过严格病毒邮件测试成功率达到了100%。垃圾邮件过滤基本上达到了95%的成功率。</P>
      <P><B>更新日志;</B></P>
      <P>新增“邮件列表”mailman的安装和设置<BR>新增“邮件流量监控”mailscanner-mrtg的安装和设置<BR>新增php对zend的支持安装<BR>新增使用mailscanner来对进出邮件进行监管。new<BR>修正上一个版本的一些理解性和文件性错误。<BR>主要增强了原来的userinfo数据表。请使用Tmail3.5的用户及时更新。<BR>主要“加强”了病毒过滤和垃圾邮件过滤,更加节约系统资源,使系统配置更简单化。<BR>本文首次使用APF来加强对垃圾邮件的过滤。<BR>垃圾邮件过滤基本上达到了95%的成功率<BR>本文首次使用MailScanner+Clamav配合对邮件病毒进行过滤。<BR>经过严格病毒邮件测试成功率达到了100%。<BR>翻译了病毒邮件提示为中文提示,让系统更加的人性化。<BR>在文档安装过程中加入更详细的说明<BR>在文档软件安装过程中配备了图像,让安装更加的容易。<BR>修正了很多文字性的错误.....</P>
      <P><FONT size=4><B>目录</B></FONT></P>
      <UL><A 
        href="http://www.linuxsir.org/main/?q=node/203#1">0、演示地址;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/203#1">1、系统安装</A>
        <P></P>
        <UL><A href="http://www.linuxsir.org/main/?q=node/203#1">1.1 
          安装MySQL</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#1.2">1.2 
          安装Apache</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#1.3">1.3 
          安装PHP</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#1.4">1.4 
          安装zend</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#1.5">1.5 
          安装openssl</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#1.6">1.6 
          安装phpMyAdmin</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#1.7">1.7 
          通过phpMyadmin设置数据库</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#1.8">1.8 
          安装Courier-imap</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#1.9">1.9安装 postfix 和 
          cyrus-sasl</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#1.10">1.10 安装expect</A> 
        </UL>
        <P><A href="http://www.linuxsir.org/main/?q=node/203#2">2 
配置邮件服务器</A></P>
        <UL><A href="http://www.linuxsir.org/main/?q=node/203#2.1">2.1 
          配置rc.conf</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#2.2">2.2 配置postfix 和 
          cyrus-sasl</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#2.3">2.3 
          配置Courier-imap</A> </UL>
        <P><A 
        href="http://www.linuxsir.org/main/?q=node/203#3">3、手动设置第一个用户并测试</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/203#4">4、安装postfix管理工具</A></P>
        <UL><A href="http://www.linuxsir.org/main/?q=node/203#4.1">4.1 
          安装postfix管理工具</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#4.2">4.2 用户登录测试</A> </UL>
        <P><A 
        href="http://www.linuxsir.org/main/?q=node/203#5">5、防病毒与防垃圾邮件</A></P>
        <UL><A href="http://www.linuxsir.org/main/?q=node/203#5.1">5.1 
          安装Clamav</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#5.2">5.2 
          安装MailScanner</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#5.3">5.3 
          安装配置Spamassassin</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#5.4">5.4 
          修改Postfix设定档main.cf</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#5.5">5.5 
          修改mailscanner.conf</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#5.6">5.6 
          新增MailScanner所要用到的资料夹</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#5.7">5.7 
          把病毒提示信息改为中文</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#5.8">5.8 
          MailScanner监管进出邮件</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#5.9">5.9 
          邮件流量监控(mailscanner-mrtg)安装与设置</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/203#5.10">5.10 
          安装APF防垃圾邮件</A> </UL>
        <P><A href="http://www.linuxsir.org/main/?q=node/203#6">6、安装webmail 
        </A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/203#7">7、邮件列表(mailman)</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/203#8">8、查看系统状态</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/203#9">9、关于本文;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/203#10">10、更新日志;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/203#11">11、参考文档;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/203#12">12、相关文档;</A></P></UL>
      <P><FONT 
      color=blue><B><BR>+++++++++++++++++++++++++++++++++++++++++++<BR>正文<BR>+++++++++++++++++++++++++++++++++++++++++++<BR></B></FONT></P>
      <P><FONT id=0 size=4><B><BR>0、演示地址;<BR></B></FONT></P>
      <P>
      <DIV 
      class=codeblock><CODE>http://mail.toping.net<BR>用户名:demo@toping.net<BR>密 码:demo</CODE></DIV>
      <P></P>
      <P><FONT id=1 size=4><B><BR>1、系统安装<BR></B></FONT></P>
      <P>安装之前:因用户数据都保存在/var目录下,因此安装FreeBSD时/var的空间应尽量大。FreeBSD的版本为5.3,按最小化安装,软件包只安装cvsup,安装结束后用cvsup更新ports树。在文档中假设服务器的ip地址为192.168.0.2,域名为toping.net,主机名为mail.toping.net。</P>
      <P>请兄弟们仔细一些,注意空格和TAB。</P>
      <P>祝兄弟们好运。本人水平有限。如果发现文章中有什么错误和不当的地方请发邮件:scyz@toping.net。我会在第一时间给予答复。</P>
      <P><FONT id=1.1 size=3><B><BR>1.1 安装MySQL<BR></B></FONT></P>
      <P>
      <DIV class=codeblock><CODE>mail# cd 
      /usr/ports/databases/mysql40-server<BR>mail# make install 
      clean</CODE></DIV>
      <P></P>
      <P>编辑/etc/rc.conf,加入<BR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -