Exim4 - mysql 查找
我尝试了 exim4 start
,但现在收到此错误: 查找类型“mysql”不可用
。我使用 apt-get install exim4 安装了 exim4。我该如何解决这个问题?
问候, 凯文
更多信息: 2011-05-23 15:34:14 1QOVGr-0002k2-5D 在检查时未能展开“${lookup mysql{SELECT DISTINCT Transport FROM mail_transports WHERE Transport = '${quote_mysql:$domain}'}}”列表:查找类型“mysql”不可用(不在二进制文件中 - 检查构建时 LOOKUP 配置) 2011-05-23 15:34:14 1QOVGr-0002k2-5D 在检查列表时未能展开“${lookup mysql{SELECT DISTINCT Transport FROM mail_transports WHERE Transport = '${quote_mysql:$domain}'}}”:查找类型“mysql”不可用(不在二进制文件中 - 检查构建时查找配置)
I tried exim4 start
, but now I get this error:lookup type "mysql" is not available
. I installed exim4 with apt-get install exim4
. How can I fix this?
Regards,
Kevin
More information: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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
必须编译 mysql 才能用作查找类型。您可以通过运行 exim4 -bV(或 exim、sendmail,或者您的 exim 二进制文件的实际名称)来查看可用的查找。这是我的一台服务器的示例输出(请注意,我也没有编译 mysql):
我似乎记得 Debian(因此可能是 Ubuntu)有类似
exim4-heavy
作为包,这是 exim,其中包含了所有的花里胡哨的东西。你可以看一下。我似乎还记得一些打包者为查找类型维护了自己的私有动态加载器,因此在 Debian/Ubuntu 中您可能可以加载exim4-mysql
软件包或某些此类软件包,并具有查找可用。mysql has to be compiled in to be available as a lookup type. You can see what lookups are available by running
exim4 -bV
(or exim, or sendmail, or however your exim binary is actually named). Here's an example output from one of my servers (note I don't have mysql compiled in either):I seem to remember that Debian (and therefore probably Ubuntu) had something like
exim4-heavy
as a package, which was exim with all the bells and whistles compiled in. You might take a look at that. I also seem to remember that some of the packagers maintained their own private dynamic loader for lookup types, so it might be possible in Debian/Ubuntu that you could load theexim4-mysql
package or some such and have the lookup available.