Date: Fri, 4 Jul 2003 21:38:35 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: David Banning <david@skytracker.ca> Cc: questions@freebsd.org Subject: Re: getting sendmail to add Return-Path: header Message-ID: <20030704203835.GA8041@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20030704202848.GA19205@skytrackercanada.com> References: <20030704151957.GA14457@skytrackercanada.com> <20030704190458.GD69059@happy-idiot-talk.infracaninophile.co.uk> <20030704202848.GA19205@skytrackercanada.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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:
> >
> > H?P?Return-Path: <$g>
> >
> > in the 'Format of Headers' section, then any delivery mailer with 'P'
> > in the F= flags (which is the default for the local and prog mailers)
> > will insert the Return-Path: header -- eg.
> >
> > Mlocal, P=/usr/libexec/mail.local, F=lsDFMAw5:/|@qPSXfmnz9, S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL,
> > ^^^^
>
> OK. I've got the same entries as you, but I am not getting the
> 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?
>
> I have tried compiling with the procmail option out, like yours and it
> makes no difference.
>
> My sendmail.cf shows;
>
> Mlocal, P=/usr/local/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/Hdr
> FromL, R=EnvToL/HdrToL,
> T=DNS/RFC822/X-Unix,
> A=procmail -Y -a $h -d $u
> Mprog, P=/bin/sh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, D
> =$z:/,
> T=X-Unix/X-Unix/X-Unix,
> A=sh -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
--
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
iD8DBQE/BeXLdtESqEQa7a0RAgEMAKCTFSBOgoyYNgwpTrVcLMXeuQoC6gCgipWP
CGtH+CGPcqRWBTpNCaorMPQ=
=yf7o
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030704203835.GA8041>
