2013-06-27 4 views
6

exim4를 사용하고 있습니다. 연락처 양식이있는 Wordpress 설치가 있습니다. 내 호스트 이름 -f는 mydomain.com입니다."unrouteable address"with exim4

양식이 [email protected]으로 전자 메일을 보내고 있습니다. 그러나 결코 내 "오프 사이트"이메일에 도달하지 않습니다. 전자 메일이 웹 서버에 걸리지 않도록 설정하려면 어떻게해야합니까?

Exim은 오프 사이트 이메일 [email protected]으로 이메일을 전달 (경로 지정)해야합니다. 예를 들어 Gmail을 해당 주소로 보내면 바로 배달됩니다.

나는이 가이드를 따라 갔다 : https://library.linode.com/email/exim/send-only-mta-debian-6-squeeze하지만이 문제는 도움이되지 않았다.

mydomain:/var/mail# exim -bt -d [email protected] 2>&1 
Exim version 4.80 uid=0 gid=0 pid=23864 D=fbb95cfd 
Berkeley DB: Berkeley DB 5.1.29: (October 25, 2011) 
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DKIM 
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch nis nis0 passwd 
Authenticators: cram_md5 plaintext 
Routers: accept dnslookup ipliteral manualroute queryprogram redirect 
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp 
Fixed never_users: 0 
Size of off_t: 8 
Compiler: GCC [4.7.2] 
Library version: GnuTLS: Compile: 2.12.20 
         Runtime: 2.12.20 
Library version: PCRE: Compile: 8.31 
         Runtime: 8.30 2012-02-04 
Total 13 lookups 
WHITELIST_D_MACROS: "OUTGOING" 
TRUSTED_CONFIG_LIST: "/etc/exim4/trusted_configs" 
changed uid/gid: forcing real = effective 
    uid=0 gid=0 pid=23864 
    auxiliary group list: <none> 
seeking password data for user "uucp": cache not available 
getpwnam() succeeded uid=10 gid=10 
changed uid/gid: calling tls_validate_require_cipher 
    uid=106 gid=109 pid=23865 
    auxiliary group list: <none> 
tls_validate_require_cipher child 23865 ended: status=0x0 
configuration file is /var/lib/exim4/config.autogenerated 
log selectors = 00000ffc 00612001 
trusted user 
admin user 
seeking password data for user "mail": cache not available 
getpwnam() succeeded uid=8 gid=8 
user name "root" extracted from gecos field "root" 
originator: uid=0 gid=0 login=root name=root 
sender address = [email protected] 
Address testing: uid=0 gid=109 euid=0 egid=109 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
Testing [email protected] 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
Considering [email protected] 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
routing [email protected] 
--------> hubbed_hosts router <-------- 
local_part=info domain=mydomain.com 
checking domains 
expansion of "${if exists{/etc/exim4/hubbed_hosts}{partial-lsearch;/etc/exim4/hubbed_hosts}fail}" forced failure: assume not in this list 
hubbed_hosts router skipped: domains mismatch 
--------> dnslookup_relay_to_domains router <-------- 
local_part=info domain=mydomain.com 
checking domains 
mydomain.com in "@:localhost:localhost:localhost.localdomain:mydomain.com"? yes (matched "@") 
mydomain.com in "! +local_domains : +relay_to_domains"? no (matched "! +local_domains") 
dnslookup_relay_to_domains router skipped: domains mismatch 
--------> dnslookup router <-------- 
local_part=info domain=mydomain.com 
checking domains 
cached yes match for +local_domains 
cached lookup data = NULL 
mydomain.com in "! +local_domains"? no (matched "! +local_domains" - cached) 
dnslookup router skipped: domains mismatch 
--------> real_local router <-------- 
local_part=info domain=mydomain.com 
real_local router skipped: prefix mismatch 
--------> system_aliases router <-------- 
local_part=info domain=mydomain.com 
checking domains 
cached yes match for +local_domains 
cached lookup data = NULL 
mydomain.com in "+local_domains"? yes (matched "+local_domains" - cached) 
R: system_aliases for [email protected] 
calling system_aliases router 
rda_interpret (string): ${lookup{$local_part}lsearch{/etc/aliases}} 
search_open: lsearch "/etc/aliases" 
search_find: file="/etc/aliases" 
    key="info" partial=-1 affix=NULL starflags=0 
