[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: changing postfix to use qmails Mailbox system?



On Thu, Apr 10, 2003 at 02:32:46PM +0200, Bruno Boettcher wrote:
> On Thu, Apr 10, 2003 at 07:50:16PM +1000, Donovan Baarda wrote:
> > see the following;
> > 
> > http://wiki.debian.net/MaildirConfiguration
> hmmm besides the fact that i want to continue mbox format (the only
> thing that changes is that the mailbox will not anymore be located
> in /usr/spool/mail, but in the userhome) and will not

Sorry, I thought by the subject you wanted to use qmails mailbox format,
which I took to be Maildir.

> switch over to maildir the given solution there is a (dirty??) trick
> using procmail....

Not dirty at all... when you install exim or postfix debconf asks you "do
you want to use procmail for delivery", and the default is "yes". Most sites
are probably using it without even knowing. All this does is configure
procmail to default to Maildir instead of mbox.

> now usually this should be handled by postfix directly, and from the
> documentation, it should work..... but it doesn't on my system...

which postfix config options are you playing with?

I wasn't sure at the time that postfix alone could do Maildir. Most other
documents on postfix+Maildir use some other delivery software.

Looking at the postfix configuration stuff again, it seems there are options
in there to configure it to do it. I wonder why most people use something
else?

Certainly, using procmail is painless and allows users to use procmail to
customise the delivery themselves. If you configure postfix for Maildir
_and_ use procmail, I think you still need to have a /etc/procmailrc because
(from the config file docs) there doesn't seem to be any other way that
postfix can tell procmail what the DEFAULT delivery is.

> there was no global procmail defined... thus normally procmail should
> retrun with a false, and let the MTA distribute the non handled mail,
>   right? and postfix claims to be able to store in sendmail mbox format,
>   qmail mbox format and qmail maildir format..... so somehow it should
>   be possible to switch....

No, that's not the way it works. Procmail will deliver to the DEFAULT
location if there are no procmailrc files (or these files don't specify
somewhere else). If you use procmail for delivery, it always handles the
delivery...

perhaps that is what is screwing you up? you have configured postfix to
deliver to ~/mailbox _and_ use procmail, and procmail is catching it and
putting it all in /var/spool/mail.

In any case, I believe you should be able to achieve what you want by
creating a /etc/procmailrc that specifies where you want the mail to go.

The other things on the wiki page are still important... they attempt to
tell your system where the default mailbox location is, so that other
programs know where to look. Unfortunately, many applications just assume
/var/spool/mail, so even this doesn't fix everything.

-- 
----------------------------------------------------------------
Donovan Baarda                http://minkirri.apana.org.au/~abo/
----------------------------------------------------------------



Reply to: