Re: Unexplained delays

Jean Helou <[email protected]> Sat, 15 Nov 2025 07:59:36 +0100
Newsgroups gmane.comp.jakarta.james.user
Message-ID <CANw2z=c_zL8=afxS=OJZ7ZOKK9zfQjV8bTW7ybRjM0X9vu3MYQ@mail.gmail.com>
--000000000000dea5f806439ca8e9
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

hello matt

can you try enabling logger org.apache.james.util.AuditTrail at level info =
?
you can then filter the audit trail logs for protocol SMTP action SPOOL
the log line should have the message size.

the log is registered after the full mail has been read from the wire and
spooled in the mailqueue

jean

On Fri, Nov 14, 2025 at 4:47=E2=80=AFPM Matt Pryor <pryor@international-pre=
sence.com>
wrote:

> After a bit more investigation it seems the client is sending some
> particularly large attachments which seems to coincide with some of the
> delays we're seeing.
>
> Is there any way to record the size of emails being submitted?
>
> Thanks
> Matt
>
>
>
>
> Kind regards
> Matt Pryor
> Research and Development Manager
>
> The International Presence Group of Companies
> EMAIL: [email protected]
> URL: www.International-presence.com
>
>
>
>
> On Thu, 2 Oct 2025 at 18:02, Matt Pryor <[email protected]=
>
> wrote:
>
> > Hi there,
> >
> > I am using James 3.8.2 / jpa guice on Windows.
> > Customer says that users are complaining of email delays.
> >
> > One example I identified in the logs - email was submitted here:
> >
> > 2025-10-02 16:25:36.052 [DEBUG] o.a.j.p.a.h.CommandHandlerResultLogger =
-
> > org.apache.james.smtpserver.JamesRcptCmdHandler: [250 2.1.5 Recipient
> > <xxxx@xxxx> OK]
> >
> > Then spooled here:
> >
> > 2025-10-02 16:25:36.202 [INFO ] o.a.j.s.SendMailHandler - Successfully
> > spooled mail Mail1759422336090-388e03bd-1020-4389-a0f0-89e4c97747b7 wit=
h
> > messageId <-1642525984.317.1759422335691@QUAN001> from qtxdemo@xxxxxxx
> on
> > 204.75.15.226/204.75.15.226 for [xxxx@xxxx]
> >
> > Then dequeued for sending here:
> >
> > 2025-10-02 16:25:36.317 [DEBUG] o.a.j.t.m.RemoteDelivery - Sending mail
> to
> > [xxxx@xxxx] on host Domain : gmail.com
> >
> > But not delivered until 5 minutes later:
> >
> > 2025-10-02 16:30:58.303 [INFO ] o.a.j.t.m.r.d.MailDelivrerToHost - Mail
> > (Mail1759422336090-388e03bd-1020-4389-a0f0-89e4c97747b7-to-gmail.com)
> with
> > messageId <-1642525984.317.1759422335691@QUAN001> sent successfully to
> > gmail-smtp-in.l.google.com. at 172.253.63.26 from xxxx@xxxx for
> > [xxxx@xxxxx]
> >
> > I've set spool threads to 200 and delivery threads to 500, but counting
> > the delivery attempts between 16:25 and 16:30 there were only a couple =
of
> > dozen.
> >
> > Any idea what can be causing this please?
> >
> > Kind regards
> > Matt Pryor
> > Research and Development Manager
> >
> > The International Presence Group of Companies
> > EMAIL: [email protected]
> > URL: www.International-presence.com
> >
> >
> >
>

--000000000000dea5f806439ca8e9--