选择显示字体大小

sendmail邮件服务器快速指(2)

二、工作环境

  本文假设用户希望在园区网环境中架设一个电子邮件服务器,为本单位用户提供邮件服务。该服务器拥有一个合法的ip地址202.99.11.200和一个合法的域名mail.linuxaid.com.cn,并且dns的mx记录也指向该域名(注:这里示例域名和ip地址均为伪造域名和地址)。为了满足域名需求,dns的域数据文件应该包含以下内容:

  in mx 10 mail
  mail in a 202.99.11.200

  试验环境为:redhat6.2、sendmail.8.11.4、qpopper4.0.3。

  三、软件下载

  分别从以下地址下载sendmail和qpopper:

  sendmail.8.11.4.tar.gz http://www.sendmail.org/current-release.html
  qpopper4.0.3.tar.gz http://www.eudora.com/qpopper_general/

  四、sendmail的配置和安装

  sendmail是目前使用最为广泛的一种e-mail服务器。当前其最新的稳定版本为8.11.4。下载得到tar.gz格式的压缩包以后,将其存放在/usr/src目录下。

  解压软件包:

  [root@email src]# tar xvfz sendmail.8.11.4.tar.gz
  [root@email src]# cd sendmail-8.11.4

  编译安装:

  [root@email sendmail-8.11.4]# cd sendmail
  [root@email sendmail]# sh build

  生成配置文件:

  [root@email sendmail]#cd /usr/src/sendmail-8.11.4/cf/cf/

  一般该目录下应该有config.mc的文件,如果没有则创建新文件config.mc,内容为:

  divert(-1)
  dnl this is the macro config file used to generate the /etc/sendmail.cf
  dnl file. if you modify thei file you will have to regenerate the
  dnl /etc/sendmail.cf by running this macro config through the m4
  dnl preprocessor:
  dnl m4 /etc/sendmail.mc > /etc/sendmail.cf
  dnl you will need to have the sendmail-cf package installed for this to work.
  include(`/usr/src/sendmail-8.11.4/cf')
  define(`confdef_user_id',`8:12')
  ostype(`linux')
  undefine(`uucp_relay')
  undefine(`bi.net_relay')
  define(`confauto_rebuild')
  define(`confto_connect', `1m')
  define(`conftry_null_mx_list',true)
  define(`confdont_probe_interfaces',true)
  define(`procmail_mailer_path',`/usr/bin/procmail')
  feature(`smrsh',`/usr/sbin/smrsh')
  feature(`mailertable',`hash -o /etc/mail/mailertable')
  feature(`virtusertable',`hash -o /etc/mail/virtusertable')
  feature(redirect)
  feature(always_add_domain)
  feature(use_cw_file)
  feature(local_procmail)
  mailer(smtp)
  mailer(procmail)
  feature(`access_db27%)
  feature(`blacklist_recipients')
  dnl we strongly recommend to comment this one out if you want to protect
  dnl yourself from spam. however, the laptop and users on computers that do
  dnl not hav 24x7 dns do need this.
  feature(`accept_unresolvable_domains')
  dnl feature(`relay_based_on_mx')


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons