Sendmail简单配置1

Sendmail简单配置(1)
RHEL5.3 基本网络配置
一、
1、RHEL5 U3:如图1
Sendmail简单配置1

(如图1)
2、#hostname //查看当前主机的主机名:如图2
Sendmail简单配置1

(如图2)
3、#vi /etc/sysconfig/network-scripts/ifcfg-eth0 编辑指定网络接口配置文件:如图3
Sendmail简单配置1

(如图3)
4、#vi /etc/sysconfig/network 通过配置文件修改主机名:如图4
Sendmail简单配置1

(如图4)
5、在终端字符界面修改其字体和中文字体大小:如图5
Sendmail简单配置1

(如图5)
6、挂载光盘:如图6
Sendmail简单配置1

(如图6)
7、查看OpenSSH是否安装:如图7
Sendmail简单配置1

(如图7)
8#vi /etc/hosts 设置本地DNS解析文件:如图8
Sendmail简单配置1

(如图8)
9#vi /etc/resolv.conf 指定当前主机的DNS服务器,最多可指定三个:如图9
Sendmail简单配置1

(如图9)
10、关闭iptables防火墙:如图10
Sendmail简单配置1

Sendmail简单配置1

Sendmail简单配置1

Sendmail简单配置1

(如图10)
二、DNS简单配置
1、vim /etc/named.conf
Sendmail简单配置1

2、vim /var/named/benet.com.zone
Sendmail简单配置1

3、vim /var/named/1.168.192.in-addr.arpa.zone
Sendmail简单配置1

4、nslookup查看
Sendmail简单配置1

三、sendmail简单配置
1、安装sendmail
root@dns ~]# mount /dev/hdc /mnt/dvd/
mount: block device /dev/hdc is write-protected, mounting read-only
[root@dns ~]# cd /mnt/dvd/Server/
[root@dns Server]# rpm -qa | grep sendmail
sendmail-8.13.8-2.el5
[root@dns Server]# ls sendmail*
sendmail-8.13.8-2.el5.i386.rpm sendmail-devel-8.13.8-2.el5.i386.rpm
sendmail-cf-8.13.8-2.el5.i386.rpm sendmail-doc-8.13.8-2.el5.i386.rpm
[root@dns Server]# rpm -ivh --aid sendmail-cf-8.13.8-2.el5.i386.rpm
warning: sendmail-cf-8.13.8-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:sendmail-cf ########################################### [100%]
[root@dns Server]# rpm -ivh --aid sendmail-devel-8.13.8-2.el5.i386.rpm
warning: sendmail-devel-8.13.8-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:sendmail-devel ########################################### [100%]
[root@dns Server]# rpm -ivh --aid sendmail-doc-8.13.8-2.el5.i386.rpm
warning: sendmail-doc-8.13.8-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:sendmail-doc ########################################### [100%]
[root@dns Server]#
[root@dns Server]# rpm -qa | grep sendmail
sendmail-devel-8.13.8-2.el5
sendmail-doc-8.13.8-2.el5
sendmail-cf-8.13.8-2.el5
sendmail-8.13.8-2.el5
[root@dns Server]# rpm -qa | grep m4
m4-1.4.5-3.el5.1
Sendmail简单配置1

Sendmail简单配置1

2、修改vim /etc/mail/sendmail.mc
116将smtp侦听范围从127.0.0.1改为0.0.0.0
Sendmail简单配置1

