Second login to IMAP server after login to Usermin

18 posts / 0 new
Last post
#1 Thu, 08/16/2012 - 09:29
fuggi

Second login to IMAP server after login to Usermin

Hi,
is there an option which prevents the second login to the IMAP server after the first login to Usermin if the option "Mail storage format for Inbox" was set as "Remote IMAP server"?

Best regards,
fuggi

Thu, 08/16/2012 - 10:01
andreychek

Hmm, I don't believe so -- what problem is it you're running into exactly?

-Eric

Sat, 08/18/2012 - 16:16
fuggi

After a user has logged in to Usermin to check his e-mails (because Read Mail is the only accessible Usermin module), a second login form (now for the IMAP server) is displayed where he has to login again. Despite the address of the "POP3 or IMAP server name" being specified as localhost. So I think, if localhost is selected for this option, no additional login screen should be displayed, but the login data submitted at Usermin login should be used.

Best regards,
fuggi

Sun, 08/19/2012 - 12:38 (Reply to #3)
JamieCameron

This should be what happens already actually. However, it can get complex if your system is storing only hashed passwords, instead of plaintext passwords (which is the Virtualmin default).

Do you have hashed passwords enabled on your system? You can check by looking for the line hashpass=1 in /etc/webmin/virtual-server/config

''

Sun, 08/19/2012 - 14:06 (Reply to #4)
fuggi

I don't have to check, I know that I enabled hashed password storing at the very beginning.

Does this mean that, after login to Usermin, it retrieves login data for the IMAP server from password files? Wouldn't it be possible to use the login data just submitted for the login to Usermin (at least for a first attempt)?

Mon, 08/20/2012 - 15:52 (Reply to #5)
JamieCameron

In the case where hashed passwords are used, Usermin has the ability to transparently pass the login on to the IMAP server. This should be enabled by default, but if not you can activate it by going to Webmin -> Usermin Configuration -> Authentication, and selecting "Disable session authentication", then clicking "Save".

Then go to "Advanced Options" and change "Make password available to Usermin programs?" to "Yes", and click "Save".

''

Mon, 08/20/2012 - 16:21 (Reply to #6)
fuggi

Session authentication was not disabled by default, despite hashed password storing being enabled from the very beginning. Shall I post this bug?

I did what you suggested and now it works. Thanks!

Mon, 08/20/2012 - 17:16 (Reply to #7)
JamieCameron

Cool, glad to hear that worked. I will look into why this didn't get enabled automatically ...

Did you enable hashed passwords using the post-install wizard in Virtualmin?

''

Tue, 08/21/2012 - 01:55 (Reply to #8)
fuggi

Yes, I used the post-install wizard to enable hashed storing of passwords.

Fri, 08/24/2012 - 02:55 (Reply to #9)
fuggi

Hi Jamie,
have you had time to look into this yet?

Regards,
fuggi

Fri, 08/24/2012 - 18:54 (Reply to #10)
JamieCameron

I had a look at this, and it seems that when the wizard is used to enable hashed passwords, Usermin is configured to not use IMAP at all - instead, it reads mail files directly, so it doesn't have to login to the IMAP server.

Did you perhaps manually switch back to using IMAP?

''

Sat, 08/25/2012 - 03:51 (Reply to #11)
fuggi

Yes, because when Usermin was configured to read mail files and folders directly, it created subdirectories for specific purposes as pleased (e.g. "sentmail" for sent messages), even though respective subdirectories already existed (e.g. "sent") or an e-mail client (e.g. Thunderbird) created other subdirectories.

I would have preferred setting up the respective subdirectories in Usermin or use the skeleton to create such subdirectories and configure Usermin to use them, but couldn't find any option to configure Usermin's Read Mail module for this purpose.

Thu, 08/30/2012 - 10:38 (Reply to #12)
fuggi

I would have preferred setting up the respective subdirectories in Usermin or use the skeleton to create such subdirectories and configure Usermin to use them, but couldn't find any option to configure Usermin's Read Mail module for this purpose.
Is it possible to configure the Read Mail module in such a way?

Sun, 09/09/2012 - 15:57
fuggi

I found the corresponding options "Sent mail folder name", "Drafts folder name", and "Trash folder name" in the "Mail folders" section (Webmin -> Usermin Configuration -> Usermin Module Configuration -> Read Mail -> Default User Preferences), but they are undocumented.

What exactly means "Automatic"? How should the folder names be entered (absolute or relative paths; relative to what)?

Sun, 09/09/2012 - 20:13 (Reply to #14)
JamieCameron

"Automatic" means that Usermin will attempt to use any folder that case-insensitively matches the word "drafts" .. so if you have an existing folder called "DRAFTS" or "Drafts", it will be used.

The folder names are just relative to the mail directory, so they should be like "trash" or "Drafts".

''

Mon, 09/10/2012 - 14:37 (Reply to #15)
fuggi

Hi Jamie,
thank you for your clarification!

What default folders will be created if "Automatic" is selected but no respective folders exist?

Regards,
fuggi

Mon, 09/10/2012 - 23:14 (Reply to #16)
JamieCameron

In that case, all lower-case names will be used, like "trash" , "sent" and "drafts"

''

Mon, 09/17/2012 - 15:29
fuggi

All that sounds very reasonable. IMHO, these explanations should be added to the help/documentation.

Hence, I only have to set up a folder skeleton for server and user creation to prevent other e-mail clients from creating different folders (e.g. TB does if no such folders exist).

Topic locked