----- Message from Viktor Dukhovni <postfix-us...@dukhovni.org> ---------
Date: Wed, 29 Nov 2017 04:47:35 +0000
From: Viktor Dukhovni <postfix-us...@dukhovni.org>
Reply-To: postfix-users@postfix.org
Subject: Re: Slow delivery of mails reg.
To: postfix-users@postfix.org
On Wed, Nov 29, 2017 at 09:20:21AM +0530, an...@isac.gov.in wrote:
We have a internal relay configured in our setup. The relay host hadstopped
accepting mails as the system was hanging and we could resolve
it only after about 8 hrs. Meanwhile the queue built up and there
were about 80,000 mails in queue to relay to the relay host. Once the
system was made up, mails started delivering to the relay host at a
very slow rate. It took almost 10 hours to clear the queue.
This is almost certainly because the relay host could not process
the resumed mail flow faster. Another possibility is that there
are residual DNS issues that slow down each delivery.
What I could understand by googling was, postfix detected the relay
host to be dead and due to the parameters like minimal_backoff_time
and maximal_backoff_time, the delivery rate to the relay host was slow.
This is wrong. The dead host detection state is cached only for a short
time, and cannot account for slow delivery once the host is back up.
What is the correct way to come out of this situation and deliver the
mails faster after recovery of relay host.
Make sure the relay host can process email quickly, find and resolve
all DNS-related issues.
To understand why delivery was slow you need to analyze your logs
and examine the "delays=" log entries to see whether the delays
in connecting to the relay host or waiting for deliveries to
complete.
-- Viktor.
The log entries with delays is as below.
relay=x.x.x.x[x.x.x.x]:25, conn_use=3, delay=32027, delays=31986/31/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=5, delay=27740, delays=27690/40/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=6, delay=13069, delays=13010/49/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=7, delay=21476, delays=21406/60/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=2, delay=33553, delays=33474/69/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=12, delay=14591, delays=14493/88/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=4, delay=25953, delays=25807/136/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=6, delay=27339, delays=25970/1359/0/10,
relay=x.x.x.x[x.x.x.x]:25,conn_use=16, delay=7608, delays=4510/3088/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=19, delay=7457, delays=2593/4854/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=20, delay=38734, delays=33864/4860/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=7, delay=11656, delays=5728/5918/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=19, delay=40339, delays=31320/9009/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=13, delay=10820, delays=441/10369/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=10, delay=39517, delays=29103/10404/0/10
relay=x.x.x.x[x.x.x.x]:25,conn_use=28, delay=43790, delays=33444/10336/0/10
the above log entries are at different times on the same day.
Please share your analysis for further improving our setup.
Regadrs,
ANANT.
----- End message from Viktor Dukhovni <postfix-us...@dukhovni.org> -----
Anant S Athavale
------------------------------------------------------------------------------
Confidentiality Notice: This e-mail message, including any attachments, is for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
------------------------------------------------------------------------------