LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using Dovecot IMAP to access user mail (https://www.linuxquestions.org/questions/linux-newbie-8/using-dovecot-imap-to-access-user-mail-809890/)

cadj 05-24-2010 07:32 PM

Using Dovecot IMAP to access user mail
 
Hello There. Wow it has been a long time since i have posted!

I am having some trouble finding the information i need, here is what i am trying to accomplish.

1. Download POP email messages from cody@clearsky.net.au using fetchmail and assigning them to account "cody"

2. Connect and view the emails via IMAP using dovecot server logging in using "cody"


So far i have the fetchmail part working fine, but i cannot see any emails in the inbox. The messages are going thru however as they are visable in MUTT.

i have edited my /etc/dovecot/dovecot.conf to change the mail directories, but no luck

Anyone got any advice on this one? Cheers

spampig 05-25-2010 01:33 AM

Good morning Cadj, if you have the Fetchmail part working, you probably just need to tie up Dovecot to look in the right place, with the right mailbox format. Look for a line similar to this in dovecot.conf:

Quote:

mail_location = maildir:/var/mail/%h/
Check the location (obviously) and location type: maildir || mbox || dbox. Also that the dovecot user has file system/selinux rights to open the location/messages. Probably the easiest way to confirm that is try to 'less' or 'cat' a message as the dovecot user:

Quote:

sudo -u dovecot less /var/mail/somedir/new/message
This may be helpful:
http://wiki.dovecot.org/MailLocation

and covers the various expansion place holders:
%u: Full username.
%n: User part in user@domain, same as %u if there's no domain.
%d: Domain part in user@domain, empty if there's no domain.
%h: user home directory (check this, it's vague)

HTH

cadj 06-08-2010 03:45 AM

thanks
 
That was exactly the problem. It's all working now cheers.

It's amazing how easy it has been to do all this. Thanks for your help.

Now fetchmail leaves the messages on the pop server, so outlook clients still receive mail and we have a full backup.


All times are GMT -5. The time now is 09:56 AM.