Using "/" .forward override with external email?

Neil Rickert rickert at mp.cs.niu.edu
Thu Jun 27 23:58:18 AEST 1991


In article <16498.2869e514 at levels.sait.edu.au> ccdps at levels.sait.edu.au writes:
>We are looking for a way of stopping a .forward file forwarding with a
>switch in the username. Under VMS we can mail to _username, and the
>message gets put into that person's mailbox regardless of what forwarding
>has been set up. Sendmail has a "/" for a similar purpose, but it only

  I believe you meant "\".

>works for mail from the same system. If I want all mail to dan at kersnazzle

  Most users don't want their .forward overridden.

  Presumably an outside user could mail to \\dan at kersnazzle, although I
haven't verified this.

  If only one or two users want this arrangement, try adding something
like:

_.dan:	\dan

to your aliases database.

  If you wish to do this automatically for everybody, make an exact copy of
your local mailer definition in 'sendmail.cf', except change the name of
the mailer to say 'binmail'.  Then in ruleset 0, find the line
selecting the local mailer, which probably looks like:

	R$+		$#local$:$1

Just before this insert the rule:

	R_.$+		$#binmail$:$1

and you will bypass all the aliases and .forward lookup for an address
beginning with _.

-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert at cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115                                   +1-815-753-6940



More information about the Comp.unix.admin mailing list