Re: [EXIM] Virtual Domains - default address?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nigel Metheringham
Dátum:  
Címzett: Mark Lowes
CC: exim-users
Tárgy: Re: [EXIM] Virtual Domains - default address?

hamster@??? said:
} At the moment in the virtusertable in sendmail anything that doesn't
} match explicity matches against a user "@" which then aliases off to
} the admin for the domain. Is there an easy way of doing this in exim?
}

Another way of handling a virtual domain like this is to have 2 directors,
one handling the basic virtual domain aliasing and the other handling the
defaults.
If you want you can leave the aliases in sendmail format - a@b normal & @b
as the default.

So you end up with something like this:-
    virt_alias:
    driver = aliasfile;
    include_domain,
    file = /var/exim/virtual_alias.db,
    search_type = dbm


    virt_default
    driver = smartuser;
    new_address = "${lookup{@$domain}dbm{/var/exim/virtual_alias.db}{$value}fa
il}"



    Nigel.
-- 
[ Nigel.Metheringham@???   -  Systems Software Engineer ]
[ Tel : +44 113 251 6012                   Fax : +44 113 234 6065 ]
[      Real life is but a pale imitation of a Dilbert strip       ]




--
*** Exim information can be found at http://www.exim.org/ ***