getting sendmail to add Return-Path: header
david at skytracker.ca
Fri Jul 4 13:28:54 PDT 2003
> 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
A=procmail -Y -a $h -d $u
Mprog, P=/bin/sh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, D
A=sh -c $u
More information about the freebsd-questions