From owner-freebsd-questions@FreeBSD.ORG Fri Jul 4 13:40:05 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E3D637B401 for ; Fri, 4 Jul 2003 13:40:05 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0198A43FE5 for ; Fri, 4 Jul 2003 13:40:04 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h64KcZZj030890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Jul 2003 21:39:57 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h64KcZLF030889; Fri, 4 Jul 2003 21:38:35 +0100 (BST) (envelope-from matthew) Date: Fri, 4 Jul 2003 21:38:35 +0100 From: Matthew Seaman To: David Banning Message-ID: <20030704203835.GA8041@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , David Banning , questions@freebsd.org References: <20030704151957.GA14457@skytrackercanada.com> <20030704190458.GD69059@happy-idiot-talk.infracaninophile.co.uk> <20030704202848.GA19205@skytrackercanada.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <20030704202848.GA19205@skytrackercanada.com> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.5 required=5.0 tests=AWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: questions@freebsd.org Subject: Re: getting sendmail to add Return-Path: header X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2003 20:40:05 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 04, 2003 at 04:28:48PM -0400, David Banning wrote: > > Return-Path: is meant to be inserted into the message headers by the > > sendmail that does final delivery -- it's not something you should set > > on all of the e-mail you send out. The machinery to handle all this > > should already be in your sendmail.cf -- if there's a line: > >=20 > > H?P?Return-Path: <$g> > >=20 > > in the 'Format of Headers' section, then any delivery mailer with 'P' > > in the F=3D flags (which is the default for the local and prog mailers) > > will insert the Return-Path: header -- eg. > >=20 > > Mlocal, P=3D/usr/libexec/mail.local, F=3DlsDFMAw5:/|@qPSXfm= nz9, S=3DEnvFromSMTP/HdrFromL, R=3DEnvToL/HdrToL, > > ^^^^ >=20 > OK. I've got the same entries as you, but I am not getting the=20 > Return-Path: put in the header. Now I am reading my mail -on- the server. > Since it is mail.local or in my case procmail that reads it, it -should- > put it in before depositing it in /var/mail for pickup, shouldn't it? >=20 > I have tried compiling with the procmail option out, like yours and it > makes no difference. >=20 > My sendmail.cf shows; >=20 > Mlocal, P=3D/usr/local/bin/procmail, F=3DlsDFMAw5:/|@qSPfhn9, S= =3DEnvFromL/Hdr > FromL, R=3DEnvToL/HdrToL, > T=3DDNS/RFC822/X-Unix, > A=3Dprocmail -Y -a $h -d $u > Mprog, P=3D/bin/sh, F=3DlsDFMoqeu9, S=3DEnvFromL/HdrFromL, R=3DE= nvToL/HdrToL, D > =3D$z:/, > T=3DX-Unix/X-Unix/X-Unix, > A=3Dsh -c $u Actually, I use procmail as the default delivery agent myself --- that example came from /etc/mail/freebsd.cf --- but even so, the Return-Path: stuff is inserted correctly. How are you checking for the presence or absence of the header? Most mail applications will weed it out of what they display to you -- bouncing on the 'h' key in mutt shows it, generally as the 2nd line of header right underneath the 'From ' line. Otherwise, grep'ing the mbox file directly is probably the thing to do. 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 --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/BeXLdtESqEQa7a0RAgEMAKCTFSBOgoyYNgwpTrVcLMXeuQoC6gCgipWP CGtH+CGPcqRWBTpNCaorMPQ= =yf7o -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--