【IT168 服务器学院】postfix邮件服务器(debian sarge)
1、简要说明
简易安装postfix邮件服务器
2.1、mail:~#apt-get install postfix
安装,根据提示选"Internet Site"
Where should mail for root go填postfix
Mail name?填mail.wjjennluen.com
Other destinations to accept mail for?(blank for none)填mail.wjjennluen.com, localhost.wjjennleun.com, ,localhost
Force synchronous updates on mail queue?选否
2.2、检查postfix服务是不是已经运行
mail:~# netstat -ln|grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp6 0 0 :::25 :::* LISTEN
unix 2 [ ACC ] STREAM LISTENING 20256 /tmp/.ICE-unix/11772
2.3、测试postfix
mail:~# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is ''^]''.
220 mail.wjjennluen.com ESMTP Postfix (Debian/GNU)
ehlo mail
250-mail.wjjennluen.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250 8BITMIME
mail from: "This is a test mail!"
250 Ok
rcpt to:
250 Ok
data
354 End data with .
This is a test mail!
.
250 Ok: queued as 4888ACA0060
quit
221 Bye
Connection closed by foreign host.
好象是发出去了噢
2.4、检查刚发的邮件是否收到
mail:~#apt-get install mailx 下载mail阅读器
mail:~# su - wxt
wxt@mail~:$ mail
No mail for wxt
wxt@mail:~$exit
mail:~#:
my god,没有邮件啊
mail~:#more /var/mail/wxt
没有</