Hastymail2

Hastymail2 is an Open Source IMAP webmail client written in PHP. Our focus is compliance, usability, security, and speed.

Hastymail 2

avatar
What permissions to use for files and a question about authentication

Hi all

I work in an ISP and we're working on an email solution based on qmail, dovecot and hastymail on FreeBSD. I have installed hastymail and can successfully login but I can't change any of the settings. I guess it has something to do permission but I've chowned all the contents to www user and changed the permission to 755 but no luck. I was just curious what permission to us, e for the files.

Another issue is I took a look at dovecot's log and noticed for every transaction, I've got lines like these:

dovecot: Info: imap-login: Login: user=<navid>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
dovecot: Info: IMAP(navid): Disconnected: Logged out bytes=139/1324

 Is it ntural?

 BTW , my congratulations to you all for this wonderful projects. I tested half a dozen of webmail solutions such as Horde/IMP, Squirrellmail, Roundcube, ... but none of them was what I was looking for but finally I came across your webmail and it's just what I've been looking for.

Take care

Reply /Quote
avatar
Re: What permissions to use for files and a question about authentication

Hello,

    First let me say good choice on the software you have selected for your mail solution. I ran a mail server with qmail for several years and was very satisfied with the performance, and I currently run dovecot for my own purposes and think it has excellent capabilities. As for the file permissons the crucial thing is that the web server process has the ability to create and write to the user settings directory. It sounds as if your permissions are correct so I am not sure why you can't change your settings. When you try to update from the options page do you get any warnings or errors? Does it say "settings updated" or nothing at all? FYI We also support storing user settings in a database (mysql only for now) which might interest you if you have a decent amount of users

   As for the dovecot log message this is normal. Hastymail is written in PHP and the programs execution terminates when the requested page is sent to the browser. Because of this we re-authenticate to the IMAP server for each page load. We balance this overhead by being extremely cautious about not issuing any expensive IMAP commands except when we absolutely have to. The result is a "stateless" but still extremely fast and efficient IMAP client (we hope!).

   If you double check the permissions and still can't get Hastymail to save user settings please open a bug in our tracker:

 http://www.hastymail.org/mantis/

   I can at the very least post a small test PHP program that tries to create and alter a file in the settings directory to see if the problem is with our code or the web server config (I am unable to reproduce this with my install of the Hastymail2 beta 3 code). Thanks so much for your interest in Hastymail and we appreciate the feedback.

 Jason

Reply /Quote
avatar
DB issue

Thanks a lot Jason. I decided to go with the database method. So I created the database, imprted the sql file and made the configuration changes in the rc file. Now when I try to login, once I enter the user/pass I get the following. I installed pear-DB port. Am I missing something?

 

Fatal error: Call to undefined method DB_Error::quote() in /usr/local/www/apache22/data/hastymail2/db/db.php on line 289

Reply /Quote
avatar
Updat

Well, I don't know how but the error just disappeared once I reconfigured the rc file. Now when I login it gives me the following error:

  Could not establish a connection to the databse

I have checked the user and password like 10 times and have tried using the DB from the CLI using the very same user/pass so I really have no idea why it doesn't work. How can I see a log that shows me why the webmail can't access the DB.

Reply /Quote
avatar
Re: Update

There is a db_debug option in the config file. change this to true, update your rc file, and then login and see what gets printed. The debug information should appear below the hastymail interface and very well may have a clue about whats going wrong.

Jason

Reply /Quote


 SourceForge.net Logo