domainmap.m4 (71345) | domainmap.m4 (90792) |
---|---|
1divert(-1)changequote(<<, >>)<< 2----------------------------------------------------------------------------- 3 4 FEATURE(domainmap) Macro 5 6 The existing virtusertable feature distributed with sendmail is a good 7 basic approach to virtual hosting, but it is missing a few key 8 features: --- 32 unchanged lines hidden (view full) --- 41 is a domain specified in a FEATURE(domainmap) entry, you need to use 42 the LOCAL_USER(username) macro to specify the list of users for whom 43 domainmap lookups should not be done. 44 45 To use this macro, simply copy this file into the cf/feature directory 46 in the sendmail source tree. For more information, please see the 47 following URL: 48 | 1divert(-1)changequote(<<, >>)<< 2----------------------------------------------------------------------------- 3 4 FEATURE(domainmap) Macro 5 6 The existing virtusertable feature distributed with sendmail is a good 7 basic approach to virtual hosting, but it is missing a few key 8 features: --- 32 unchanged lines hidden (view full) --- 41 is a domain specified in a FEATURE(domainmap) entry, you need to use 42 the LOCAL_USER(username) macro to specify the list of users for whom 43 domainmap lookups should not be done. 44 45 To use this macro, simply copy this file into the cf/feature directory 46 in the sendmail source tree. For more information, please see the 47 following URL: 48 |
49 http://www-wsg.cso.uiuc.edu/sendmail/patches/domainmap.html | 49 http://www-dev.cso.uiuc.edu/sendmail/domainmap/ |
50 51 Feedback is welcome. 52 53 Mark D. Roth <roth@uiuc.edu> 54 55----------------------------------------------------------------------------- 56>>changequote(`, ')undivert(-1)divert 57 --- 6 unchanged lines hidden (view full) --- 64LOCAL_RULESETS 65########################################################################### 66### Ruleset DomainMapLookup -- special rewriting for mapped domains ### 67########################################################################### 68 69SDomainMapLookup 70R $=L <@ $=w .> $@ $1 <@ $2 .> weed out local users, in case 71# Cw contains a mapped domain | 50 51 Feedback is welcome. 52 53 Mark D. Roth <roth@uiuc.edu> 54 55----------------------------------------------------------------------------- 56>>changequote(`, ')undivert(-1)divert 57 --- 6 unchanged lines hidden (view full) --- 64LOCAL_RULESETS 65########################################################################### 66### Ruleset DomainMapLookup -- special rewriting for mapped domains ### 67########################################################################### 68 69SDomainMapLookup 70R $=L <@ $=w .> $@ $1 <@ $2 .> weed out local users, in case 71# Cw contains a mapped domain |
72R $+ <@ $+> $: $1 <@ $2 > <$&{addr_type}> check if sender 73R $+ <@ $+> <e s> $#smtp $@ $2 $: $1 @ $2 do not process sender |
|
72ifdef(`DOMAINMAP_NO_REGEX',`dnl | 74ifdef(`DOMAINMAP_NO_REGEX',`dnl |
73R $+ <@ $+> $: $1 <@ $2> <$2> find domain | 75R $+ <@ $+> <$*> $: $1 <@ $2> <$2> find domain |
74R $+ <$+> <$+ . $+> $1 <$2> < $(dequote $3 "_" $4 $) > 75# change "." to "_" 76R $+ <$+> <$+ .> $: $1 <$2> < $(dequote "domain_" $3 $) > 77# prepend "domain_" 78dnl',`dnl | 76R $+ <$+> <$+ . $+> $1 <$2> < $(dequote $3 "_" $4 $) > 77# change "." to "_" 78R $+ <$+> <$+ .> $: $1 <$2> < $(dequote "domain_" $3 $) > 79# prepend "domain_" 80dnl',`dnl |
79R $+ <@ $+> $: $1 <@ $2> <$2 :NOTDONE:> find domain | 81R $+ <@ $+> <$*> $: $1 <@ $2> <$2 :NOTDONE:> find domain |
80R $+ <$+> <$+ . :NOTDONE:> $1 <$2> < $(domainmap_regex $3 $: $3 $) > 81# change "." and "-" to "_" 82R $+ <$+> <$+> $: $1 <$2> < $(dequote "domain_" $3 $) > 83# prepend "domain_" 84dnl') 85R $+ <$+> <$+> $: $1 <$2> <$3> $1 find user name 86R $+ <$+> <$+> $+ + $* $: $1 <$2> <$3> $4 handle user+detail syntax 87R $+ <$+> <$+> $+ $: $1 <$2> $( $3 $4 $: <ERROR> $) --- 16 unchanged lines hidden --- | 82R $+ <$+> <$+ . :NOTDONE:> $1 <$2> < $(domainmap_regex $3 $: $3 $) > 83# change "." and "-" to "_" 84R $+ <$+> <$+> $: $1 <$2> < $(dequote "domain_" $3 $) > 85# prepend "domain_" 86dnl') 87R $+ <$+> <$+> $: $1 <$2> <$3> $1 find user name 88R $+ <$+> <$+> $+ + $* $: $1 <$2> <$3> $4 handle user+detail syntax 89R $+ <$+> <$+> $+ $: $1 <$2> $( $3 $4 $: <ERROR> $) --- 16 unchanged lines hidden --- |