getting sendmail to add Return-Path: header

Matthew Seaman m.seaman at infracaninophile.co.uk
Fri Jul 4 14:45:25 PDT 2003


On Fri, Jul 04, 2003 at 05:06:45PM -0400, David Banning wrote:
> > 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.
> 
> There's no mistaking it. I've used vi and grep.
> Here, is the message as I received it from you;
> 
> 
> >From m.seaman at infracaninophile.co.uk Fri Jul  4 16:40:08 2003
> Received: (from root at localhost)
>         by 3s1.com (8.12.9/8.12.9) id h64Ke8IG019663
>         for david at skytracker.ca; Fri, 4 Jul 2003 16:40:08 -0400 (EDT)
>         (envelope-from m.seaman at infracaninophile.co.uk)


Yup.  It's definitely not there.  This has me completely perplexed.
You seem to be doing everything correctly, and all of the right things
are appearing in the sendmail.cf file, but the fault is definitely
occurring.

All I can conclude is that there is some trivial boo-boo somewhere
that will have you slapping your forehead and shouting "D'Oh!" in the
approved Homer-Simpson-esque style.  It's going to be something on the
level of you're not using the sendmail binary you think you are, or
it's not reading /etc/mail/sendmail.cf.  Have you sanity checked
/etc/mail/mailer.conf ?  Does anything untoward appear in
/var/log/maillog ? How about the maillog entries when you restart the
MTA?

Can you try this: run sendmail in address test mode:

    % /usr/sbin/sendmail -bt

and check the output of dumping the mailer definitions:

    > =M

(ie. make sure that the local mailer definition being used by sendmail
is actually the same as in /etc/mail/sendmail.cf) Also try:

    > /parse david at skytracker.ca

which should give you Parse1 and parse lines like so:

    Parse1           returns: $# local $: david
    parse            returns: $# local $: david

indicating that your sendmail will use the local mailer to do the
final delivery.

	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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030704/5b349d44/attachment.bin


More information about the freebsd-questions mailing list