Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2001 04:34:38 -0500
From:      Mike Meyer <mwm@mired.org>
To:        Chris Aitken <chris@ideal.net.au>
Cc:        questions@freebsd.org
Subject:   Re: sendmail.cf info
Message-ID:  <15072.686.890676.113519@guru.mired.org>
In-Reply-To: <132728258@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Chris Aitken <chris@ideal.net.au> 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.

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15072.686.890676.113519>