On Wed, 24 Nov 1999, Spencer Rasmussen wrote:
> There is a db setup in the following format..
>
> user@??? destination@???
> user2@??? destination2@???
>
> and some are setup like..
>
> user@??? local_pop_box
>
> The last example has no @domain.com, which exim does not like.
>
> Here is the director I am using..
>
> driver = smartuser
> domains = db;/etc/domainlist.db
> new_address = ${lookup{$local_part@$domain}dbm{/etc/exim/domainaliases.db}{$value}{${lookup{$domain}dbm{/etc/exim/domainaliases.db}{$value}fail}}}
>
> Any insight is appriciated.
Smartuser expects a complete address; at least it did until version
3.10, which was released a couple of hours ago. The new version will
qualify like aliasfile does, using qualify_recipient as the domain. If
you want to preserve the incoming domain, change your director to
driver = aliasfile
qualify_preserve_domain <== if that's what you want
include_domain <== important because you have domains in
the file
file = /etc/exim/domainaliases.db
search_type = dbm
... and you'll have to do something about that default, because Exim will
only look up *@domain as a default, not a plain domain name. You could
retain a smartuser director after aliasfile to do that.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.