[svlug] Help with Dovecot, Postfix and whacky results.

Daevid Vincent daevid at daevid.com
Tue Jun 2 18:56:40 PDT 2009


 

> -----Original Message-----
> From: svlug-bounces+daevid=daevid.com at lists.svlug.org 
> [mailto:svlug-bounces+daevid=daevid.com at lists.svlug.org] On 
> Behalf Of Brian J. Tarricone
> Sent: Tuesday, June 02, 2009 4:11 PM
> To: svlug at lists.svlug.org
> Subject: Re: [svlug] Help with Dovecot, Postfix and whacky results.
> 
> Daevid Vincent wrote:
> > 
> > I do use procmail in my account, but I don't see any 
> setting that tells it
> > to redirect to /var/spool/mail
> 
> Actually, I wouldn't be surprised if this actually is your problem. 
> What's the value of $DEFAULT in your per-user procmail scripts?  How 
> about the system-wide default in /etc/procmailrc?  Is the 
> 'mike' account going through procmail at all?
> 
> It's possible that the postfix default is maildir (see the 
> 'home_mailbox' parm in /etc/postfix/main.cf), but in the case of your 
> account, postfix is handing the mail off to procmail, which 
> is set up to 
> deliver to /var/spool/mail in mbox format.  Or maybe the procmail 
> default is maildir, both of the accounts are going through 
> procmail, and 
> your per-user procmail scripts are indeed setting $DEFAULT so 
> it goes to /var/spool/mail/.

dae51d at daevid:~$ cat .forward
"|/usr/bin/procmail"

dae51d at daevid:~$ head .procmailrc
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=$HOME/mail
#LOGFILE=$HOME/.procmail/procmail_log.`date +%F_%k:00`
LOGFILE=/dev/null
#VERBOSE=on
SENDMAIL=/usr/lib/sendmail
FROM=formail -x from:
#BLACKLIST=$HOME/.procmail/blacklist

mike doesn't have procmail setup as it's a brand new account I just made for
him.

dae51d at daevid:~$ ll /home/mike
drwxr-xr-x  5 mike users  4096 2009-06-02 14:52 .
drwxr-xr-x 13 root       root   4096 2009-06-02 14:41 ..
-rw-r--r--  1 mike users   220 2009-03-12 23:34 .bash_logout
-rw-r--r--  1 mike users  2927 2009-02-19 13:26 .bashrc
drwx------  3 mike users  4096 2009-06-02 14:52 mail
drwx------  5 mike users  4096 2009-06-02 14:48 Maildir
-rw-------  1 mike users 21799 2009-06-02 14:52 .pinerc
-rw-r--r--  1 mike users   675 2008-05-12 11:48 .profile
drwxr-xr-x  2 mike users  4096 2009-02-19 13:17 public_html
-rw-r--r--  1 mike users   407 2009-02-19 13:15 .screenrc
-rw-r--r--  1 mike users   617 2009-02-19 13:15 .toprc
-rw-r--r--  1 mike users   579 2009-03-13 00:05 .vimrc 

dae51d at daevid:~$ sudo grep -R Maildir /etc/*
/etc/apparmor.d/abstractions/user-mail:  @{HOME}/Maildir/      r,
/etc/apparmor.d/abstractions/user-mail:  @{HOME}/Maildir/**    rwl,
/etc/dovecot/dovecot.conf:#   mail_location = maildir:~/Maildir
/etc/dovecot/dovecot.conf:#mail_location = maildir:/home/%u/Maildir
/etc/dovecot/dovecot.conf:#mail_location = maildir:~/Maildir
/etc/dovecot/dovecot.conf:## Maildir-specific settings
/etc/dovecot/dovecot.conf:    # [quota_template=<template>] - %q expands to
Maildir++ quota
/etc/dovecot/dovecot.conf:  #            Extremely SLOW with Maildir. It'll
eat your CPU and disk I/O.
/etc/dovecot/dovecot.conf:  #   maildir: Maildir++ quota
/etc/postfix/main.cf:home_mailbox = Maildir/

in my /etc/dovecot/dovecot.conf I have this set:
mail_location = mbox:~/mail:INBOX=/var/mail/%u

and /var/spool/mail -> /var/mail so that makes sense why *my* "daevid" mail
is going there. 

But I don't see why 'mike' isn't working still...

What do I need to change and where to make /var/mail/%u be the default
'inbox' and /home/%u/mail be the default folders. OR is that the old-skool
way of doing things and I should be using Maildir instead? This is on Ubuntu
8.10 (soon to be 9.04 when i get a chance to upgrade it) so I'd like to
follow the norm so that upgrades and such are easier on the server. Either
way, it just needs to be consistent for all users by default. 

thanks for the help so far.

d.






More information about the svlug mailing list