Forwarding, nebo spise Carbon Copy...
Zdenek Pizl
admin na e2.pef.czu.cz
Pondělí Únor 14 16:58:36 CET 2000
Vladimír Fux wrote:
>
> Dobre odpoledne!
>
> Nejak se mi nedari vyresit pravdepodobne trivialni problem.
> Potreboval bych nastavit ucet uzivatele josef tak, aby kdyz dojde
> posta na asdesu josef na tadydoma.cz , aby se soucasne poslala
> kopie - Carbon Copy na adresu pepa na nekdejinde.cz .
> Zkousel jsem laborovat se souborem /home/josef/.forward ,
> napsat tam nejak obe adresy, ale to asi nebude to prave.
> Jak se to spravne resi?
>
> Diky Vladimir
> fux na infoline.cz
www.sendmail.org/virtual-hosting.html odstavec 4. note 2.
-------
Create the virtual user table. This is explained in detail in section
19.6.28 of the sendmail book; an overview is given here. The table is a
database that maps virtual addresses into real addresses. You create a
text file where each line has a key/value pair, separated by a TAB. For
example:
joe na yourdomain.com jschmoe
jane na yourdomain.com jdoe na othercompany.com
@yourdomain.com jschmoe
n this first example, the address joe na yourdomain.com will be mapped to
the local user jschmoe, jane na yourdomain.com will be mapped to the remote
user jdoe na othercompany.com, and anything else coming in to
yourdomain.com will also go to jschmoe.
joe na yourdomain.com jschmoe
bogus na yourdomain.com error:nouser No such user here
list na yourdomain.com yourdomain-list
@yourdomain.com %1 na othercompany.com
In this second example, the address joe na yourdomain.com will be mapped to
the local user jschmoe, the address bogus na yourdomain.com will return the
indicated error, the address list na yourdomain.com will be mapped to the
local user yourdomain-list (which you would use the aliases file to
ultimately resolve) and every other user at yourdomain.com will be
mapped to a remote user of the same name at othercompany.com.
Note 1: if you have a local user, say sam, and there is no key for
sam na yourdomain.com and no catch-all key for @yourdomain.com, then
sendmail will fall back to the local user sam when resolving
sam na yourdomain.com. To prevent this, you must use either a catch-all key
or an explicit key for sam na yourdomain.com; the error:nouser example
above may be useful in this instance.
Note 2: if you want a virtual address to resolve to more than one real
address, you need to do it indirectly. Have the virtual address resolve
to a local alias, then have the local alias resolve to the desired set
of addresses. For example, in the virtual user table:
joe na yourdomain.com localjoe
then in the aliases file:
localjoe: joe na othercompany.com, jane na othercompany.com
-------
--
---------------------------------------------------------------------
Zdeněk Pižl, (Corp. yA), http://e2.pef.czu.cz/~xpizl
mail me only in ISO 8859-2 or in ASCII
---------------------------------------------------------------------
... what disk do you want to erase today ?? ...
Další informace o konferenci Sendmail