Re: Another stupid question
On Fri, Mar 15, 2002 at 07:20:11PM -0500, Tim Sailer wrote:
> OK, I'm number than I thought. I see nothing but a mere mention of
> maildir in one or two spots. Can you give a little more obvious pointer?
hrmm... You're right. I can't find it either. It used to be there.
That's where I found out how to do it.
Well, here is a relevant snippet from my exim.conf. It should help get
you going. Note I deliver mail on my machine to the directory
/home/$USER/Maildir rather than the *directory* /var/mail/$USER. Either
way, you *also* need to create three subdirs: new, cur, and tmp, e.g.
mkdir /home/$USER/Maildir/{new,cur,tmp}
Without them, mail won't get delivered. I found that out the hard way. :)
Hope this helps. If not, give a yell.
bob
######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
# ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
######################################################################
[snip]
# This transport is used for handling file addresses generated by alias
# or .forward files if the path ends in "/", which causes it to be treated
# as a directory name rather than a file name. Each message is then delivered
# to a unique file in the directory. If instead you want all such deliveries to
# be in the "maildir" format that is used by some other mail software,
# uncomment the final option below. If this is done, the directory specified
# in the .forward or alias file is the base maildir directory.
#
# Should you want to be able to specify either maildir or non-maildir
# directory-style deliveries, then you must set up yet another transport,
# called address_directory2. This is used if the path ends in "//" so should
# be the one used for maildir, as the double slash suggests another level
# of directory. In the absence of address_directory2, paths ending in //
# are passed to address_directory.
address_directory:
driver = appendfile
no_from_hack
prefix = ""
suffix = ""
maildir_format
# This transport is used for procmail
procmail_pipe:
driver = pipe
command = "/usr/bin/procmail -d ${local_part}"
return_path_add
delivery_date_add
envelope_to_add
check_string = "From "
escape_string = ">From "
user = $local_part
group = mail
# Deliver local mail to maildir-type mailbox.
# Comment out 'directory = $home/Maildir' line and uncomment the two
# lines after it to deliver mail to /var/mail.
maildir_delivery:
driver = appendfile
no_from_hack
prefix = ""
suffix = ""
maildir_format
create_directory
directory = $home/Maildir
# directory = /var/mail/${local_part}
# group = mail
end
######################################################################
# DIRECTORS CONFIGURATION #
# Specifies how local addresses are handled #
######################################################################
# ORDER DOES MATTER #
# A local address is passed to each in turn until it is accepted. #
######################################################################
[snip]
# This director matches local user mailboxes.
# It is the last of the directors
localuser:
driver = localuser
transport = maildir_delivery
# transport = local_delivery
end
--
bob billson email: reb@bhive.dhs.org ham: kc2wz /)
reb@elbnet.com beekeeper -8|||}
"Níl aon tinteán mar do thinteán féin." --Dorothy Linux geek \)
Reply to: