Re: [Exim] Looking up users in db file

Pàgina inicial
Delete this message
Reply to this message
Autor: lsu
Data:  
A: Thierry Martens
CC: 'exim-users@exim.org'
Assumpte: Re: [Exim] Looking up users in db file
On Thu, 14 Dec 2000, Thierry Martens wrote:

thierr >Hi,
thierr >
thierr >I was wondering if there is a way to force exim to look in a dbm or text
thierr >file for users that should be local in stead of letting him look it up in
thierr >the password file on the machine?

Real life example:

Director:

customers:
domains = "lsearch;/etc/mail/virtual-domains"
driver = smartuser
condition = ${if exists{${extract{4}{:}{${lookup{$local_part}dbm{/etc/mail/auto/passwd}{$value}}}}}{yes}{no}}
transport = customers

Transport:

customers:
  driver = appendfile
  use_fcntl_lock = true
  group = nogroup
  file = "${extract{4}{:} \
    {${lookup{$local_part}dbm{/etc/mail/auto/passwd}{$value}}}}/mbox"
  user = "${extract{3}{:} \
    {${lookup{$local_part}dbm{/etc/mail/auto/passwd}{$value}}}}"


Format /etc/mail/auto/passwd - USER:PASS:UID:HOME, USER - lookup key.



thierr >
thierr >Hope somebody knows that cos i keep getting the following error:
thierr >
thierr >
thierr >This message was created automatically by mail delivery software (Exim).
thierr >
thierr >A message that you sent could not be delivered to one or more of its
thierr >recipients. This is a permanent error. The following address(es) failed:
thierr >
thierr > user1@???
thierr > unknown local-part "user1" in domain "fakedom1.org"
thierr >
thierr >Thx
thierr >
thierr >Thierry Martens
thierr >
thierr >--
thierr >## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
thierr >