Display the correct recipient in a Received: header with one recipient.
authormillert <millert@openbsd.org>
Thu, 20 Oct 2022 01:16:04 +0000 (01:16 +0000)
committermillert <millert@openbsd.org>
Thu, 20 Oct 2022 01:16:04 +0000 (01:16 +0000)
commit3e47678e1f507806ce2b0b39c6423d6c8bfc4873
tree086b4f115b814b17ccb23b0530a8610764d9954c
parentca6cf7e7eb848862ff4c0c06aa2c462bff0241d5
Display the correct recipient in a Received: header with one recipient.
If multiple recipients are specified but only one is valid, use the
first entry in the recipient list for the Received: header, not the
value from the last "RCPT TO:" command (which could be invalid).
From Chris Waddey
usr.sbin/smtpd/smtp_session.c