View previous topic :: View next topic |
Author |
Message |
jecepede Apprentice
Joined: 19 Nov 2002 Posts: 239
|
Posted: Tue Aug 27, 2019 6:19 pm Post subject: [SOLVED] Courier-authlib - Pop3 - No such file or directory |
|
|
Aloha !
I have been struggling with this for quite a while now and I get all kind of error messages so time to set my pride aside and call in the cavelary
So what did I do.
I follewed this guide : https://wiki.gentoo.org/wiki/Complete_Virtual_Mail_Server
but I get stuck at the chapter where I test my courier-authlib : https://wiki.gentoo.org/wiki/Complete_Virtual_Mail_Server/Courier-IMAP_to_Database#Testing_courier-authlib
When I start a telnet session to my Postman-Pat, yeah I know original name hu, it does not login and the mail.log shows this :
Code: |
Aug 27 19:51:25 postmanpat pop3d[13940]: Connection, ip=[::ffff:10.0.1.129]
Aug 27 19:51:40 postmanpat authdaemond[13857]: received auth request, service=pop3, authtype=login
Aug 27 19:51:40 postmanpat authdaemond[13857]: authmysql: trying this module
Aug 27 19:51:40 postmanpat authdaemond[13857]: authmysqllib: connected. Versions: header 50716, client 60111, server 50726
Aug 27 19:51:40 postmanpat authdaemond[13857]: SQL query: SELECT username, password, '', '5000', '5000', CONCAT(homedir, maildir), '', quota, name, '' FROM mailbox WHERE username = 'info@mydomain.nl' AND (1=1)
Aug 27 19:51:40 postmanpat authdaemond[13857]: password matches successfully
Aug 27 19:51:40 postmanpat authdaemond[13857]: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/vmail/mydomain.nl/info/, address=info@mydomain.nl, fullname=Full Name, maildir=<null>, quota=51200000, options=<null>
Aug 27 19:51:40 postmanpat authdaemond[13857]: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/vmail/mydomain.nl/info/, address=info@mydomain.nl, fullname=Full Name, maildir=<null>, quota=51200000, options=<null>
Aug 27 19:51:40 postmanpat pop3d[13940]: chdir .maildir: No such file or directory
|
The directory exists, there is even a welcome mail sent by Postfix-Admin :
Code: |
postmanpat / # find /var/vmail/mydomain.nl/info/
total 20K
/var/vmail/mydomain.nl/info/
/var/vmail/mydomain.nl/info/tmp
/var/vmail/mydomain.nl/info/new
/var/vmail/mydomain.nl/info/new/1566916968.V804I9e363aM621495.postmanpat
/var/vmail/mydomain.nl/info/cur
|
and.... the authorisation seems to be able to find the data from the database :
Code: |
postmanpat / # authtest info@mydomain.nl
Authentication succeeded.
Authenticated: info@mydomain.nl (uid 5000, gid 5000)
Home Directory: /var/vmail/mydomain.nl/info/
Maildir: (none)
Quota: 51200000
Encrypted Password: $1$40018005$n2ngpwyfh5BpVfyYSmY021
Cleartext Password: (none)
Options: (none)
postmanpat / #
|
I can't quite wrap my head around what happens here
What am I doing wrong this time....
Cheeeeeeeeeeeers,
Jecepede _________________ I've got that retro-feeling :
http://instagram.com/jecepede
Check out my YouTube channel
https://www.youtube.com/jecepede
Last edited by jecepede on Thu Aug 29, 2019 4:14 pm; edited 1 time in total |
|
Back to top |
|
|
freke l33t
Joined: 23 Jan 2003 Posts: 977 Location: Somewhere in Denmark
|
Posted: Tue Aug 27, 2019 7:20 pm Post subject: |
|
|
Not using courier-authlib - but is there a .maildir-directory inside the homedir (isn't it trying to chdir to that?)
Also I see a note in the guide Quote: | Note
The MAILDIRPATH section contains some dupes, make sure it is properly set and cleaned up. |
Dunno if that only applies to the IMAP-part of courier-imap configuration |
|
Back to top |
|
|
jecepede Apprentice
Joined: 19 Nov 2002 Posts: 239
|
Posted: Thu Aug 29, 2019 4:14 pm Post subject: Solved ! |
|
|
Aloha !
I'm an idiot....
In the file /etc/courier/authlib/authmysqlrc
I set the home directoy and the maildir incorrectly
It was mIAldir in stead of mAIldir:
Code: |
MYSQL_HOME_FIELD CONCAT(homedir, mialdir)
#MYSQL_MAILDIR_FIELD maildir
|
Changed it into :
Code: |
MYSQL_HOME_FIELD homedir
MYSQL_MAILDIR_FIELD maildir
|
...then restarted and voila, it works
I do wonder why I did not get an SQL error by the way ????
Cheeeeeeeeeeeeeers,
Jecepede _________________ I've got that retro-feeling :
http://instagram.com/jecepede
Check out my YouTube channel
https://www.youtube.com/jecepede |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|