LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-06-2008, 02:36 PM   #1
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Rep: Reputation: 0
Dovecot + Sendmail -- mbox and INBOX


'ello all.

I am trying to get Dovecot to work with my current sendmail setup.

I can check my email via POP and IMAP, but operations fail in regards to IMAP (Trash, and after initial email check, Inbox is gone).

Here is my mail_location in dovecot.conf

Code:
mail_location = mbox:/var/spool/mail:INDEX=/var/indexes/%u
I have been messing with it, adding in INBOX= this and that to no avail.

Sendmail delivers mail to /var/spool/mail/<username>

Here is my Dovecot setup

Code:
# 1.0.7: /etc/dovecot.conf
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot
login_dir: /var/run/dovecot//login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: mbox:/var/spool/mail:INDEX=/var/indexes/%u
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
auth default:
  passdb:
    driver: pam
  userdb:
    driver: passwd
Can someone please help me set this up correctly?

Here are some of my errors from tinkering:

Code:
dovecot: Nov 06 14:11:04 Error: IMAP(tcrowder): Ambiguous mail location setting, don't know what to do with it: INBOX=/var/spool/mail/%u:mbox:/var/spool/mail/tcrowder (try prefixing it with mbox: or maildir:)
dovecot: Nov 06 14:11:04 Error: IMAP(tcrowder): Mail storage creation failed with mail_location: INBOX=/var/spool/mail/%u:mbox:/var/spool/mail/tcrowder
dovecot: Nov 06 14:12:40 Error: IMAP(tcrowder): open() failed with subscription file /var/spool/mail/tcrowder/.subscriptions: Not a directory
dovecot: Nov 06 14:12:44 Error: IMAP(tcrowder): mbox root directory can't be a file: /var/spool/mail/tcrowder (http://wiki.dovecot.org/MailLocation/Mbox)
dovecot: Nov 06 14:12:44 Error: IMAP(tcrowder): mkdir_parents(/var/indexes/tcrowder/.imap/INBOX) failed: Permission denied
dovecot: Nov 06 14:12:44 Error: IMAP(tcrowder): stat() failed with mbox file /var/spool/mail/tcrowder/inbox: Not a directory
dovecot: Nov 06 14:14:13 Error: IMAP(tcrowder): mkdir_parents(/var/indexes/tcrowder/.imap/INBOX) failed: Permission denied
TIA!
 
Old 11-06-2008, 04:05 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does it work if you leave the mail location empty? Dovecot will usually find it itself.
 
Old 11-06-2008, 06:22 PM   #3
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Yes it does.

Where does it store my imap folders now though?

I see it is reading mail from sendmail's mboxes now.

Thanks!
 
Old 11-06-2008, 06:36 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Well unless you are using dovecot to deliver mail, nowhere - sendmail does. Probably under the user though - Postfix uses ~/Maildir for example (I don't use sendmail).
 
Old 11-06-2008, 07:13 PM   #5
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Actually, I still can't select the Trash folder though.

Oddly I can create a test folder and delete it, and see it in the trash in my client. I can even delete it from my client, but I cannot delete messages on my client (thunderbird). It says that my mailbox Trash isn't selectable.

I can't find any documentation on this really.

I don't get anything in teh dovecot log either.
 
Old 11-06-2008, 07:14 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Is that a trash folder on the server or local to thunderbird?
 
Old 11-06-2008, 07:15 PM   #7
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Are you saying Dovecot can be used as an MTA in place of sendmail?

Where can I find information on this?
 
Old 11-06-2008, 07:24 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by Spechal View Post
Are you saying Dovecot can be used as an MTA in place of sendmail?

Where can I find information on this?
No, but the MTA can use dovecot as a delivery agent. Not the same thing.
 
Old 11-06-2008, 08:21 PM   #9
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Good point on the local trash can. It was created when I created the account in Thunderbird.

How can I use Dovecot as you say?
 
Old 11-06-2008, 08:24 PM   #10
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Original Poster
Rep: Reputation: 0
I found http://wiki.dovecot.org/LDA

Is this where I should be looking?
 
Old 11-06-2008, 08:28 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
To do what? You can let sendmail worry about the delivery.

I don't use mbox (sorry, misread your post #3 given my response in #$ re: maildirs), but I assume a file along the lines of /var/spool/mail/username.trash gets created for the trash folder does it

If so, can you post

ls -l /var/spool/mail

?
 
Old 11-06-2008, 08:42 PM   #12
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Code:
-rw-rw---- 1 postmaster mail       0 Nov  5 21:21 postmaster
-rw------- 1 root       root 7949589 Nov  6 20:36 root
-rw-rw---- 1 tcrowder   mail    2847 Nov  6 19:17 tcrowder
 
Old 11-06-2008, 08:43 PM   #13
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Original Poster
Rep: Reputation: 0
I think I should reconfigure and use maildir

Last edited by Spechal; 11-06-2008 at 08:44 PM.
 
Old 11-06-2008, 08:45 PM   #14
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Probably not a bad idea. Search for mbox maildir conversion to find scripts to convert existing mail.
 
Old 11-06-2008, 08:54 PM   #15
Spechal
LQ Newbie
 
Registered: Apr 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Ok, now I have mail going to my home directory

Code:
drwx------ 2 tcrowder mail 4096 Nov  6 20:46 cur
drwx------ 3 tcrowder mail 4096 Nov  6 20:46 mail
drwx------ 2 tcrowder mail 4096 Nov  6 20:46 new
drwx------ 2 tcrowder mail 4096 Nov  6 20:46 tmp
But it is loading messages out of /var/spool/mail/<user>

I restarted dovecot as well

Sorry, I am kind of new at all of this, I am a programmer

##edit
Also, I recreated my account in thunderbird

Last edited by Spechal; 11-06-2008 at 08:59 PM.
 
  


Reply



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
Problems receiving mail after switching from "mbox" to Maildir in dovecot. robertjinx Linux - Server 13 10-24-2008 02:44 PM
How to swhich from mbox to Maildir in dovecot 1.1.x and postfix robertjinx Linux - Server 6 10-16-2008 06:17 AM
Sendmail & dovecot Inbox problem fatum112 Linux - Networking 2 09-23-2007 01:51 AM
Dovecot: no inbox for user error Coomkeen Linux - Server 2 10-06-2006 10:17 AM
Dovecot imap mbox issue dhruvypatel Linux - Software 8 08-22-2006 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:27 AM.

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
Open Source Consulting | Domain Registration