I want to change From address if  recipients matches  /edi\@.*\.etso. I've 
added  in mime-defang function filter_end lines below
This works but if I add to ediel.svk.etso to local-host-names and restart 
sendmail headers are not beeing rewritten.


    foreach $recip (@Recipients) {
        if ($recip =~ m/edi\@.*\.etso/) {
            action_change_header('From','[email protected]');
            change_sender('[email protected]');
            last;
        }

with ediel.svk.etso added to local-host-names 

50 250-ENHANCEDSTATUSCODES
050 250-PIPELINING
050 250-8BITMIME
050 250-SIZE
050 250-DSN
050 250-DELIVERBY
050 250 HELP
050 >>> MAIL From:<[email protected]> SIZE=368
050 250 2.1.0 <[email protected]>... Sender ok

and removed then headers are rewritten.

050 250-ENHANCEDSTATUSCODES
050 250-PIPELINING
050 250-8BITMIME
050 250-SIZE
050 250-DSN
050 250-DELIVERBY
050 250 HELP
050 >>> MAIL From:<[email protected]> SIZE=368
050 250 2.1.0 <[email protected]>... Sender ok


Thanks Gunnar Gunnarsson

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to