ITeye博客

exim4 550 relay not permitted的处理

andyao · 2009-02-15 17:40 · linux · 操作系统 · Markdown

出现这个问题的主要原因是exim4邮件服务器的relay设置不对.
exim4有两种方式的relay设置:

  1. 基于domian的relay: 修改配置文件中的 domainlist relay_to_domains
  2. 基于host的relay:  修改配置文件中的hostlist relay_from_hosts

直接修改配置文件或者dpkg-reconfigure exim4-config设置正确的relay即可.

举例来说, 先看网络配置:

  1. 10.0.0.10作为server,配置有exim4
  2. 10.0.0.12作为client,连接至10.0.0.10的exim4 server发送邮件

如果exim4的relay设置中没有加入10.0.0.12这个ip,那么在10.0.0.12这台电脑上连接到10.0.0.10发邮件(javamail, activemail,etc)就会出现标题所提到的异常。解决方法就是在exim4的relay_from_hosts加入10.0.0.12这个ip

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。