邮件服务器的安装与启动
来自CloudWiki
目录
E-mail服务器的安装
配置本地yum源
Postfix软件
在红帽系统中,可以选择安装Postfix作为SMTP服务器
rpm -q postfix //检查postfix软件包是否安装 yum install postfix -y //如果没有安装postfix,用yum安装 service iptables stop //关掉防火墙
安装了Postfix服务器软件之后,用户就可以登录到服务器上读信或者写信了,而且信件也保留在该服务器中,如果需要将电子邮件从服务器下载到本地计算机进行阅读和保存,还必须安装POP或IMAP服务器软件。
dovecot软件
接下来,再安装dovecot软件包,dovecot 可以提供IMAP和POP服务。
yum install dovecot -y //安装Dovecot软件包
E-mail服务器的启动
启动Postfix服务
在红帽系统中,可以选择安装Postfix作为SMTP服务器:
[root@maxin ~]# service postfix start [root@maxin ~]# service postfix status -b (pid 8145) is running...
启动Dovecot服务
dovecot 可以提供IMAP和POP服务。
root@maxin ~]# service dovecot start Starting Dovecot Imap: [ OK ] [root@maxin ~]# service dovecot status dovecot (pid 8233) is running... [root@maxin yum.repos.d]# chkconfig dovecot on