我尝试过exim4 start,但是现在我得到了这个错误:lookup type "mysql" is not available。我用apt-get install exim4安装了exim4。我该如何解决这个问题呢?
向你致敬,凯文
更多信息:2011-05-23 15:34:14 1QOVGr-0002k2-5D failed to expand "${lookup mysql{SELECT DISTINCT transport FROM mail_transports WHERE transport = '${quote_mysql:$domain}'}}" while checking a list: lookup type "mysql" is not available (not in the binary - check buildtime LOOKUP configuration) 2011-05-23 15:34:14 1QOVGr-0002k2-5D failed to expand "${lookup mysql{SELECT DISTINCT transport FROM mail_transports WHERE transport = '${quote_mysql:$domain}'}}" while checking a list: lookup type "mysql" is not available (not in the binary - check buildtime LOOKUP configuration)
发布于 2011-05-23 22:21:25
mysql必须经过编译才能作为查找类型使用。您可以通过运行exim4 -bV (或exim或sendmail,或者您的exim二进制文件的实际名称)来查看可用的查找。下面是我的一台服务器的输出示例(注意,我也没有编译mysql ):
g3 0 /home/jj33 > exim -bV | grep ^Lookup
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch passwd我似乎记得Debian (因此可能是Ubuntu)有一个类似于exim4-heavy的包,它是exim,其中包含了所有的花哨的编译。你可以看看这个。我似乎还记得一些打包程序为查找类型维护了自己的私有动态加载器,因此在Debian/Ubuntu中,您可以加载exim4-mysql包或类似的包,并使查找可用。
https://stackoverflow.com/questions/6097988
复制相似问题