RHEL4Sendmail+dovecot实现简单邮件收发(不做认证)
安装sendmail(sendmail-cf-8.13.1-3.2.el4sendmail-8.13.1-3.2.el4)
dovecot(dovecot-0.99.11-8.el4)
要作的一些设置:
1.#cd /etc/mail
 #vi local-host-name
 加上主机名称
2.设定邮件服务器权限
 #vi /etc/mail/access
  加上
192.168.1                                          RELAY    #局域网网络
  IP(主机)或主机名     RELAY
  其它要通过的网络,IP  RELAY
  丢弃的主机          DISCARDREJECT(有退回信息)
 #makemap hash /etc/mail/access.db < /etc/mail/access
3.允许监听所有IP25(SMTP)请求
 #vi /etc/mail/sendmail.mc
 DAEMON_OPTION(‘port=smtp,addr=127.0.0.1,name=MTA’)中的IP改为0.0.0.0
 #m4 sendmail.mc >redhat.cf
 #mv /etc/mail/sendmail.cf /etc/mail/sendmail.cf.bak
 #cp redhat.cf /etc/mail/sendmail.cf
4.启动sendmail,测试SMTP.
 #/etc/rc.d/init.d/sendmail restart 或者#service sendmail restart
 #telnet localhost 25
  Ehlo localhost
5.修改/etc/dovecot.conf
 #vi /etc/dovecot.conf
  其中#protocols=imap imaps
  改成protocols=imap pop
6.启动dovecot,测试POP3
 #service dovecot restart
 #telnet localhost 110
7.LINUX下测试收发(假如用户tom)
 #mail tom@testdomain
8.OutLook下测试,配置帐户,测试收发.