Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2003 10:33:55 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        David Banning <david+dated+1058429234.5c966f@skytracker.ca>
Cc:        questions@freebsd.org
Subject:   Re: passing $1 from sendmail to procmail
Message-ID:  <20030712093355.GB69146@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20030712080712.GA29189@skytrackercanada.com>
References:  <20030712080712.GA29189@skytrackercanada.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--IrhDeMKUP4DT/M7F
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jul 12, 2003 at 04:07:12AM -0400, David Banning wrote:
> I have been attempting to get the $1 passed from sendmail to
> do some mail filtering in Procmail. My existing sendmail .mc
> file is;

You mean the +detail you can add to an e-mail address, as in
username+detail@example.com ?

That should just work.  It's generally supported within sendmail.cf so
long as you configure a local mailer that can handle it -- in your
case 'FEATURE(local_procmail)' will be sufficient.

One exception in the .mc file: the +detail stuff is not preserved when
looking up an address in aliases or .forward files unless you add
FEATURE(preserve_local_plus_detail)

Otherwise, you will need to make provisions in genericstable and
virtusertable to support it:

genericstable -- you need both of these lines:

    john      j.doe
    john+*    j.doe+%1

virtusertable -- '+' is a wildcard match character, and you end up with
%2 containing 'detail' and %3 containing '+detail', so you can do:

    j.doe+*@thefirstplace.com    john-doe%3@elsewhere.com

which also covers the case where no +detail is given.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--IrhDeMKUP4DT/M7F
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/D9YDdtESqEQa7a0RAol0AJ9t9WI1k4r4Nig5cu0HwjWqLkXM/wCdG+93
0DW6c3cXRsejHoYwb8QB00g=
=RsOG
-----END PGP SIGNATURE-----

--IrhDeMKUP4DT/M7F--



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