peculiar lmtpd behavior

Henrique de Moraes Holschuh hmh at debian.org
Mon Dec 23 21:37:21 EST 2002


Frobbing with the lmtp code, I noticed this thread...

On Sat, 22 Sep 2001, Kari Hurtta wrote:
> > We believe it's this bit of code from savemsg() in lmtpengine.c:
> > 
> >         if (!strchr(rpath, '@')) {
> >             hostname = config_servername;
> >         }
> >         fprintf(f, "Return-Path: <%s%s%s>\r\n",
> >                 rpath, hostname ? "@" : "", hostname ? hostname : ""
> > 
> > If anyone can help us understand the reasons for this, we'd 
> > greatly appreciate it.  
> 
> Specially that does not take account
> Return-Path: <>
> which is correct return batch for bounces.

Well, for an empty return path, rpath is NULL, so the code never gets
called.  If it is NOT NULL, but still empty, then there is a nasty bug
somewhere else.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh




More information about the Info-cyrus mailing list