On Fri, 18 Oct 2019, Ben Sanders via Exim-users wrote:
> Hello all,
>
> I've got a fully updated Exim smarthost (4.92.3) running on CentOS 7
> - It accepts mail from trusted networks to send outbound messages,
> no significant config changes from the defaults, all sending mail
> perfectly fine.
>
> Our much older version of exim on Debian behaves differently when
> bouncing email however, it includes the full headers and message
> body to all senders.
>
> The newer version of exim on CentOS seems to treat local and remote
> senders differently. If the sender is on a trusted network, bounces
> only include the SMTP error section e.g:
>
> " A message that you sent could not be delivered to one or more of
> its recipients. This is a permanent error. The following address(es)
> failed:
>
> null@???
> host example.tld [5.5.5.5]
> SMTP error from remote mail server after RCPT TO:<null@??? >:
> 550 No such person at this address
> "
>
> Even when explicitly setting the below defaults to true, the
> messages headers and message body are missing from the bounce.
>
> bounce_return_message = true
> bounce_return_body = true
>
> If the bounce returns to a local user however, I get the expected
> output, the normal section above with the SMTP error WITH the
> message header with message body.
>
> Why is exim behaving different for local and remote email addresses,
> is that expected?
>
> Is there a way to ensure exim includes the message header and body
> for all bounces it generates?
Are you using cut-through delivery ?
I wonder whether mail from trusted users is failing before the data
(headers and body) have been received, in which case they may not be
available when the bounce is generated ?
--
Andrew C. Aitchison Kendal, UK
andrew@???