courier-authlib 0.68.0-4build1 Operation not permitted

Asked by chandra sekhar on 2018-09-06

while executing authtest commond i am getting this err
marker line not found in /etc/courier/authmysqlrc (probably forgot to run sysconftool after an upgrade)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu courier-authlib Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2018-09-07
Last query:
2018-09-07
Last reply:
2018-09-07

It is in ubuntu 18.04

What is the output of:

cat -n /etc/courier/authmysqlrc

Thanks

 1 MYSQL_SERVER localhost
     2 MYSQL_USERNAME mail_admin
     3 MYSQL_PASSWORD mail_adminpassword
     4 MYSQL_PORT 0
     5 MYSQL_DATABASE mail
     6 MYSQL_USER_TABLE users
     7 MYSQL_CRYPT_PWFIELD password
     8 #MYSQL_CLEAR_PWFIELD password
     9 MYSQL_UID_FIELD 5000
    10 MYSQL_GID_FIELD 5000
    11 MYSQL_LOGIN_FIELD email
    12 MYSQL_HOME_FIELD "/vmail"
    13 MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')

Thanks in advance

Best Manfred Hampl (m-hampl) said : #5

It seems that you have removed all comment lines, but they are important!

The original file provided when installing the package contains among others:

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

You have to re-add the comment lines (or even better: restore the original file and apply your changes by modifying the lines, but not deleting anything).

Thanks Manfred Hampl, that solved my question.