diff options
Diffstat (limited to 'usr.sbin/smtpd/bounce.c')
-rw-r--r-- | usr.sbin/smtpd/bounce.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/bounce.c b/usr.sbin/smtpd/bounce.c index 360bfe18402..3182a0dce10 100644 --- a/usr.sbin/smtpd/bounce.c +++ b/usr.sbin/smtpd/bounce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bounce.c,v 1.1 2009/08/06 13:40:45 gilles Exp $ */ +/* $OpenBSD: bounce.c,v 1.2 2009/08/06 14:12:48 gilles Exp $ */ /* * Copyright (c) 2009 Gilles Chehade <gilles@openbsd.org> @@ -143,6 +143,12 @@ bounce_session_switch(struct smtpd *env, FILE *fp, enum session_state *state, ch fprintf(fp, "This is the MAILER-DAEMON, please DO NOT REPLY t this e-mail.\r\n"); fprintf(fp, "An error has occurred while attempting to deliver a message.\r\n"); fprintf(fp, "\r\n"); + fprintf(fp, "Recipient: %s@%s\r\n", messagep->recipient.user, + messagep->recipient.domain); + fprintf(fp, "Reason:\r\n"); + fprintf(fp, "%s\r\n", messagep->session_errorline); + + fprintf(fp, "\r\n"); fprintf(fp, "Below is a copy of the original message:\r\n\r\n"); if (! file_copy_session(env, fp, srcfp)) { |