On Wed, 18 Aug 2004 14:16:51 +1200
Jim Cheetham <[EMAIL PROTECTED]> wrote:
> Jamie Dobbs wrote:
> > I'm trying to set up Exim to deliver mail to maildir rather than mbox and
> > am not having any luck.
> > I have made the change in the exim.conf file to enable maildir_format
> > (removed the has before the line), then it refers to naming a directory in
> > the .forward or alias as the base directory for the maildir. But try as I
> > might I cannot get this to work - can anyone but someone who currently
> > feels realy stupid out of their misery and let me know how I can get mail
> > deliverd to the maildir $HOME/.maildir using exim
>
> Exim3 or 4? Debian woody/stable uses Exim3 ... and I don't know if
> maildir support is compiled in. I expect it is ...
>
> The transport stanza is a variation on
> local_delivery:
> driver = appendfile
> #file = /var/mail/$local_part
> delivery_date_add
> envelope_to_add
> return_path_add
> # group = mail
> # mode = 0660
> # NOW USES MAILDIR
> directory = ${home}/Maildir
> maildir_format = true
> #prefix = ""
>
> -jim
>
I have exim3 with courier-imap runing on debian sarge/testing and previously had the
same setup on woody/stable untill 80days ago.
I used maildirmake from courier-imap to make my ~/Maildir then edited
/etc/exim/exim.conf to work with imap.
Here is my transport section from exim.conf
# This next bit has been commented out to change from pop3 to imap
#local_delivery:
# driver = appendfile
# group = mail
# mode = 0660
# mode_fail_narrower = false
# envelope_to_add = true
# return_path_add = true
# file = /var/spool/mail/${local_part}
# This stuff is for imap delivery.
local_delivery:
driver = appendfile
group = mail
mode = 0660
mode_fail_narrower = false
envelope_to_add = true
directory = "/home/$local_part/Maildir/"
maildir_format
folder_delivery:
driver = appendfile
group = mail
mode = 0660
mode_fail_narrower = false
envelope_to_add = true
directory = /home/$local_part/Maildir/${if match {$header_subject:}{\\[([-\\w]+)\\]}
{.$1/} }
maildir_format
new_folder_delivery:
driver = appendfile
group = mail
mode = 0660
mode_fail_narrower = false
envelope_to_add = true
debug_print=xxx$header_X-folder:
directory =
/home/$local_part/Maildir/.${extract{2}{<@}{$h_X-Mailing-List:$h_List-Post:}}
maildir_format
Not much more to it than that.
Nothing else involved in my setup besides exim and courier-imap.
I do all my filtering with my MUA but plan to learn procmail sometime but I keep
putting it off.
I don't yet have a huge spam problem so although I have installed spamassisin I
haven't got around to setting it up yet.
Adrian.