
我的 MySQL Courier + Postfix 電子郵件伺服器有問題
這是錯誤日誌:
warning: mysql:/etc/postfix/mysql-virtual_domains.cf: query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'virtual FROM `domains` WHERE domain='domain.example'' at line 1
並在程式碼中mysql-virtual_domains.cf
:
user = mail_admin
password = mypassword
dbname = mail
query = SELECT domain AS virtual FROM `domains` WHERE domain='%s'
hosts = 127.0.0.1
怎麼辦?