1. 程式人生 > >authdaemond: marker line not found in /etc/authmysqlrc (probably forgot to run sysconftool after an

authdaemond: marker line not found in /etc/authmysqlrc (probably forgot to run sysconftool after an

courier-authlib 配置報錯

authdaemond: marker line not found in /etc/authmysqlrc (probably forgot to run sysconftool after an upgrade)

 

我們再搭建extmail郵箱服務時,需要修改配置檔案/etc/authmysqlrc,

我直接建立該檔案,將需要的配置寫入檔案,測試虛擬賬戶時報錯:

[[email protected] etc]# /usr/local/courier-authlib/sbin/authtest -s login [email protected]
extmail Authentication FAILED: Operation not permitted

檢視日誌 

[[email protected] etc]# tail -F /var/log/maillog 
Dec 24 07:36:10 mail authdaemond: marker line not found in /etc/authmysqlrc (probably forgot to run sysconftool after an upgrade)

 日誌顯示說 marker line 沒找到,這個marker line 是啥,檢視 修改之前的配置檔案 /etc/authmysqlrc的前部分:

##VERSION: $Id: 01c3b327e4d5b8f4123500ce4c8d0ef7a690c10d-20160418083235$
#
# Copyright 2000-2007 Double Precision, Inc.  See COPYING for
# distribution information.
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# authmysqlrc created from authmysqlrc.dist by sysconftool
#
# DO NOT INSTALL THIS FILE with world read permissions.  This file
# might contain the MySQL admin password!
#
# Each line in this file must follow the following format:
#
# field[spaces|tabs]value
#
# That is, the name of the field, followed by spaces or tabs, followed by
# field value.  Trailing spaces are prohibited.


##NAME: LOCATION:0
#
# The server name, userid, and password used to log in.

MYSQL_SERVER            mysql.example.com
MYSQL_USERNAME          admin
MYSQL_PASSWORD          admin

##NAME: SSLINFO:0
#
# The SSL information.
#
# To use SSL-encrypted connections, define the following variables (available
# in MySQL 4.0, or higher):
#
#
# MYSQL_SSL_KEY        /path/to/file
# MYSQL_SSL_CERT       /path/to/file
# MYSQL_SSL_CACERT     /path/to/file
# MYSQL_SSL_CAPATH     /path/to/file
# MYSQL_SSL_CIPHERS    ALL:!DES

##NAME: MYSQL_SOCKET:0

註釋檔案裡說:

# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.

不要修改以 ## 開頭的行,因為在升級配置的時候,需要使用到該行。