# diff -ruN qmail-remote.c.orig qmail-remote.c --- qmail-remote.c.orig 2009-12-06 17:55:41.000000000 +0200 +++ qmail-remote.c 2009-12-06 18:35:31.000000000 +0200 @@ -246,15 +246,23 @@ substdio_flush(&smtpto); code = smtpcode(); if (code >= 500) { - out("h"); outhost(); out(" does not like recipient.\n"); + /* added by Endersys R&D Team */ + out("h "); outhost(); out(" does not like recipient.\n"); outsmtptext(); zero(); } else if (code >= 400) { - out("s"); outhost(); out(" does not like recipient.\n"); + /* added by Endersys R&D Team */ + out("s "); outhost(); out(" does not like recipient.\n"); outsmtptext(); zero(); } else { - out("r"); zero(); + /* + * James Raftery + * Log _real_ envelope recipient, post canonicalisation. + * and modified by Endersys R&D Team + */ + + out("r "); zero(); flagbother = 1; } }