无法使用exim4.8发送邮件 - 不可路由的地址

时间:2013-07-19 13:27:29

标签: rhel exim

我无法使用exim4.8发送邮件。请查找以下日志和我的exim配置文件。请帮忙!尝试了所有配置更改但无法找到解决方案。

提前致谢。

以下是eximgrep结果:

exigrep "xyz" /var/spool/exim/log/mainlog

2013-07-19 17:43:01 1V09YT-0006vZ-Ax <= root@192.168.4.14 U=root P=local S=419
2013-07-19 17:43:01 1V09YT-0006vZ-Ax ** yyy@yyy.yyy: Unrouteable address
2013-07-19 17:43:01 1V09YT-0006vZ-Ax Completed

以下是我的Exim配置文件:

primary_hostname = 192.168.4.14

domainlist local_domains = @:localhost
domainlist relay_to_domains = *
hostlist   relay_from_hosts = 127.0.0.1

acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
rfc1413_hosts = *
rfc1413_query_timeout = 5s



ignore_bounce_errors_after = 1d

timeout_frozen_after = 7d

begin acl

  deny    message       = Restricted characters in address
          domains       = +local_domains
          local_parts   = ^[.] : ^.*[@%!/|]


  deny    message       = Restricted characters in address
          domains       = !+local_domains
          local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
  accept  local_parts   = postmaster
          domains       = +local_domains

  require verify        = sender

  accept  hosts         = +relay_from_hosts
          control       = submission
          control       = dkim_disable_verify


  accept  authenticated = *
          control       = submission
          control       = dkim_disable_verify

  require message = relay not permitted
          domains = +local_domains : +relay_to_domains

  require verify = recipient

$dnslist_domain\n$dnslist_text
$dnslist_domain
  accept

acl_check_data:

  accept


begin routers
smart_route:
driver=manualroute
transport=remote_smtp

route_data=bamail2.nova.local
no_more
system_aliases:
  driver = redirect
  allow_fail
  allow_defer
  data = ${lookup{$local_part}lsearch{/etc/aliases}}
# user = exim
  file_transport = address_file
  pipe_transport = address_pipe


userforward:
  driver = redirect
  check_local_user
  file = $home/.forward
  no_verify
  no_expn
  check_ancestor
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply

localuser:
  driver = accept
  check_local_user
  transport = local_delivery
  cannot_route_message = Unknown user

begin transports


remote_smtp:
  driver = smtp

  interface = 10.50.50.41

address_pipe:
  driver = pipe
  return_output


address_file:
  driver = appendfile
  delivery_date_add
  envelope_to_add
  return_path_add

address_reply:
  driver = autoreply

begin retry

*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h

begin rewrite


begin authenticators

1 个答案:

答案 0 :(得分:0)

首先,您需要检查域的MX记录。

  

dig domain.com MX

如果这是本地MX,那么请确保它在/ etc / localdomains中列出 如果是远程MX,请确保/ etc / remotedomains中列出的域

您最好运行以下脚本。

  

/脚本/ updateuserdomains

     

/脚本/ mailperm