Re: [Exim] router_home_directory question

Góra strony
Delete this message
Reply to this message
Autor: Greg Matheson
Data:  
Dla: exim-users
Temat: Re: [Exim] router_home_directory question
On Wed, 26 Feb 2003, Philip Hazel wrote:

> On Tue, 25 Feb 2003, John Jetmore wrote:


> > So my questions are these
> > a) is the transport supposed to be re-expanding the home option


> I suspect not.


I have some strange behavior with the home_directory option in a
transport with 4.12. I thought it was designed.

I want to have virtual users without home directories.

The router:

    # just before userforward, virtual users, ie local but no home dir
    # and no forward of course
    # 41.6 of manual, p222
    virtualLocals:
      driver = accept
      check_local_user
      # Q0423 users without home directories break test of
      # NFS .forward location so put this just before userforward
      local_parts = lsearch;/home/exim/dv/addresses
      transport = virtualDelivery


The transport:

    virtualDelivery:
      driver = appendfile
      file = /var/spool/mail/$local_part
      delivery_date_add
      envelope_to_add
      return_path_add
    # group = mail
    group = mail
    # keep eye on this mode
    # mode = 0660
    mode = 0660
      # what is a reasonable quota
      quota = 500K
          quota_warn_threshold = 75%
      # virtual users
      # home_directory = /
      # user = exim


With the home_directory option commented out, running with
-d-all+route and -v flags gives me this output:

--------> virtualLocals router <--------
local_part=popuser domain=cn91.chinmin.ac.tw
checking local_parts
checking for local user
calling virtualLocals router
virtualLocals router called for popuser@???
  domain = cn91.chinmin.ac.tw
set transport virtualDelivery
queued for virtualDelivery transport: local_part = popuser
domain = cn91.chinmin.ac.tw
  errors_to=NULL
  domain_data=NULL localpart_data=person        popuser@???
routed by virtualLocals router
  envelope to: popuser@???
  transport: virtualDelivery

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

After routing:
  Local deliveries:
    popuser@???
  Remote deliveries:
  Failed addresses:
  Deferred addresses:
locking /var/spool/exim/db/retry.lockfile
LOG: MAIN
  == popuser@??? R=virtualLocals T=virtualDelivery defer (2): No such file or directory: failed to chdir to /home/popuser
locking /var/spool/exim/db/retry.lockfile

>>>>>>>>>>>>>>>> Exim pid=4885 terminating with rc=0 >>>>>>>>>>>>>>>>



If I uncomment the home_directory assignment line, the output is:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

After routing:
  Local deliveries:
    popuser@???
  Remote deliveries:
  Failed addresses:
  Deferred addresses:
locking /var/spool/exim/db/retry.lockfile
LOG: MAIN
  => popuser <popuser@???> R=virtualLocals T=virtualDelivery
LOG: MAIN
  Completed

>>>>>>>>>>>>>>>> Exim pid=4999 terminating with rc=0 >>>>>>>>>>>>>>>>


I was going to suggest that the answer to FAQ Q0423 about users
with no home directories and the advice on virtual domains in
41.6 needed supplementation.

--
Greg Matheson                What I allow I teach,
Dr Bean's Penpal Pool        and all I teach is all that is allowed.
Address: palpool             --Dr Bean
Domain:  @cn91.chinmin.edu.tw