LOCAL_CONFIG Kcompare program /usr/local/bin/smcompare Kfromaddrs btree -A -o -t -z, /etc/mail/fromaddrs LOCAL_RULESETS Srewrite_sender R$* $: $1 $| $&{auth_authen} $| R$* $| $| $@ $1 R$* $| $+ $| $: $1 $| $| $>ParseRecipient $1 R$* $| $| $+ < $* > $: $1 $| $2 < $3 > R$* $| $* $: $1 $| $| $>ParseRecipient $(fromaddrs User:$&{auth_authen} $: $) R$* $| $| $+ < $* > $@ $(fromaddrs Name:$&{auth_authen} $: $) < $2 $3 > R$* $| $* $@ $1 R$* $| $+ < $* > $: $1 $| $2 < $3 > $| $(fromaddrs Email:$2$3 $: $) $| R$* $| $+ < $* > $| $| $: $1 $| $2 < $3 > $| $(fromaddrs Email:$2@ $: $) $| R$* $| $+ < $* > $| $| $: $1 $| $2 < $3 > $| $(fromaddrs Email:$3 $: $) $| R$* $| $+ < $* > $| $| $: $1 $| $2 < $3 > $| $(fromaddrs Email:$2 $: $) $| R$* $| $+ < @$* > $| $| $: $1 $| $2 < @$3 > $| $(fromaddrs Email:$3 $: $) $| R$* $| $+ < $* > $| $| $: $1 $| $| $2 < $3 > $| $>ParseRecipient $(fromaddrs User:$&{auth_authen} $: $) R$* $| $| $+ < $* > $| < @ > $@ $1 R$* $| $| $+ < $* > $| $+ < $* > $: $1 $| $| $2 < $3 > $| $(storage {COMPARE} $@ $4 < $5 > $) $4 < $5 > R$* $| $| $&{COMPARE} $| $+ < $* > $@ $1 R$* $| $| $* $| $+ < $* > $@ $(fromaddrs Name:$&{auth_authen} $: $) < $3 $4 > R$* $| $* $@ $1 #Uhoh, should never happen R$* $| $+ < $* > $| $* $| $: $1 $| $4 $| R$* $| $* $&{auth_authen} $* $@ $1 R$* $| $* $: $1 $| $>ParseRecipient $(fromaddrs User:$&{auth_authen} $: $) R$* $| $+ < $* > $@ $(fromaddrs Name:$&{auth_authen} $: $) < $2 $3 > R$* $| $* $@ Scheck_rewrite_sender R$* $: $1 $| $>rewrite_sender $1 R$* $| $* $: $1 $| $2 $| $(compare $1:$2 $) R$* $| $* $| MATCH $#OK R$* $#error $@ 5.7.3 $: "Your from address is not permitted to your identity" Smilter_rewrite_sender R$* $: $1 $| $>rewrite_sender $1 R$* $| $* $: $1 $| $2 $| $(compare $1:$2 $) R$* $| $* $| MATCH $#OK R$* $| $* $| $* $#error $: $2