[exim-dev] [Bug 2408] Exim 4.92 generating spurious "Delay r…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: admin
Fecha:  
A: exim-dev
Temas antiguos: [exim-dev] [Bug 2408] New: Exim 4.92 generating spurious "Delay reason:" for delayed messages
Asunto: [exim-dev] [Bug 2408] Exim 4.92 generating spurious "Delay reason:" for delayed messages
https://bugs.exim.org/show_bug.cgi?id=2408

--- Comment #14 from David Carter <dpc22@???> ---
Okay, I have constructed a test environment using three routers. I will attach
some output from "exim -d+all -R cam.ac.uk" in a second.

---8<---

# Simulated alias file lookup. Target account has run out of quota.
foo1:
  driver        = redirect
  domains        = foo.cam.ac.uk
  local_parts        = out-of-quota
  data            = dpc99@???


# Simulated alias file lookup with special routing override. Target host does
not exist.
foo2:
  driver        = redirect
  domains        = foo.cam.ac.uk
  local_parts        = broken-dns
  data            = broken-dns@???
  address_data        = use_broken_dns=yes


broken_dns:
  driver        = manualroute
  condition        = ${extract {use_broken_dns}{$address_data} }
  route_data        = does-not-exist.cam.ac.uk bydns
  host_find_failed    = defer
  self            = fail
  transport        = smtp


---8<---

The following:

$ Mail broken-dns@???
Subject: Test #1

.
EOT

$ Mail out-of-quota@???
Subject: Test #2

.
EOT

Generates the following delay_warning message:

The address to which the message has not yet been delivered is:

  out-of-quota@???
    Delay reason: lookup of host "does-not-exist.cam.ac.uk" failed in
broken_dns router


(note dns failure rather than quota warning).

However this only happens 50% of the time.

The information in the retry database occilates between two states each
time that a queue run takes place. (I'm using "queue_run_in_order" to
ensure that the order that "exim -R cam.ac.uk" processes the queue is
consistent).

A bit of trial and error reveals that I get the incorrect delay_warning
message if I fire off a queue run when no entry for R:foo.cam.ac.uk exists.

$ /opt/exim/bin/exim_dumpdb /spool/exim retry
R:dpc99@??? -44 13377 H=cyrus-1a-intramail.csi.cam.ac.uk
[192.168.128.1]: SMTP error from remote mail server after RCPT
TO:<dpc99@???>: 452 4.2.2 Over quota SE
30-Jul-2019 15:54:04 30-Jul-2019 15:54:04 30-Jul-2019 15:55:04

$ /opt/exim/bin/exim -R cam.ac.uk

$ /opt/exim/bin/exim_dumpdb /spool/exim retry
R:dpc99@??? -44 13377 H=cyrus-1a-intramail.csi.cam.ac.uk
[192.168.128.1]: SMTP error from remote mail server after RCPT
TO:<dpc99@???>: 452 4.2.2 Over quota SE
30-Jul-2019 15:54:04 30-Jul-2019 15:54:04 30-Jul-2019 15:55:04
R:foo.cam.ac.uk -32 0 lookup of host "does-not-exist.cam.ac.uk" failed in
broken_dns router
30-Jul-2019 15:54:22 30-Jul-2019 15:54:22 30-Jul-2019 16:09:22

$ /opt/exim/bin/exim -R cam.ac.uk

$ /opt/exim/bin/exim_dumpdb /spool/exim retry
R:dpc99@??? -44 13377 H=cyrus-1a-intramail.csi.cam.ac.uk
[192.168.128.1]: SMTP error from remote mail server after RCPT
TO:<dpc99@???>: 452 4.2.2 Over quota SE
30-Jul-2019 15:54:04 30-Jul-2019 15:54:04 30-Jul-2019 15:55:04

$ /opt/exim/bin/exim -R cam.ac.uk

$ /opt/exim/bin/exim_dumpdb /spool/exim retry
R:dpc99@??? -44 13377 H=cyrus-1a-intramail.csi.cam.ac.uk
[192.168.128.1]: SMTP error from remote mail server after RCPT
TO:<dpc99@???>: 452 4.2.2 Over quota SE
30-Jul-2019 15:54:04 30-Jul-2019 15:54:04 30-Jul-2019 15:55:04
R:foo.cam.ac.uk -32 0 lookup of host "does-not-exist.cam.ac.uk" failed in
broken_dns router
30-Jul-2019 15:54:27 30-Jul-2019 15:54:27 30-Jul-2019 16:09:27

--
You are receiving this mail because:
You are on the CC list for the bug.