`

最简单的linux 安装postfix邮件服务器

 
阅读更多
首先下载postfix源代码包:
  wget ftp://ftp.reverse.net/pub/postfix/official/postfix-2.9.1.tar.gz
  yum install db4-devel //新版本需要安装这个
 (http://www.postfix.com/DB_README.html#disable_db)
  tar zxvf postfix-2.9.1.tar.gz
  cd postfix-2.9.1
  useradd postfix -M -s /sbin/nologin
  groupadd postdrop
  make
  make install

一路enter直到安装完成
这是最简单的安装,都是使用的默认配置,默认是使用系统账户才能发送邮件的。
需要发送邮件,是需要启动服务的,如果是sendmail,那就需要启动sendmail,这里是postfix,会取代sendmail,并且兼容sendmail。
启动postfix:
postfix start
直接用系统的mail命令发送邮件看看:
[root@localhost postfix-2.6.5]# mail your-email@gmail.com
Subject: test postfix
test
.
此时查看默认安装路径下的mail日志就会产生相应的日志信息了
tail -f /var/log/maillog

yum install dovecot;
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics