**Messages sorted by:**[ date ] [ thread ] [ subject ] [ author ] [ attachment ]

Original question:

*>Could someone tell me how Sun for example rewrites the sender field within
*

*>sendmail to be an alias.
*

Thanks to all the folks that responded.

The best response came from Sun:

*> Jeff,
*

*>
*

*> I don't know if you received an answer for this one or not.
*

*> The trick is in the reverse aliases in sendmail.cf file.
*

*>
*

*> Hope this helps,
*

*>
*

*> Steven Ho
*

*> yjho@corp.sun.com
*

*> 415-336-3364
*

*>
*

*>
*

*> ----- Begin Included Message -----
*

*>
*

*>
*

*> How to do reverse aliases
*

*> >From sendmail.main.cf:
*

*>
*

*> # map containing the inverse of mail.aliases
*

*> DZmail.byaddr
*

*>
*

*> S22
*

*> R$*<@LOCAL>$* $:$1
*

*> R$-<@$-> $:$>3${Z$1@$2$} invert aliases
*

*> R$*<@$+.$*>$* $@$1<@$2.$3>$4 already ok
*

*> R$+<@$+>$* $@$1<@$2.$m>$3 tack on our domain
*

*> R$+ $@$1<@$m> tack on our domain
*

*>
*

*>
*

*> myhost #[36] ypmatch owner-foo aliases
*

*> uucp@testhost
*

*> myhost #[37] sendmail -C/etc/sendmail.ddn.cf -bt -d21.12
*

*> Version 4.1
*

*> ADDRESS TEST MODE
*

*> Enter <ruleset> <address>
*

*> > 22,4 uucp@testhost
*

*> rewrite: ruleset 3 input: "uucp" "@" "testhost"
*

*> -----trying rule: $* "<" ">" $*
*

*> ----- rule fails
*

*> -----trying rule: $* "<" $+ ">" $*
*

*> ----- rule fails
*

*> -----trying rule: "@" $+ "," $+ ":" $+
*

*> ----- rule fails
*

*> -----trying rule: "@" $+ ":" $+
*

*> ----- rule fails
*

*> -----trying rule: $+ ":" $* ";" "@" $+
*

*> ----- rule fails
*

*> -----trying rule: $+ "@" $+
*

*> -----rule matches: $: $1 "<" "@" $2 ">"
*

*> rewritten as: "uucp" "<" "@" "testhost" ">"
*

*> -----trying rule: $+ "<" $+ "@" $+ ">"
*

*> ----- rule fails
*

*> -----trying rule: $+ "<" "@" $+ ">"
*

*> -----rule matches: $@ $> "6" $1 "<" "@" $2 ">"
*

*> -----callsubr 6
*

*> rewrite: ruleset 6 input: "uucp" "<" "@" "testhost" ">"
*

*> -----trying rule: $* "<" "@" $* $=m ">" $*
*

*> ----- rule fails
*

*> rewrite: ruleset 6 returns: "uucp" "<" "@" "testhost" ">"
*

*> rewritten as: "uucp" "<" "@" "testhost" ">"
*

*> rewrite: ruleset 3 returns: "uucp" "<" "@" "testhost" ">"
*

*> rewrite: ruleset 22 input: "uucp" "<" "@" "testhost" ">"
*

*> -----trying rule: $* "<" "@" "LOCAL" ">" $*
*

*> ----- rule fails
*

*> -----trying rule: $- "<" "@" $- ">"
*

*> -----rule matches: $: $> "3" ${ "Z" $1 "@" $2 ${
*

*> -----callsubr 3
*

*> rewrite: ruleset 3 input: "owner-foo"
*

*> -----trying rule: $* "<" ">" $*
*

*> ----- rule fails
*

*> -----trying rule: $* "<" $+ ">" $*
*

*> ----- rule fails
*

*> -----trying rule: "@" $+ "," $+ ":" $+
*

*> ----- rule fails
*

*> -----trying rule: "@" $+ ":" $+
*

*> ----- rule fails
*

*> -----trying rule: $+ ":" $* ";" "@" $+
*

*> ----- rule fails
*

*> -----trying rule: $+ "@" $+
*

*> ----- rule fails
*

*> -----trying rule: $+ "<" $+ "@" $+ ">"
*

*> ----- rule fails
*

*> -----trying rule: $+ "<" "@" $+ ">"
*

*> ----- rule fails
*

*> -----trying rule: $- "!" $+
*

*> ----- rule fails
*

*> -----trying rule: $- "." $+ "!" $+
*

*> ----- rule fails
*

*> -----trying rule: $+ "%" $+
*

*> ----- rule fails
*

*> rewrite: ruleset 3 returns: "owner-foo"
*

*> rewritten as: "owner-foo"
*

*> -----trying rule: $* "<" "@" $+ "." $* ">" $*
*

*> ----- rule fails
*

*> -----trying rule: $+ "<" "@" $+ ">" $*
*

*> ----- rule fails
*

*> -----trying rule: $+
*

*> -----rule matches: $@ $1 "<" "@" "sub" "." "sun" "." "com" ">"
*

*> rewritten as: "owner-foo" "<" "@" "sub" "." "sun" "." "com" ">"
*

*> rewrite: ruleset 22 returns: "owner-foo" "<" "@" "sub" "." "sun" "." "com" ">"
*

*> rewrite: ruleset 4 input: "owner-foo" "<" "@" "sub" "." "sun" "." "com" ">"
*

*> -----trying rule: $+ "<" "@" $+ "." "uucp" ">"
*

*> ----- rule fails
*

*> -----trying rule: $+
*

*> -----rule matches: $: $> "9" $1
*

*> -----callsubr 9
*

*> rewrite: ruleset 9 input: "owner-foo" "<" "@" "sub" "." "sun" "." "com" ">"
*

*> -----trying rule: $=w "!" "@"
*

*> ----- rule fails
*

*> -----trying rule: "@"
*

*> ----- rule fails
*

*> -----trying rule: $* "<" $* "LOCAL" ">" $*
*

*> ----- rule fails
*

*> -----trying rule: "<" "@" $+ ">" $* ":" $+ ":" $+
*

*> ----- rule fails
*

*> rewrite: ruleset 9 returns: "owner-foo" "<" "@" "sub" "." "sun" "." "com" ">"
*

*> rewritten as: "owner-foo" "<" "@" "sub" "." "sun" "." "com" ">"
*

*> -----trying rule: $* "<" $+ ">" $*
*

*> -----rule matches: $1 $2 $3
*

*> rewritten as: "owner-foo" "@" "sub" "." "sun" "." "com"
*

*> -----trying rule: $* "<" $+ ">" $*
*

*> ----- rule fails
*

*> -----trying rule: "myhost" "!" $- "!" $*
*

*> ----- rule fails
*

*> rewrite: ruleset 4 returns: "owner-foo" "@" "sub" "." "sun" "." "com"
*

**Messages sorted by:**[ date ] [ thread ] [ subject ] [ author ] [ attachment ]

*
This archive was generated by hypermail 2.1.2
: Fri Sep 28 2001 - 23:07:23 CDT
*