Maildir with Horde or email client

15 posts / 0 new
Last post
#1 Wed, 08/13/2008 - 11:01
Tito

Maildir with Horde or email client

Hello,

I am having a problem where clients can't see their email folders they create in either Horde nor any email client.

Here is what I have gathered so far. I see that when you create email users, those accounts are created in home/domain_name/homes/user.accounts. When you install Horde via install scripts, it sets Maildir in /home/domain_name/Maildir.

Now, that creates the problem where if a user logs into Horde, they won't see their IMAP folders because Horde, I assume is looking in /home/domain_name/Maildir but the users email really lives in /home/domain_name/homes/user.accounts.

I checked dovecot.conf and see that the maildir is set as follows:

mail_location = maildir:~/Maildir:INDEX=/var/lib/dovecot/index/%u:CONTROL=/var/lib/dovecot/control/%u

I really don't know how to set the users email for Horde to be set to the email location of /home/domain_name/home/user.accounts. Any ideas?

Regards, G

Wed, 08/13/2008 - 16:55
andreychek

Howdy,

Well, Horde isn't likely looking for the mail folders on it's own -- instead, it'll just query the IMAP server on port 143 or so.

Which still leaves the issue of why you aren't seeing your folders :-)

I don't have a working copy of Horde in front of me, but I suspect it's related to folder subscriptions... well behaved IMAP clients generally require you to "subscribe" to a folder, they often won't just show them automatically.

In the options/preferences for Horde, do you see a way to subscribe to any additional folders?
-Eric

