&引用;“不可路由地址”;使用exim4

&引用;“不可路由地址”;使用exim4,exim,exim4,Exim,Exim4,我正在使用exim4。我有一个Wordpress安装和一个联系方式。我的主机名-f是mydomain.com 表单正在向发送电子邮件info@mydomain.com. 然而,它从未到达我的“场外”电子邮件。如何设置此设置以使电子邮件不会卡在Web服务器上 进出口银行应将电子邮件转发(路由)至场外电子邮件info@mydomain.com. 例如,当我从gmail发送到那个地址时,它会立即被发送 我遵循了这个指南:但它对这个问题没有帮助 mydomain:/var/mail# exim -bt

我正在使用exim4。我有一个Wordpress安装和一个联系方式。我的主机名-f是mydomain.com

表单正在向发送电子邮件info@mydomain.com. 然而,它从未到达我的“场外”电子邮件。如何设置此设置以使电子邮件不会卡在Web服务器上

进出口银行应将电子邮件转发(路由)至场外电子邮件info@mydomain.com. 例如,当我从gmail发送到那个地址时,它会立即被发送

我遵循了这个指南:但它对这个问题没有帮助

mydomain:/var/mail# exim -bt -d info@mydomain.com 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 = root@mydomain.com
Address testing: uid=0 gid=109 euid=0 egid=109
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Testing info@mydomain.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering info@mydomain.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing info@mydomain.com
--------> 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 info@mydomain.com
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 info@mydomain.com
--------> 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
info@mydomain.com is undeliverable: Unrouteable address
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=23864 terminating with rc=2 >>>>>>>>>>>>>>>>
mydomain:/var/mail#exim-bt-dinfo@mydomain.com 2>&1
Exim版本4.80 uid=0 gid=0 pid=23864 D=fbb95cfd
伯克利DB:Berkeley DB 5.1.29:(2011年10月25日)
支持:crypteq iconv()IPv6 GnuTLS移动\u冻结\u消息DKIM
查找(内置):lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch nis0 passwd
验证器:cram_md5纯文本
路由器:接受dnslookup ipliteral手动路由查询程序重定向
传输:appendfile/maildir/mailstore自动回复lmtp管道smtp
已修复从未\u用户:0
出口尺寸:8
编译器:GCC[4.7.2]
库版本:GnuTLS:Compile:2.12.20
运行时间:2.12.20
库版本:PCRE:Compile:8.31
运行时间:8.30 2012-02-04
共13次查找
白名单\u D\u宏:“传出”
受信任的配置列表:“/etc/exim4/TRUSTED\u configs”
更改的uid/gid:强制实数=有效
uid=0 gid=0 pid=23864
辅助组列表:
正在查找用户“uucp”的密码数据:缓存不可用
getpwnam()成功uid=10 gid=10
更改的uid/gid:调用tls\u验证\u需要\u密码
uid=106 gid=109 pid=23865
辅助组列表:
tls\u验证\u需要\u密码子23865已结束:状态=0x0
配置文件为/var/lib/exim4/config.autogenerated
日志选择器=00000 FFC 00612001
可信用户
管理用户
正在查找用户“邮件”的密码数据:缓存不可用
getpwnam()成功uid=8 gid=8
从gecos字段“root”提取的用户名“root”
发起人:uid=0 gid=0 login=root name=root
发件人地址=root@mydomain.com
地址测试:uid=0 gid=109 euid=0 egid=109
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
测试info@mydomain.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
考虑到info@mydomain.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
路由info@mydomain.com
-------->hubbed(主机)路由器dnslookup(中继)到(域)路由器dnslookup路由器real(本地路由器系统)别名路由器用户转发路由器procmail路由器maildrop路由器lowuid)别名路由器本地(用户路由器mail4root路由器)>>>>>>>>>>>>>>>>>>>>>>>>>>>Exim pid=23864以rc=2终止

您是否从服务器上尝试了此操作

回显“测试邮件”。|邮件-s测试name@mydomain.com

还要确保主机名是完全限定的域

试一试

主机名

主机名-i

主机名应解析或正确指向主机名-i(主IP)显示的IP

另外,请检查mydomain.com的MX记录,并确保其使用本地邮件服务器。

根据wiki,您可以通过以下方式检查地址的路由:

exim -bt name@example.org

这将为您提供有关exim4是否识别此地址的信息。

谢谢,我将对此进行调查。否。127.0.0.1是本地主机循环IP。您无法使用此IP发送邮件。您的主机名必须是可解析的。它应该指向公共IP。这就是完全限定域名的含义。您好@LeoPrince您有没有参考资料,我们可以确认
hostname-i
应该返回一个公共ip?我之前的评论是几年前发布的,当时我还是一个初学者。。我现在想修改一下这个评论。主机名-i通过解析DNS显示IP。。它应该是FQDN以使用nameserver递归解析,或者应该在hosts文件中有一个条目。有些服务器供应商直接在主机文件中提供公共IP,但有些提供私有IP,这取决于他们管理的系统。然而,我想说的是,主机名-我应该为您带来可用的解析IP,无论是从主机文件,如果它有条目或从DNS。。希望helpsmail不在所有exim主机上,测试应该做什么?