Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[courrier-imap] connection failure [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Tue Jul 13, 2010 4:40 pm    Post subject: [courrier-imap] connection failure [solved] Reply with quote

Hi,

I have installed netqmail and courrier-imap as detailed in the netqmail wiki page.

My php application try to connect to imap but always failed. The log error show following messages :
Code:
Jul 13 18:28:57 mailer imapd: LOGIN FAILED, user=postmaster@mailer.domain.com, ip=[127.0.0.1]
Jul 13 18:29:02 mailer imapd: LOGIN FAILED, user=postmaster@mailer.domain.com, ip=[127.0.0.1]
Jul 13 18:29:07 mailer imapd: LOGIN FAILED, user=postmaster@mailer.domain.com, ip=[127.0.0.1]
Jul 13 18:29:12 mailer imapd: LOGOUT, ip=[127.0.0.1], rcvd=188, sent=394


I'm using the following php command :
Code:
imap_open("{localhost:143}INBOX", "postmaster@mailer.domain.com", "mypass")


What's going wrong with my configuration ?

Thanks


Last edited by sylvain.bonnemaison on Thu Jul 15, 2010 8:57 am; edited 2 times in total
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Tue Jul 13, 2010 10:12 pm    Post subject: Reply with quote

While debuging, i get following messages in log file :
Code:
Jul 13 23:14:20 mailer authdaemond: stopping authdaemond children
Jul 13 23:14:20 mailer authdaemond: modules="authvchkpw", daemons=5
Jul 13 23:14:20 mailer authdaemond: Installing libauthvchkpw
Jul 13 23:14:20 mailer authdaemond: file not found

Should I use authmysql module for authentication ?
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Thu Jul 15, 2010 8:16 am    Post subject: Reply with quote

I have switch to authmysql as describe in http://en.gentoo-wiki.com/wiki/Courier-authlib_with_MySQL.

I have this only message from mail.log
Code:
Jul 15 10:02:10 mailer imapd: Connection, ip=[127.0.0.1]

and this message from my php script
Code:
imap_open("{localhost:143/novalidate-cert}INBOX", "user@mailer.domain.com", "mypass"))
imap_open(): Couldn't open stream
Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate)

What's going wrong ?
Back to top
View user's profile Send private message
sylvain.bonnemaison
Apprentice
Apprentice


Joined: 13 Jan 2008
Posts: 152

PostPosted: Thu Jul 15, 2010 8:56 am    Post subject: Reply with quote

I have fixed some configuration error in authmysqlrc and it works better now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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