LRU list: 
    7/etc/aliases 
    End 
internal_search_find: file="/etc/aliases" 
    type=lsearch key="info" 
file lookup required for info 
    in /etc/aliases 
lookup failed 
expanded: 
file is not a filter file 
parse_forward_list: 
system_aliases router declined for [email protected] 
--------> userforward router <-------- 
local_part=info domain=mydomain.com 
checking domains 
cached yes match for +local_domains 
cached lookup data = NULL 
mydomain.com in "+local_domains"? yes (matched "+local_domains" - cached) 
checking for local user 
seeking password data for user "info": cache not available 
getpwnam() returned NULL (user not found) 
userforward router skipped: info is not a local user 
--------> procmail router <-------- 
local_part=info domain=mydomain.com 
checking domains 
cached yes match for +local_domains 
cached lookup data = NULL 
mydomain.com in "+local_domains"? yes (matched "+local_domains" - cached) 
checking for local user 
seeking password data for user "info": using cached result 
getpwnam() returned NULL (user not found) 
procmail router skipped: info is not a local user 
--------> maildrop router <-------- 
local_part=info domain=mydomain.com 
checking domains 
cached yes match for +local_domains 
cached lookup data = NULL 
mydomain.com in "+local_domains"? yes (matched "+local_domains" - cached) 
checking for local user 
seeking password data for user "info": using cached result 
getpwnam() returned NULL (user not found) 
maildrop router skipped: info is not a local user 
--------> lowuid_aliases router <-------- 
local_part=info domain=mydomain.com 
checking domains 
cached yes match for +local_domains 
cached lookup data = NULL 
mydomain.com in "+local_domains"? yes (matched "+local_domains" - cached) 
checking for local user 
seeking password data for user "info": using cached result 
getpwnam() returned NULL (user not found) 
lowuid_aliases router skipped: info is not a local user 
--------> local_user router <-------- 
local_part=info domain=mydomain.com 
checking domains 
cached yes match for +local_domains 
cached lookup data = NULL 
mydomain.com in "+local_domains"? yes (matched "+local_domains" - cached) 
checking local_parts 
info in "! root"? yes (end of list) 
checking for local user 
seeking password data for user "info": using cached result 
getpwnam() returned NULL (user not found) 
local_user router skipped: info is not a local user 
--------> mail4root router <-------- 
local_part=info domain=mydomain.com 
checking domains 
cached yes match for +local_domains 
cached lookup data = NULL 
mydomain.com in "+local_domains"? yes (matched "+local_domains" - cached) 
checking local_parts 
info in "root"? no (end of list) 
mail4root router skipped: local_parts mismatch 
no more routers 
[email protected] is undeliverable: Unrouteable address 
search_tidyup called 
>>>>>>>>>>>>>>>> Exim pid=23864 terminating with rc=2 >>>>>>>>>>>>>>>> 

답변

5

는 에코 서버에서이 시도 했 "테스트 메일을." | mail -s 테스트 [email protected]

또한 호스트 이름이 정규화 된 도메인인지 확인하십시오.

는 또한

확인

호스트 이름

호스트 이름을 해결하거나 호스트 이름 -i로 표시 IP를 정확하게 가리켜 야 -i 호스트 (메인 IP)을 시도 mydomain.com의 MX 레코드를 확인하고 해당 로컬 메일 서버를 사용하는지 확인하십시오.

+0

감사합니다. – Kaah

+0

'호스트 이름 -i 127.0.0.1' 맞습니까? – Kaah

+0

아니요. 127.0.0.1은 로컬 호스트 루프 IP입니다. 이 IP를 사용하여 메일을 보낼 수 없습니다. 호스트 이름을 해석 할 수 있어야합니다. 공용 IP를 가리켜 야합니다. 그게 바로 정규화 된 도메인 이름이 의미하는 것입니다. –