On Thu, 30 Jun 2011 03:35:23 +0200, Hugo Osvaldo Barrera wrote:
> I've been using SMTPD for many many months now, but after an update
> to the latest snapshots today, it seems to have broken.
> 
> I deliver mail to dovecot's LDA, which places it in my mailbox.
> 
> After today's update,
> Mail delivered to this address (h...@osvaldobarrera.com.ar), is
> passed on to dovecot, but dovecot with recipient
> "osvaldobarrera.com...@osvaldobarrera.com.ar" (domain@domain).

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;

Reply via email to