Mailing List Archive

[Bug 2411] New: "error ignored" in mainlog, no bounce message

Bug ID: 2411
Summary: "error ignored" in mainlog, no bounce message
Product: Exim
Version: 4.92
Hardware: x86
Status: NEW
Severity: bug
Priority: medium
Component: Delivery in general

Created attachment 1193
my config

It seems that after upgrade from 4.91 to 4.92
Exim in my VPS stopped to generate bounce messages (DSN) when relaying (with
authentication). Instead mainlog contains "error ignored".

A test case: I stop Exim, delete all files in /var/spool/exim/db, start Exim
daemon, submit a message via SMTP with authentication. The message has single
recipient for example on Gmail, for example a non-existent recipient. Gmail
replies 550 to RCPT. Exim fails to generate a bounce message (DSN):

2019-06-27 01:06:11 +0300 1hgG3O-00028P-R0 <= ( []
I=[]:5225 P=esmtpsa X=TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no S=1057 RT=0s id=20190626220609.GN785@lena.kiev
2019-06-27 01:06:11 +0300 1hgG3O-00028P-R0 **
R=remote_domains T=remote_smtp []
I=[] X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=yes: SMTP error
from remote mail server after RCPT TO:<>: 550-5.1.1 The
email account that you tried to reach does not exist. Please try\n550-5.1.1
double-checking the recipient's email address for typos or\n550-5.1.1
unnecessary spaces. Learn more at\n550 5.1.1 s21si188059ljg.231 - gsmtp
2019-06-27 01:06:11 +0300 1hgG3O-00028P-R0 error
2019-06-27 01:06:11 +0300 1hgG3O-00028P-R0 Completed QT=0s

Nothing in rejectlog, paniclog, spool.
The same if 5xx after end of data.
My config doesn't contain "errors_to".

How to debug delivery?
I inserted into the beginning of rcpt ACL:

warn domains =
control = debug/tag=.$message_exim_id/opts=+all

The debuglog contains only lines with pid of
the receiving process, including (here I redacted valid localpart):

20:18:58 18029 DSN: **** SPOOL_OUT - address: |doma*| errorsto:
|NULL| orcpt: |NULL| dsn_flags: 24

I suppose that the 24 is decimal, 0x18 . In macros.h:

/* Flags for recipient_block, used in DSN support */
#define rf_notify_failure 0x08
#define rf_notify_delay 0x10

In deliver.c:

if ( addr_failed->prop.ignore_error
|| addr_failed->dsn_flags & (rf_dsnflags & ~rf_notify_failure)
log_write(0, LOG_MAIN, "%s%s%s%s: error ignored",

I invoked Exim with the message at stdin:
exim -d+all -i -t <a/a >tis1 2>tis2
but that way the bug didn't manifest, a normal DSN was generated, that debug
line contained dsn_flags 0:

20:46:51 28502 DSN: **** SPOOL_OUT - address: |doma*| errorsto:
|NULL| orcpt: |NULL| dsn_flags: 0

I attached my config.

You are receiving this mail because:
You are on the CC list for the bug.
## List details at Exim details at ##