HP-UX Reference (11i v2 07/12) - 1 User Commands N-Z (vol 2)
p
pathalias(1) pathalias(1)
-g file Dump graph edges into file in the form host
>host for simple connections and
host
@<tab>host for network connections (from hosts to networks only).
-s file Dump shortest path tree into file in the form host<tab>&[
@]host[!](cost), including
both connections from hosts to networks and from networks to hosts. This data may
be useful for generating lists of one-way connections.
WARNINGS
The
-i option should be the default.
The order of arguments is significant. In particular,
-i and -t should appear early in the command line.
pathalias can generate hybrid (that is, ambiguous) routes, which are abhorrent and most certainly
should not be given as examples in a manpage. Experienced mappers largely shun
@ when preparing
input; this is historical, but also reflects UUCP’s simplistic syntax for source routes.
Mixed-mode paths are ambiguous because the precedence of
@ versus ! is not specified, varies from host to
host, and is configurable. They should rarely be used.
Multiple
@s in routes are prohibited by many mailers. To circumvent this restriction, mailers instead sup-
port the "magic %" rule, described below. When pathalias would otherwise generate a path containing
multiple @s, it instead generates a path to which the "magic %" rule can be correctly applied.
Basically, the "magic %" rule for generating paths is "when constructing a path that would require multiple
@s, replace all but the rightmost @ with %.
When a mailer that supports the "magic %" rule receives a message that was routed to it via ..path..
@host,
it processes the route as follows:
1. Remove the trailing
@host part of the route.
2. Examine the remaining route from right to left, proceeding to the next step when a
! is seen. If
a
% is seen, change it to @ and proceed to the next step immediately.
3. Continue processing the message using the modified route. If the modified route contains both
!
and @ characters, the exact selection of the next host to route the message is governed by the
specific precedence of ! vs. @ at this host.
For example, if a host, jazz.nonesuch.com
, received a message with a path
foo!joe%castle.hrh.gov.uk@jazz.nonesuch.com ,
the mailer would convert the
path to
foo!joe@castle.hrh.gov.uk ,
and then forward it appropriately. If the host
were configured such that
! were of higher precedence than @, the message would be forwarded
to host foo, which would then deliver the message to joe@castle.hrh.gov.uk
.Ifinstead
jazz.nonesuch.com
were configured with @ as higher in precedence, it would forward the
message to host
castle.hrh.gov.uk
, which would then deliver it to foo!joe.(Clearly,
pathalias could only correctly generate such a path if it knew the precedence at host
jazz.nonesuch.com
; since the database does not contain that information, such paths from
pathalias should be viewed with suspicion.)
The -D option suppresses insignificant routes to domain members. This is benign, perhaps even beneficial,
but confusing, since the behavior is undocumented and somewhat unpredictable.
AUTHOR
pathalias was developed by Peter Honeyman and Steven M. Bellovin.
FILES
newsgroup comp.mail.maps Likely location of some input files.
SEE ALSO
P.Honeyman and S.M. Bellovin, PATHALIAS or The Care and Feeding of Relative Addresses,inProc. Sum-
mer USENIX Conf., Atlanta, 1986.
HP-UX 11i Version 2: December 2007 Update − 4 − Hewlett-Packard Company 141