Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!apple!motcsd!brian From: brian@motcsd.csd.mot.com (Brian Smithson) Newsgroups: comp.mail.uucp Subject: Re: Sending Postmaster a copy of bounced mail Message-ID: <1306@engadm3.csd.mot.com> Date: 9 Aug 90 20:03:03 GMT References: Organization: Motorola CSD, Cupertino CA Lines: 36 mju@mudos.ann-arbor.mi.us (Marc Unangst) writes: >Sites that run sendmail usually have things set up so that bounced >mail, in addition to being returned to the sender, is sent to the >Postmaster. This lets the Postmaster clear up small problems, identify >config troubles, etc. >How do you do this with Smail 3.1.19? Can it be done with the >{directors,routers} files, or will I have to write a new router? >Any help appreciated... This doesn't answer your question about smail 3.1, but it might be of interest to smail 2.5 users: In deliver.c, make the following changes to return_mail: 446c435 < (void) sprintf(r, "%s %s postmaster", SMAIL, VFLAG); --- > (void) sprintf(r, "%s %s", SMAIL, VFLAG); 476c465 < (void) fprintf(out, "To: postmaster, %s\n", from); --- > (void) fprintf(out, "To: %s\n", from); Your line numbers may vary, since I have some other crude hacks in smail. Note: Make sure that you *have* a deliverable address for postmaster defined on your system, else you'll bounce messages endlessly. I speak from experience :-) -- -Brian Smithson, Manager, ISV Engineering Motorola Inc., Computer Group, Computer Systems Division 10700 N. De Anza Boulevard, Cupertino, CA 95014 USA, (408)366-4104 brian@csd.mot.com, {apple | pyramid}!motcsd!brian