|
发表于 2005-9-19 12:42:44
|
显示全部楼层
我加了 AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS=1 后,配置怎么也通不过,提示错误:
configuration error in line 395 of /var/lib/exim4/config.autogenerated.tmp:
authenticator name missing
打开 /etc/exim4/exim4.conf.template
找到这里:
# Because AUTH PLAIN sends the password in clear, per default we only allow it
# over encrypted connections. If you want to change this disable the existing
# "client send" entry and enable the one below without the "if !eq{$tls_cipher}{}"
# by removing the hash-mark (#) at the beginning of the line.
它的意思是说,要用明文验证,只需要把下面的带 "if !eq{$tls_cipher}{}" 的 client_send 有关的注释掉(每一行都要注释掉),再去掉不带 "if !eq{$tls_cipher}{}" 的 client_send 前的注释.结果看上去就像这样:
plain:
driver = plaintext
public_name = PLAIN
# client_send = "${if !eq{$tls_cipher}{}{\
# ^${extract{1}{::}\
# {${lookup{$host}lsearch*{CONFDIR/passwd.client}{$value}fail}}}\
# ^${extract{2}{::}\
# {${lookup{$host}lsearch*{CONFDIR/passwd.client}{$value}fail}}}\
# }fail}"
client_send = "^${extract{1}{::}{${lookup{$host}lsearch*{CONFDIR/passwd.client}{$value}fail}}}^${extract{2}{::}{${lookup{$host}lsearch*{CONFDIR/passwd.client}{$value}fail}}}"
这样就行了,不需要 AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS=1
另外,能通过exim发邮件后,又遇到了一个问题,一些系统内部的邮件比如root的邮件会通过exim发到 root@163.com,当然它发不出去. 这怎么办呢? |
|