Re: sendmail routing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Christopher Chan wrote:
>> Sorry, last I checked, there is no sender-based routing support in 
>> sendmail. You cannot even try to create rulesets to get that.
>>
>>   
>>     
> Looks like it is my turn to eat humble pie. You will need to rebuild 
> sendmail.cf after applying this hack.
>
> http://www.cs.niu.edu/~rickert/cf/hack/sender_based_routing.m

I note the comments on that patch talk about from: sender@host  rather 
than sender@domain ... so, its possible it triggers on the host that the 
sender is using rather than the domain in the 'from' header.



ugh, i used to know what ...

R$+ <@ $+ >		$:$&f@$j<>$1<@$2>		prepend local sender
R$+@$+@$j<>$+<@$+>	$:$1@$2<>$3<@$4>		avoid duplicate domain
R$+@$+<>$+<@$+>		$:$(mailertable From:$1@$2 $:@$2 $)<>$3<@$4>
R$*@$+.$+<>$+<@$+>	$:$(mailertable From:$2.$3 $@$1 $:$1$2@.$3 $)<>$4<@$5>
R$*@$+<>$+<@$+>		$:$(mailertable From:$2 $@$1 $: $)<>$3<@$4>
R$-:$+<>$+		$@$>MailerToTriple <$1 : $2> $3
R$*<>$+<$+>		$:$2 <$3>




would do, but I'll be damned if I remember how that .cf stuff works 
anymore   :rofl:


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux