邮件服务配置与反垃圾邮件策略
1. 运行POP和IMAP守护进程
在测试POP和IMAP服务时,新安装的Red Hat系统可能会返回“Connection refused”错误。例如:
$ telnet localhost imap Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused $ telnet localhost pop3 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused出现此错误的可能原因是未安装POP或IMAP。POP和IMAP可以在初始安装时安装,也可以使用RPM后续安装。若系统未安装,可通过匿名FTP从ftp.cac.washington.edu的/imap/imap.tar.Z文件获取流行版本的源代码。
在Red Hat系统中,POP和IMAP由xinetd启动。/etc/xinetd.d目录包含五个与POP和IMAP相关的xinetd配置文件:
| 文件名 | 功能 |
| ---- | ---- |
| imap | 当流量到达端口143时,xinetd使用此文件启动IMAP |
| ipop2 | 当流量到达端口109时,xinetd使用此文件启动POP2(很少使用) |
| ipop3 | 当流量到达端口1