Thank you Jean, I will give that a go when I'm next able to get access to
the server.

Kind regards
Matt Pryor
Research and Development Manager

The International Presence Group of Companies
EMAIL: [email protected]
URL: www.International-presence.com




On Sat, 15 Nov 2025 at 07:00, Jean Helou <[email protected]> wrote:

> 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 PM Matt Pryor <
> [email protected]>
> 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
> with
> > > 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
> > >
> > >
> > >
> >
>

Reply via email to