我试图debugging一个eximconfiguration问题(Ubuntu),我在configuration中看到很多行,例如:
remote_smtp: debug_print = "T: remote_smtp for $local_part@$domain" driver = smtp
但是,我不知道如何获得这些语句的输出。 我已经尝试编辑/ etc / default / exim4并在其中添加各种CLI参数,例如-v,-d,-d + all,虽然它们确实有效,但debug_print行无处可寻(stderr,stdout,在/ var /日志/ exim4的/ mainlog)。
如何启用,然后在哪里find“T:remote_smtp for …”输出?
根据exim文档
If this option is set and debugging is enabled (see `-d', `-v', and `debug_level'), then the string is expanded and included in the debugging output when the transport is run.
您可以通过在命令行上手动运行exim来validation这是否正常工作:
exim -d+all -bP transport remote_smtp
你有没有尝试添加debug_level 1到你的eximconfiguration?
我也没有通过修改/etc/default/exim4来看到任何额外的信息,并且在configuration文件中添加debug_level 1了。
对我来说,运行在前台的exim4使用与Debian / Ubuntu相同的命令行参数,并在其中添加了d+all :
root@sh1:/srv/www/static# ps -A | grep exim 12886 ? 00:00:00 exim4 root@sh1:/srv/www/static# cat /proc/12886/cmdline /usr/sbin/exim4-bd-q30m root@sh1:/srv/www/static# service exim4 stop
现在开始进入前景,注意你必须在参数之间加空格:
root@sh1:/srv/www/static# /usr/sbin/exim4 -bd -d+all -q30m 22:19:03 12969 Exim version 4.84 uid=0 gid=0 pid=12969 D=fffdffff Berkeley DB: Berkeley DB 5.3.28: (September 9, 2013) Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc GnuTLS move_frozen_messages Content_Scanning DKIM Old_Demime PRDR OCSP ...