2013-07-19 50 views
2

我無法使用exim4.8發送郵件。請找到下面的日誌和我的exim配置文件。請幫忙!嘗試了所有配置更改但無法找到解決方案。無法使用exim4.8發送郵件 - 無路由地址

在此先感謝。

下面是eximgrep結果:

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

2013-07-19 17:43:01 1V09YT-0006vZ-Ax <= [email protected] U=root P=local S=419 
2013-07-19 17:43:01 1V09YT-0006vZ-Ax ** [email protected]: Unrouteable address 
2013-07-19 17:43:01 1V09YT-0006vZ-Ax Completed 

下面是我進出口的配置文件:

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 

回答

0

首先,你需要檢查的域的MX記錄。

挖domain.com MX

,如果這是當地的MX,然後確保它在/ etc/localdomains 上市萬一如果遠程MX,然後確保域列在/ etc/remotedomains中

您最好運行以下腳本。

/腳本/ updateuserdomains

/腳本/ mailperm