[Dovecot] maildir and /var/spool/mail
All,
Not sure what to do next. Have imap working in that I can see messages in inbox. When I create a folder it won't create one. Looking at maillog shows that I don't have rights to folder /var/spool/mail/.sent or whatever folder I am trying to create. I have procmailrc and dovecot.conf point to /home/Maildir but for some reason something is tied to /var/spool/mail. Of course I am running FC3 and sendmail. Someone have any ideas as to what to try next?
thanks in advance,
Steve Hickel
Steve Hickel steve@korehicom.com Kore/HiCom Corporation
On 12.1.2005, at 06:24, Steve Hickel wrote:
Not sure what to do next. Have imap working in that I can see messages in inbox. When I create a folder it won't create one. Looking at maillog shows that I don't have rights to folder /var/spool/mail/.sent or whatever folder I am trying to create. I have procmailrc and dovecot.conf point to /home/Maildir but for some reason something is tied to /var/spool/mail. Of course I am running FC3 and sendmail. Someone have any ideas as to what to try next?
Dovecot 0.99.x doesn't support mixed mbox/maildir setup. Either make sendmail deliver mails to ~/Maildir/ (I don't know how that's done) or use mbox folders. In any case your default_mail_env is most likely set wrong because it's treating /var/spool/mail as user's root mail directory. With mboxes it should be like:
default_mail_env = mbox:~/mail:INBOX=/var/spool/mail/%u
Timo,
That would explain the issues I am experiencing. I will try that. Problem I have is my /var/spool/mail or / partition is much small than home. I wonder if I can do a ln -s to get mail to actually store on /home?
Anyway, let me try your suggestion. I will probably have to look at removing my procmailrc statements regarding home.
I don't know how to do the sendmail thing either. I thought it was in /etc/profile but that didn't seem to have any effect.
r,
Steve
On Wed, 2005-01-12 at 12:58 +0200, Timo Sirainen wrote:
On 12.1.2005, at 06:24, Steve Hickel wrote:
Not sure what to do next. Have imap working in that I can see messages in inbox. When I create a folder it won't create one. Looking at maillog shows that I don't have rights to folder /var/spool/mail/.sent or whatever folder I am trying to create. I have procmailrc and dovecot.conf point to /home/Maildir but for some reason something is tied to /var/spool/mail. Of course I am running FC3 and sendmail. Someone have any ideas as to what to try next?
Dovecot 0.99.x doesn't support mixed mbox/maildir setup. Either make sendmail deliver mails to ~/Maildir/ (I don't know how that's done) or use mbox folders. In any case your default_mail_env is most likely set wrong because it's treating /var/spool/mail as user's root mail directory. With mboxes it should be like:
default_mail_env = mbox:~/mail:INBOX=/var/spool/mail/%u
-- Steve Hickel steve@korehicom.com Kore/HiCom Corporation
On Wed, 2005-01-12 at 12:58 +0200, Timo Sirainen wrote:
On 12.1.2005, at 06:24, Steve Hickel wrote:
Not sure what to do next. Have imap working in that I can see messages in inbox. When I create a folder it won't create one. Looking at maillog shows that I don't have rights to folder /var/spool/mail/.sent or whatever folder I am trying to create. I have procmailrc and dovecot.conf point to /home/Maildir but for some reason something is tied to /var/spool/mail. Of course I am running FC3 and sendmail. Someone have any ideas as to what to try next?
Dovecot 0.99.x doesn't support mixed mbox/maildir setup. Either make sendmail deliver mails to ~/Maildir/ (I don't know how that's done) or use mbox folders. In any case your default_mail_env is most likely set wrong because it's treating /var/spool/mail as user's root mail directory. With mboxes it should be like:
default_mail_env = mbox:~/mail:INBOX=/var/spool/mail/%u
One way of getting sendmail to deliver to Maildir folders, is to configure procmail as your delivery agent.
I suspect that most linux distributions have sendmail configured to use procmail for delivery out of the box.
I just finished building a FC3/Dovecot/Sendmail/DSpam box. I have all the mail put into the home direcories in IMAP format. The only thing I had to add to was the following line in /etc/procmailrc.
DEFAULT=$HOME/Maildir/
The mail in /var/spool/mail is irrelevant after that; sendmail uses procmail for LDA, and it puts it in the user's home directories. If you want to recover the mail in /var/spool I suggest using the mb2md script. I wrote a little wrapper to do some sanity checking and to process large #'s, but otherwise it works great.
John
default_mail_env = mbox:~/mail:INBOX=/var/spool/mail/%u
One way of getting sendmail to deliver to Maildir folders, is to configure procmail as your delivery agent.
I suspect that most linux distributions have sendmail configured to use procmail for delivery out of the box.
Tonight I played with the mail server that started this discussion. Oddly, all is working (perhaps after a reboot). I can create folders, they are going into the /home/$u/Maildir folders. Strange. The procmailrc was the key I believe. I didn't need to change the envelope and it sits at Maildir:$h/Maildir.
Thanks for all your help.
Steve
On Wed, 2005-01-12 at 15:52 -0800, John Duino wrote:
I just finished building a FC3/Dovecot/Sendmail/DSpam box. I have all the mail put into the home direcories in IMAP format. The only thing I had to add to was the following line in /etc/procmailrc.
DEFAULT=$HOME/Maildir/
The mail in /var/spool/mail is irrelevant after that; sendmail uses procmail for LDA, and it puts it in the user's home directories. If you want to recover the mail in /var/spool I suggest using the mb2md script. I wrote a little wrapper to do some sanity checking and to process large #'s, but otherwise it works great.
John
default_mail_env = mbox:~/mail:INBOX=/var/spool/mail/%u
One way of getting sendmail to deliver to Maildir folders, is to configure procmail as your delivery agent.
I suspect that most linux distributions have sendmail configured to use procmail for delivery out of the box.
-- Steve Hickel steve@korehicom.com Kore/HiCom Corporation
John Duino wrote:
I just finished building a FC3/Dovecot/Sendmail/DSpam box.
<plug type="shameless"> Maybe you're interested in my dovecot plugin integrating dspam into it: http://johannes.sipsolutions.net/Projects/dovecot-dspam-integration It works fine for me so far and for me does a great job of actually integrating dspam into dovecot so I don't need the cgi. </plug>
johannes
Johannes Berg wrote:
<plug type="shameless"> Maybe you're interested in my dovecot plugin integrating dspam into it: http://johannes.sipsolutions.net/Projects/dovecot-dspam-integration It works fine for me so far and for me does a great job of actually integrating dspam into dovecot so I don't need the cgi. </plug>
I have loved this idea since you first posted to this list, and would love a slightly more detailed install/config doc on your site, if possible.
I know I could probably breeze by it if I paid a little more attention, but I like the comfort during a new install of being told what I already know. Sort of reinforces the feeling I've got it right :)
Then I can get our site testing this as well... 20 extra testing users for you, and less spam for us :)
-- Curtis Maloney
Curtis Maloney write:
I have loved this idea since you first posted to this list, and would love a slightly more detailed install/config doc on your site, if possible.
Right. I'll update it later today - most of the page was written before the code.
johannes
participants (6)
-
Curtis Maloney
-
Dan Stromberg
-
Johannes Berg
-
John Duino
-
Steve Hickel
-
Timo Sirainen