From owner-freebsd-questions Fri Apr 20 2:34:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 50E7037B43C for ; Fri, 20 Apr 2001 02:34:40 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 83202 invoked by uid 100); 20 Apr 2001 09:34:38 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15072.686.890676.113519@guru.mired.org> Date: Fri, 20 Apr 2001 04:34:38 -0500 To: Chris Aitken Cc: questions@freebsd.org Subject: Re: sendmail.cf info In-Reply-To: <132728258@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris Aitken types: > Hi Everyone, > > I have a bit of a question I havent been able to stumble on the right > syntax for the sendmail.cf to make it work..... > > What im tring to do is have sendmail.cf pick up on any emails coming in for > a specific address and append a small bit of text at the beginning of the > Subject. > > For example.... if the email comes in to 'jack@reacher.com' with > Subject: Hi, How Are You? > > I want to be able to deliver it to the user but with the following > Subject: [Jack] Hi, How Are You? > > > I have tried different configs and what not and I just cant seem to get it > to do what I want it to do. > > Any suggestions ? Yes - if sendmail will do that for you, stop using it. Immediately. MTAs have *no* business mucking around with subject lines! That said, you can probably get procmail to do this for you. If the user names are aliases that all point to the same real user, then you can use procmail from the .forward file. If that's not the case, procmail can be invoked from the sendmail.cf file. You'll have to read the procmail docs to find out how to do that, and how to get procmail to do what you want. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message