On 2011-06-29 22:55, Tim van der Molen wrote:
> It is a bug in smtpd. I have run into it as well. The below diff (also
> sent to gilles@) should fix it.
> 
> Regards,
> Tim
> 
> Index: lka_session.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/smtpd/lka_session.c,v
> retrieving revision 1.7
> diff -p -u lka_session.c
> --- lka_session.c     9 Jun 2011 17:41:52 -0000       1.7
> +++ lka_session.c     20 Jun 2011 20:02:22 -0000
> @@ -557,7 +557,7 @@ lka_session_expand_format(char *buf, size_t len, struc
>                               string = dlv->agent.mda.as_user;
>                               break;
>                       case 'u':
> -                             string = dlv->rcpt.domain;
> +                             string = dlv->rcpt.user;
>                               break;
>                       case 'd':
>                               string = dlv->rcpt.domain;

I never even looked at the source (nor would I have found this), but the
diff makes it quite obvious where the bug was.

Thanks, great job! :)


-- 
Hugo Osvaldo Barrera

Reply via email to