Re: [nottingham] Re: your mail

From: Matthew Sackman (matthew@sackman.co.uk)
Date: Fri 18 Jan 2002 - 19:52:44 GMT


On Fri, Jan 18, 2002 at 04:57:46PM +0000, Jon Masters wrote:
> On Fri, 18 Jan 2002 gxl00u@Cs.Nott.AC.UK wrote:
>
> > I am having a problem with configuring Postfix.
>
> Maildir format is what you're after yes, did you want IMAP with that?
>
> As for config options, 'fraid I'm not a postfix expert (I handle exim and
> sendmail atm) however I'll take a look if nobody else comes up with the
> answer.

I've used postfix for a while now on a few machines. I used to use maildirs
with courier-imap but switched to uw-imapd and mbox format a few months ago
because the maildir was just too slow over imap (large folders with 2000+
messages). It would be interesting to see if the recent optimisations for
ext3 for small but numerous files have improved things...

Anyway, postfix will use procmail by default, which will happily deliver to
maildirs. Therefore, you first need to create your maildir (using the
maildirmake command) and then manually create subfolders - note to read the
man page on this because making sub folders is not as simple as you think -
it's not a matter of cd into the mail dir and then a new maildirmake command
- IIRC, you do maildirmake -f mail.subfolder (but check the man page).

Postfix also seems to like maildrop which is much the same as procmail but
slightly easier syntax. You need to include in your ~/.forward the line:

"| maildrop -d matthew "

(including the quotes and replace matthew with username). Then set up
~/.mailfilter as per man page and you're in business - it's happy delivering
to maildirs as well as mbox.

I'm not really sure why postfix likes maildrop - it's just a requirement in
the dependancies in debian. I wouldn't have thought that it would be if it
was just an optional replacement for procmail...

If things don't work then keep checking the queue (mailq) as maildrop gives
useful diagnosis info there as to why the email can't be delivered. It normally
boils down to an error in ~/.mailfilter or a permissions error. Note that
mailq -f works to try to redeliver the queue, but many other sendmail-esq
varients are not implemented.

HTH,

Matthew

-- 
Matthew Sackman
Nottingham
England

BOFH Excuse Board: static buildup -------------------------------------------------------------------- http://www.lug.org.uk http://www.linuxportal.co.uk http://www.linuxjob.co.uk http://www.linuxshop.co.uk --------------------------------------------------------------------



This archive was generated by hypermail 2.1.3 : Fri 18 Jan 2002 - 19:53:36 GMT