[comp.mail.sendmail] Pathalias & a local file

jep@fantasci.UUCP (Joseph E Poplawski) (10/10/88)

Is there a way with pathalias to have a map entry for your site, that only 
your site uses.  For example, to let your system know that you speak to system
ALPHA ten times a day, but in the normal map entry that gets distributed to the
net, say you speak to ALPHA once a week?  I heard something mentioned of a file
that can be created called 'u.local' or something like that.  Would that be
the correct way to do it?

Thanks in advance.

-Jo Poplawski

-------------------------------------------------------------------------------
|Joseph E Poplawski  (Jo)                     US Mail:  1621 Jackson Street   |
|                                                       Cinnaminson NJ 08077  |
|UUCP:..!rutgers!rochester!moscom!telesci!fantasci!jep                        |
|     ..!princeton!telesci!fantasci!jep         Phone:  +1 609 786-8099 home  |
|     ..!pyrnj!telesci!fantasci!jep                                           |
-------------------------------------------------------------------------------

patrick@crcmar.uucp (Andrew Patrick) (10/14/88)

In article <211@fantasci.UUCP> jep@fantasci.UUCP (Joseph E Poplawski) writes:

>Is there a way with pathalias to have a map entry for your site, that only 
>your site uses.  For example, to let your system know that you speak to system
>ALPHA ten times a day, but in the normal map entry that gets distributed to the
>net, say you speak to ALPHA once a week?  I heard something mentioned of a file
>that can be created called 'u.local' or something like that.  Would that be
>the correct way to do it?

Yes, create the file with the local information you want, and then
make sure that it is the first input to pathalias.  Our script for
calling pathalias from cron once a week includes the following:

...
| P1="local.changes"
| P2="d.*"
| P3="u.[a-z]*"
| PATHS="$P1 $P2 $P3"
| pathalias -i $PATHS | sort > paths.new; mv paths paths.old; mv paths.new paths
| echo "Done."
...
 
and the file 'local.changes' contains information like:

...
| # machines and connections known to have trouble
|
| dead	{mnetor, ihnp4, dciem!utcsri}
|
| # unadvertised links
|
| foo   bar(DIRECT)
...

I hope this helps.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Andrew Patrick, Ph.D.       Communications Research Center, Ottawa, CANADA 
                             (613) 990-4675
patrick@crcmar.UUCP  uunet!ai.toronto.edu!utgpu!bnr-vpa!bnr-rsc!crcmar!patrick
INTERNET: dgbt@ncs.dnd.ca                     BITNET: patrick%crcmar@utorgpu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~