I don't think I'm doing anything non-standard. I use procmail as the local
delivery agent in sendmail by adding these lines to my sendmail.mc file:
FEATURE(local_procmail)
MAILER(procmail)
This is a known configuration, nothing odd about this at all. This usage
is well documented and used ubiquitously.
I tried solving this issue by running sendmail as one of the users on this
TRUSTED_IDS list but the user 'smmta' occurs in several different places in
files which are installed in the debian sendmail package. I concluded this
would be a 'non-standard' approach to fixing this and abandoned this.
I think nobody has noticed this because frankly, the extra >From line,
though it looks a bit odd, does not immediately cause an error for most
mailers, it's silently ignored in most cases but what it effects is that
you can't resend the message manually via:
sendmail user@gmail.com < foo
and have it show up at/on/in user@gmail.com's inbox as if .procmailrc
forwarded it there if that extraneous >from line is in the msg, otherwise
the fwd'd message comes from user@debian.example.com AS AN INCLUDED MSG.
We noticed this behavior when spamassassin spotted a false negative, marked
the message up as spam, and manual intervention was needed to dump the
message back into sendmail to then be sent back through sendmail and the
spamassassin/procmail plumbing again.
It's very clear to me that this should be fixed. sendmail on many other
systems is run from one of these users, usually 'mail' or 'daemon'. It's
just different that debian runs mail as 'smmta'. It's a very minor
annoyance with rare consequences. It should not be difficult to fix this
with a simple diff/patch file inside the package.
I tried patching procmail and this does indeed solve the issue.
Michael Grant