Sat, 08/16/2008 - 10:16 (Reply to #2)
Tito

Thanks for the reply. I don't see any way to subscribe to folders in Horde. I also went ahead and configured my email client evolution/outlook/thunderbird and all three aren't showing any folders either. I can't seem to figure out why folders aren't showing up in these clients.

This happens for every virtual server so there must be a setting something that is set to check for mail in the wrong location. hmmmm

Sun, 06/07/2009 - 07:28 (Reply to #3)
Tito

Another thing I noticed in outlook is that when I do a send/receive, it will give an error saying "The connection to the server is unavailable. Outlook must be connected or online to complete this action". The action is me trying to click on IMAP Folders from the tools menu.

Also, both in outlook and in evolution, it complains that it can't search for mail in "/" (root path). I don't know what directory I should be setting this to nor how to change it period. In fact, this is too many extra steps a client should have to take just to setup email anyway :-\

Sun, 06/07/2009 - 07:28 (Reply to #4)
Tito

Another thing I noticed in outlook is that when I do a send/receive, it will give an error saying "The connection to the server is unavailable. Outlook must be connected or online to complete this action". The action is me trying to click on IMAP Folders from the tools menu.

Also, both in outlook and in evolution, it complains that it can't search for mail in "/" (root path). I don't know what directory I should be setting this to nor how to change it period. In fact, this is too many extra steps a client should have to take just to setup email anyway :-\

Sun, 06/07/2009 - 07:28 (Reply to #5)
Tito

Another thing I noticed in outlook is that when I do a send/receive, it will give an error saying "The connection to the server is unavailable. Outlook must be connected or online to complete this action". The action is me trying to click on IMAP Folders from the tools menu.

Also, both in outlook and in evolution, it complains that it can't search for mail in "/" (root path). I don't know what directory I should be setting this to nor how to change it period. In fact, this is too many extra steps a client should have to take just to setup email anyway :-\

Sun, 08/17/2008 - 06:14 (Reply to #6)
Tito

Joe,

Those are actually errors that pop-up when it tries to send/receive email. It complains that it can't either connect to the server or that it can't look for mail in "/". If I try to subscribe to folders, it then says that outlook is offline and that I should try to connect to the server first.

I checked to make sure the server has the proper ports open and I can also telnet to them. I think the problem is the folder locations. The client is not looking in the right place for email.

The maillog is not even reporting any connection attempts by the clients and neither is 'messages'

Mon, 08/18/2008 - 14:14 (Reply to #7)
Joe
Joe's picture

<div class='quote'>The maillog is not even reporting any connection attempts by the clients and neither is 'messages' </div>

Then that would indicate that no connections are taking place. This would be a problem, ya know?

It sounds to me like the client is not connecting to the server at all, rather than looking for the wrong folder (it's pretty hard to get the configuration of Dovecot wrong).

<div class='quote'>So, I then go into the email client and enter those settings as IMAP settings and save. I then see a folder called Maildir and Junk in my email client. This is good cause now I know I can connect.</div>

Oops. This is not good. It <i>is</i> a folder problem, after all. You should not see a folder named &quot;Maildir&quot;. For whatever reason Dovecot is configured to use $HOME as the mail location...this isn't right. It should be $HOME/Maildir/

--

Check out the forum guidelines!

Mon, 08/18/2008 - 18:04 (Reply to #8)
Tito

Joe,

my dovecot.conf file has this as the folder location:

mail_location = maildir:~/Maildir:INDEX=/var/lib/dovecot/index/%u:CONTROL=/var/lib/dovecot/control/%u

does that look correct? should I edit this to something else?

Sun, 08/17/2008 - 06:38 (Reply to #9)
Tito

Here is what I am doing. A client receives an email when they first setup their hosting account with us saying the following:

username - user_name.domain
incoming - mail.domain.tld
outdoing - mail.domain.tld
passwd - my_passwd

So, I then go into the email client and enter those settings as IMAP settings and save. I then see a folder called Maildir and Junk in my email client. This is good cause now I know I can connect.

Next, I try to send an email from my client and get an error email back saying:

[color=#FF0000]Your message did not reach some or all of the intended recipients.

Subject: test
Sent: 8/17/2008 11:27 AM

The following recipient(s) could not be reached:

'username@domain.told' on 8/17/2008 11:27 AM
554 5.7.1 &lt;username@domain.told&gt;: Relay access denied[/color]

Now, if I go to gmail or yahoo to try to send an email to that account to see if I can at least receive it, it goes through fine BUTTTTTTTT I cannot see the email in my email client. I can only see if I check the email in the webmin module or if I go into the server and look in the users Maildir/new folder.

So, the client is not looking in the right place for email. Where should I be pointing the email client to so that it sees my email that is already there? Outlook has an option where you can specify where your root maildir is but I wouldn't know what to put in there. I have tried several paths but none work.

Sun, 06/07/2009 - 07:28 (Reply to #10)
Tito

Is there anyone else that may be able to shine some light on this topic? :-\

Wed, 08/20/2008 - 06:02 (Reply to #11)
Tito

It's been a few days I have been having trouble with this and it's not looking good for me. Is there anyone else that might be able to suggest anything?

Thanks

Thu, 08/21/2008 - 06:37 (Reply to #12)
Tito

I have made the following change on dovecot.conf:

from

#mail_location = maildir:~/Maildir:INDEX=/var/lib/dovecot/index/%u:CONTROL=/var/lib/dovecot/control/%u

to

mail_location = maildir:~/Maildir/

I can now see email :-). I do hope that doesn't break anything else or messes with email quota...can anyone verify?

Thanks,
G

Tue, 08/25/2009 - 19:46 (Reply to #13)
kenlyle

Doesn't work for me. Still not sure where the disconnect is between dovecot and Horde/SquirrelMail.

Ken

Sat, 08/16/2008 - 13:37
Joe
Joe's picture

<div class='quote'>Also, both in outlook and in evolution, it complains that it can't search for mail in &quot;/&quot; (root path). I don't know what directory I should be setting this to nor how to change it period. In fact, this is too many extra steps a client should have to take just to setup email anyway :-</div>

Huh? I don't even know what you're talking about. My mail client doesn't ask me crazy questions like that, and it shouldn't. ;-)

Anyway, we don't need to know what the mail client is telling you--they're too stupid to be worth listening to. Look in the maillog when you try to retrieve mail.

--

Check out the forum guidelines!

Topic locked