155行修改成自己域:LOCAL_DOMAIN(`benet.com')dnl
Sendmail简单配置1

3使用m4命令生成sendmail.cf文件
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
4、修改local-host-names文件添加域名及主机名
vim /etc/mail/local-host-names
[root@dns Server]# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
[root@dns Server]# vim /etc/mail/local-host-names
# local-host-names - include all aliases for your machine here.
benet.com.
mail.benet.com.
~
~
~
"/etc/mail/local-host-names" 3L, 91C 已写入
[root@dns Server]#
Sendmail简单配置1

5、安装Dovecot软件包(POP3和IMAP
[root@dns Server]# rpm -ivh --aid mysql-5.0.45-7.el5.i386.rpm
warning: mysql-5.0.45-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
perl(DBI) is needed by mysql-5.0.45-7.el5.i386
[root@dns Server]# rpm -ivh --aid perl-DBI-1.52-2.el5.i386.rpm
warning: perl-DBI-1.52-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:perl-DBI ########################################### [100%]
[root@dns Server]# rpm -ivh --aid mysql-5.0.45-7.el5.i386.rpm
warning: mysql-5.0.45-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:mysql ########################################### [100%]
[root@dns Server]# rpm -ivh --aid dovecot-1.0.7-7.el5.i386.rpm
warning: dovecot-1.0.7-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:dovecot ########################################### [100%]
6、启动sendmail和dovecot服务
[root@dns Server]# service sendmail restart
关闭 sm-client: [确定]
关闭 sendmail: [确定]
启动 sendmail: [确定]
启动 sm-client: [确定]
[root@dns Server]# service dovecot restart
停止 Dovecot Imap: [确定]
启动 Dovecot Imap: [确定]
[root@dns Server]#
Sendmail简单配置1

7、查看端口netstat
[root@dns Server]# netstat -ntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:688 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.200:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN
tcp 0 0 :::993 :::* LISTEN
tcp 0 0 :::995 :::* LISTEN
tcp 0 0 :::110 LISTEN
tcp 0 0 :::143 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 ::1:953 :::* LISTEN
[root@dns Server]# netstat -an | grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
udp 0 0 0.0.0.0:52546 0.0.0.0:*
unix 2 [ ] DGRAM 8925
[root@dns Server]# netstat -an | grep 110
tcp 0 0 :::110 LISTEN
[root@dns Server]# netstat -an | grep 143
tcp 0 0 :::143 :::* LISTEN
unix 2 [ ] STREAM CONNECTED 10143 /var/run/setrans/.setrans-unix
Sendmail简单配置1

8、验证Sendmail的SMTP认证功能telnet localhost 25
[root@dns Server]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 dns.benet.com ESMTP Sendmail 8.13.8/8.13.8; Sat, 10 Oct 2009 22:15:28 +0800
ehlo localhost
250-dns.benet.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
quit
221 2.0.0 dns.benet.com closing connection
Connection closed by foreign host.
[root@dns Server]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Dovecot ready.
quit
+OK Logging out
Connection closed by foreign host.
[root@dns Server]#
Sendmail简单配置1

telnet mail.benet.com 25
Sendmail简单配置1

telnet mail.benet.com 110
Sendmail简单配置1

9、建立用户
[root@dns Server]# useradd zhangsan
[root@dns Server]# passwd zhangsan
Changing password for user zhangsan.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@dns Server]# useradd lisi
[root@dns Server]# passwd lisi
Changing password for user lisi.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@dns Server]#
10、客户端测试
Sendmail简单配置1

Sendmail简单配置1

Sendmail简单配置1

Sendmail简单配置1

Sendmail简单配置1

Sendmail简单配置1

Sendmail简单配置1

Sendmail简单配置1

Sendmail简单配置1

Sendmail简单配置1

 
配置文件在附件里面:
如有不懂的地方,请call我!qq:357714938 mail:hongwish8es@126.com
更多相关文章
  • Sendmail简单配置3
    Sendmail简单配置(3)RHEL5.1 基本网络配置一.1.RHEL5 U1:如图1(如图1)2.#hostname //查看当前主机的主机名:如图2(如图2)3.#vi /etc/sysconfig/network-scripts/ifcfg-eth0 编辑指定网络接口配置文件:如图3(如图 ...
  • Sendmail简单配置2
    Sendmail简单配置(2)RHEL5.3 基本网络配置公司采用两个网段和两个域来分别管理内部员工team1.benet.com域采用192.168.2.0/24网段team2.benet.com域采用192.168.3.0/24网段DNS及Sendmail服务器地址:192.168.1.200要 ...
  • OpenWebmail简单配置
    OpenWebmail简单配置RHEL5.3 基本网络配置一.1.RHEL5 U3:如图1(如图1)2.#hostname //查看当前主机的主机名:如图2(如图2)3.#vi /etc/sysconfig/network-scripts/ifcfg-eth0 编辑指定网络接口配置文件:如图3(如图 ...
  • 邮件服务器之sendmail的简单配置
    邮件服务器之sendmail的简单配置安装软件名1. sendmail sendmail主程序2. sendmail-cf 可以说是帮助理解sendmail语法配置3. m4 转换工具rpm -ivh sendmail-cf-8.13.8-2.el5.i386.rpmSendmail和m4系统默认应 ...
  • endmail 服务1.Sendmail 服务软件包 sendmail-8.13.8-2.el5.i386.rpm:sendmail 服务的主程序包,服务器端必须安装该软件包. sendmail-cf-8.13.8-2.el5.i386.rpm:sendmail 宏文件包 sendmail-deve ...
  •   Sendmail配置 安装所需软件sendmail.8.12.10.tar.gz   http://www.sendmail.org/cyrus-sasl-2.1.18.tar.gz http://asg.web.cmu.edu/cyrus/安装步骤1.        先安装cyrus-sasl ...
  • PostFix简单配置
    PostFix简单配置RHEL5.3 基本网络配置一.1.RHEL5 U3:如图1(如图1)2.#hostname //查看当前主机的主机名:如图2(如图2)3.#vi /etc/sysconfig/network-scripts/ifcfg-eth0 编辑指定网络接口配置文件:如图3(如图3)4. ...
  • sendmail简单实验 邮件服务器的运行和DNS关系密切,所以在这周六寂寞的下午,结合DNS做了sendmail的简单实验. [实验目的] 1.配置一个DNS服务器,解析两个域sb.com和hrb.com. 2.配置两个sendmail服务器.实现两个域的邮件发送.[实验环境] 1.虚拟机 Cen ...
一周排行
  • 图片-点阵图:jpg.png.gif.bmp.ico.tif(tiff).psd/psb.WebP.RAW.pdf.DCM.sai/rif JPG是使用最广泛的一种图片格式,色彩丰富,压缩比高,特别适合存储照片.但由 ...
  • 备份最大的好处是在你数据库表丢失或损坏的情况下可以恢复过来.甚至你不贪婪,只希望恢复一部分你也很开心对吧.有时,正是MySQL管理员造成破坏.而管理员也已经知道表已破坏,用诸如vi或Emacs等编辑器试图直接编辑它们 ...
  • 利用单主机搭建和物理机器通讯的测试网络
  • 软件简介:OpenResty (也称为 ngx_openresty)是一个全功能的 Web 应用服务器,它打包了标准的 Nginx 核心,很多的常用的第三方模块,以及它们的大多数依赖项.OpenResty 通过汇聚各 ...
  • Redis集群初步设计
    1.需求背景最近为满足业务推广活动的需求,需要对Redis集群做容灾,刚开始考虑采用最近比 ...
  • MySQL Proxy 安装与读写分离体验 一直想等到BETA版出来再试验的,可还是经不住诱惑阿,下午终于有时间测试一下了.(本文参考地址:http://blog.chinaunix.net/u/8111/showa ...
  • ss51.安装ss5----------------------------------------freebsd# cd /usr/ports/net/ss5/freebsd# make install clean ...
  • 题目是:在一个3*3大小的矩阵中下棋一方有连续三个子便获胜代码如下:#include<stdio.h> #include<stdlib.h> #include<time.h>    ...
  • JQueryboxy插件的确认框在AspNet中的应用
    JQuery有不少弹出框的插件,boxy应该算的上是功能和效果都还不错的一款了.先来看一张 ...
  • 不好意思了麻烦大家我想请问一个问题,就是我自己写的文章,为什么自己怎么也看不到啊?能告诉我吗?非常感谢大家了!!!