Re: [Exim] exim & maildirs

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Dmitry G. Golub
Datum:  
To: exim-users
Betreff: Re: [Exim] exim & maildirs
On Wed, Oct 17, 2001 at 10:11:04AM -0600, Mark Lehrer wrote:
>
> Hello there. I am trying to set up exim to deliver mail to maildirs;
> specifically ~${local_part}. /home/${local_part} is not acceptable
> because you can't assume where ~username is located. It can be
> different for everyone.
>
> Is there any way to do this? When I set up the "directory" line in
> /usr/exim/configure, it complains if I have a ~ character.
>


There is a variable $home in directors (when delivering to UNIX users)
Why not:

.-------------------- >8 ====
| (in transports section)
| #
| # Maildir delivery transport
| #
| maildir_delivery:
| driver = appendfile
| directory = ${home}/.INBOX
| maildir_format = yes
| delivery_date_add
| envelope_to_add
| return_path_add
| mode = 0600
|
|
| (in directors section)
| #
| # Maildir director for users having ~/.INBOX directory
| # (this is a criterium)
| #
| maildir_users:
| driver = localuser
| transport = maildir_delivery
| require_files = ${home}/.INBOX

`==================== 8< ----

It works for me.

D.
-- 
-- ---------------------------------------------------------------------
/"\                         ASCII Ribbon Campaign
\ /     - NO HTML/RTF in e-mail              - NO Word docs in e-mail
 X   ------------------------------------------------------------------
/ \  [ Dmitry George Golub                      dgolub@??? ]
     [ electronic mail system administrator            +7(3422)917-324 ]
-----------------------------------------------------------------------