LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-24-2010, 07:32 PM   #1
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: LinuxMint Elyssa
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 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
 
Old 05-25-2010, 01:33 AM   #2
spampig
Member
 
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:

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
 
Old 06-08-2010, 03:45 AM   #3
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: LinuxMint Elyssa
Posts: 374

Original Poster
Rep: Reputation: 32
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.
 
  


Reply


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 02:49 AM
How do I use a Thunderbird "Local Folders directory" as a dovecot IMAP mail folder? jhwilliams Linux - Software 1 09-05-2009 09:18 PM
Difference between Dovecot IMAP and Cyrus IMAP sever ? rajdeepbhattacharya Linux - Newbie 3 06-18-2008 03:20 AM
Access mail via cyrus IMAP celeron Linux - Server 3 11-14-2007 01:53 AM
Dovecot imap mailbox access problem from network. vedang Fedora 2 12-26-2006 11:56 PM


All times are GMT -5. The time now is 01:56 PM.

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