admin@cs.exeter.ac.uk (Khalid Sattar) (03/07/90)
I have been experimenting with using generic names (ie names sent from say "khalid" will appear as "K.Sattar") using ida sendmail. I have had a look in the ida sendmail kit to see how its done and then been testing by putting something that will will work with sendmail-2.1 scripts. I choose rule set 4 to do the mapping of realname to generic names is this the right place? Given that we strip off local domain so that local delivery is only with usernames will something as simple as (the rule marked with * is my addition) suffice or do I need someting more complex OKX/u3/misc/admin/tmp/G : : S4 R<$+> $:$1 remove brackets from $u addr R$+@$+ $@$1@$2 already ok * R$+ $: $(X $1 $: $1 $) lookup generic name # this ensures that $u has at least one '@' in (if percent style) R$+%$+ $1@$2 convert '%'s to '@'s R$+@$+@$+ $1%$2@$3 then reduce to only one '@' Any other suggestions or experiences with generic names will be useful Thanks ---------------------------------------------------------------------- Khalid Sattar JANET : admin@uk.ac.exeter.cs Computer Science Dept. UUCP : admin@expya.uucp University of Exeter BITNET : admin%uk.ac.exeter.cs@ukacrl Exeter, UK. Tel : +44 392 264062
jac@doc.ic.ac.uk (Jim Crammond) (03/07/90)
| R$+ $: $(X $1 $: $1 $) lookup generic name
1. use R$- not R$+
otherwise the lookup is done each time the ruleset is entered,
not just once (usernames like 'khalid' should match a single token -
once mapped, K.Satter does not match a single token).
2. it could be argued that this mapping is only necessary on sender addresses
in which case the rule should be in ruleset 1.
-Jim.