Link to home
Start Free TrialLog in
Avatar of lukeMH
lukeMH

asked on

Horde / IMP mail folder location?

Hi,

I have an old server on which I use Horde / IMP to access my e-mail. I have my e-mail stored in various folders

inbox, old, receipts, work, sent-mail, etc etc etc

I am moving over to a new server and I need to copy all my mail.

I cannot find where horde stores its mail folders. I have searched and searched and searched all over the server and I have spent 2 hours googling for the location.

I have found my inbox which is in

/var/qmail/mailnames/[my site name]/[my pop3 account name]/Maildir/cur

but I have no idea where mail goes to when I move it to a folder in Horde.

Thanks in advance for any help you can offer

Luke
ASKER CERTIFIED SOLUTION
Avatar of pjedmond
pjedmond
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The installed:

imp/config/servers.php

Should give you the necessary information relating to the mail server concerned.

or:

telnet servername 143

should print out details of the server concerned.

Once you know what server is handling your mail, we'll know where to look for the mail.

HTH:)
Avatar of lukeMH
lukeMH

ASKER

The non-commented portion of servers.php is below

$servers['imap'] = array(
    'name' => 'IMAP Server',
    'server' => 'localhost',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => '',
    'namespace' => 'INBOX.',
    'maildomain' => $DomainName,
    'smtphost' => 'localhost',
    'realm' => $DomainName,
    'preferred' => ''
);

$servers['cyrus'] = array(
    'name' => 'Cyrus IMAP Server',
    'server' => 'localhost',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => '',
    'namespace' => 'INBOX.',
    'maildomain' => $DomainName,
    'realm' => $DomainName,
    'preferred' => ''
);

$servers['pop'] = array(
    'name' => 'POP3 Server',
    'server' => 'localhost',
    'protocol' => 'pop3',
    'port' => 110,
    'folders' => '',
    'namespace' => '',
    'maildomain' => $DomainName,
    'realm' => $DomainName,
    'preferred' => ''
);

$servers['exchange'] = array(
    'name' => 'Exchange 5.5 server',
    'server' => 'localhost',
    'protocol' => 'imap',
    'port' => 143,
    'folders' => '',
    'namespace' => '',
    'maildomain' => $DomainName,
    'realm' => '',
    'preferred' => ''
);


I assumed that the mail was being stored by imp/horde as the folders were created in horde, and do not appear with the nice normal q-mail inbox

Thanks

Luke
Avatar of lukeMH

ASKER

Forgot to say that I thought telnetting to port 143 gave no response. Then I realised I had the client set to SSH and not telnet. Changed it and got the following

* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc.  See COPYING for distribution information.


So its Courier-IMAP right?

Luke
Absolutely - :)

Id expect the files associated with this to be in:

/usr/lib/courier-imap/

probably the share folder.

HTH:)
The other probable location is in the $HOME directory if all users have an account on the system.

If neither of these are correct, have a look at the configuration file in

/usr/lib/courier-imap/etc/

or possibly in the /etc/

folder. Hopefully that'll end your search.

HTH:)
Qmail is maily a replacement for sendmail as the 'delivery agent' for mail. The folders bit is handled by the IMAP functionality. The courier-IMAP website is:

http://www.courier-mta.org/

Obviously add another question if you need further help.

:)
Avatar of lukeMH

ASKER

I found the files by mistake with an ls -a in shell. I was previously using ftp to look (as I wanted to download the mail directories by ftp)



The files are dot files (hidden) grrrrrr!

They are in /var/qmail/mailnames/[my site name]/[my pop3 account name]/Maildir


I have no idea why the inbox is not hidden but all the other folders are. Oh well never mind, I have found them now and started downloading them. Thankyou for sending me in the right direction

Kind Regards

Luke