Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-24-2010, 08:32 PM   #1
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374

Rep: Reputation: 32
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 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
Old 05-25-2010, 02:33 AM   #2
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
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:

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:

sudo -u dovecot less /var/mail/somedir/new/message
This may be helpful:

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)

Old 06-08-2010, 04:45 AM   #3
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374

Original Poster
Rep: Reputation: 32

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why did SquirrelMail, Dovecot Imap and Outgoing Mail all break at once? websissy Linux - Server 6 10-29-2009 03:49 AM
How do I use a Thunderbird "Local Folders directory" as a dovecot IMAP mail folder? jhwilliams Linux - Software 1 09-05-2009 10:18 PM
Difference between Dovecot IMAP and Cyrus IMAP sever ? rajdeepbhattacharya Linux - Newbie 3 06-18-2008 04:20 AM
Access mail via cyrus IMAP celeron Linux - Server 3 11-14-2007 02:53 AM
Dovecot imap mailbox access problem from network. vedang Fedora 2 12-27-2006 12:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration