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,

我直接创建该文件,将需要的配置写入文件,测试虚拟账户时报错:

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

查看日志 

[root@mail 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.

不要修改以 ## 开头的行,因为在升级配置的时候,需要使用到该行。

猜你喜欢

转载自blog.csdn.net/yetugeng/article/details/85252012
今日推荐