Forum Moderators: coopster
My MTA (Mail Transfer Agent) is Exim and POP/IMAP is handled by Courier-IMAP.
I found one solution of using PHP imap_open which authenticate a mailbox using username and password.
My question is would this function be the best choice for authentication or there are any other libraries or functions that I can implement for better authentication methods.
Any help is much appreciated.
Milan
Have you found sources that recommend otherwise? Or are you merely seeking advice/counsel based on the task ahead of you?
No, I haven’t found any recommended sources yet. I got PHP imap_open simply through web search.
In the mean time I found one other option of Courier Authentication Library [courier-mta.org] but I don’t know how to integrate it with PHP. It would be nice if anyone can help me out with that, MySQL authentication module will be preferred choice.
Milan
One way or another you are going to have to build a login page requesting userid and password. Then you begin your authentication processing. Start a session, validate the user, allow them into the area you have setup for them upon successful validation, back to the login with error messages otherwise.