[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sender address rewriting



On Wed, Nov 26, 2003 at 05:08:32PM +0100, Vladislav Kurz wrote:
> > > > > 1) Unhash line 168 from crossbar.cf:
> > > > > setf "$(user $from)" "$tmp"
> > > >
> > > >   That is a VERY OLD recipe.  ZMailer's internal LISPish data
> > > >   processing changes dropped  'setf'  function long ago.
> > >
> > > Hmm, what's the NEW recipe then?
...
> > So in the end your recipe boils down to adding suitable entry
> > into the userdb, and running 'zmailer newdb'.
> 
> If this would work for me I wouldn't bother the list. The problem is that the 
> above recipe changes only the From: header, but not the envelope (i.e. SMTP 
> command MAIL FROM).

I went thru the thing myself, and it didn't work..  Right.
More work-over, and it boiled down to:


diff -u -p -r1.51 -r1.52
--- zmailer/proto/cf/aliases.cf	2003/11/21 01:20:03	1.51
+++ zmailer/proto/cf/aliases.cf	2003/11/29 01:03:37	1.52
@@ -241,9 +241,9 @@ routeuser (quad, plustail, domain) {
 
 	case $type in
 	sender)
 		a=$(userdb "$user:mailname") \
 		  || returns ((("$chan" "$host" "$user$plustail$domain" $attr)))
-		returns ((("$chan" "$a" "$user$plustail$domain" $attr)))
+		returns ((("$chan" "$a" "$a" $attr)))
 		;;
 	esac

There is something similar needed in  fqdnaliases.cf 
and considerably more effort in crossbar.cf...
I just completed a once-over at it, but will need to
do some more to support   user+foobar@dom  ->  user.name+foobar@dom
conversion.

> - -- 
> Regards
>         Vladislav Kurz
-- 
/Matti Aarnio	<mea@nic.funet.fi>
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi