我成功地使用 froxlor 等设置了我的服务器,但现在我的邮件传递代理出现错误,因为我在我的 mysql-pw 中使用了“#”。我试图用 '\' 转义它,但它似乎不起作用。:(
如何更改 /etc/dovecot/covecot-sql.conf.ext 以使其使用带有特殊字符的密码(让我们以密码“test#this”为例)?
我当前的配置:
driver = mysql
connect = host=127.0.0.1 dbname=froxlor user=froxlor password=test#test
default_pass_scheme = CRYPT
Run Code Online (Sandbox Code Playgroud)
这是错误消息:
dovecot: auth: Warning: Configuration file /etc/dovecot/dovecot-sql.conf.ext line 2: Ambiguous '#' character in line, treating it as comment. Add a space before it to remove this warning.
Run Code Online (Sandbox Code Playgroud)
    小智 8
达夫科特维基
# Use "host= ... pass=foo#bar" if your password has '#' character
所以你/etc/dovecot/dovecot-sql.conf.ext应该是
driver = mysql
connect = "host=127.0.0.1 dbname=froxlor user=froxlor password=test#test"
default_pass_scheme = CRYPT
Run Code Online (Sandbox Code Playgroud)
        |   归档时间:  |  
           
  |  
        
|   查看次数:  |  
           2778 次  |  
        
|   最近记录:  |