I have an account on a host machine that receives email from a mailing
list.  That account then uses procmail to forward some messages to a
different account on a different host machine.

  :0
  ! u...@example.com

All fine for the most part.  But infrequently someone posts a message
to the mailing list with an invalid domain name in the From: field.
This is accepted by the mailing list and delivered to the list
members.  

  From: Some User <user@invalid>

This case is mailed but the From: line is changed to be the account
user owner of the forwarding process.  The result shows up in the
final destination as having a From: line with the forwarding user
instead of the original From: line.  This is often a little shocking
to see your own name as having sent the message.  But obviously it is
simply due to the way the message was forwarded.  If instead of being
forwarded it was delivered locally then no change to the From: line is
observed.  But upon re-mailing that line is changed.  I have no
control over the mailing list and, though unusual, there are going to
be some messages come through with invalid From: lines.

Is there a better way to forward these messages (such as some option
to postfix for "| $SENDMAIL --option" or some such) so that the From:
line is not validated and in the case of invalid addresses not
replaced by Postfix?  I have searched the documentation but haven't
seen anything like an option or configuration to preserve the From:
address but am hoping that I simply missed finding such a thing.

Thanks,
Bob

Reply via email to