Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8431061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:45:20+00:00 2026-06-10T05:45:20+00:00

I have an IMAP server (Dovecot), on which I am trying to create 1,200

  • 0

I have an IMAP server (Dovecot), on which I am trying to create 1,200 mailboxes (for performance testing). The server successfully creates the mailboxes.

After this operation I then want to list all created folders. The server sends some data, however, after some time (nearly 1 second) the CLIENT sends RST, ACK to the server in response to the server responding with IMAP protocol’s command about the list of created folders.

Here is my Wireshark dump snippet:

IMAP: Src Port: imap (143), Dst Port: 56794 (56794), Seq: 29186, Ack: 20533, Len: 24
IMAP: Src Port: 56794 (56794), Dst Port: imap (143), Seq: 20533, Ack: 29210, Len: 15
IMAP: Src Port: imap (143), Dst Port: 56794 (56794), Seq: 29210, Ack: 20548, Len: 16384
TCP: 56794 > imap [ACK] Seq=20548 Ack=45594 Win=49408 Len=0 TSV=3940902 TSER=3940902
IMAP: Src Port: imap (143), Dst Port: 56794 (56794), Seq: 45594, Ack: 20548, Len: 16384
TCP: 56794 > imap [RST, ACK] Seq=20548 Ack=61978 Win=49408 Len=0 TSV=3940902 TSER=3940902

Edit: Well, I think I figured out why RST flag is sent by client. The reason is server exceed MTU value for my loopback interface. I have checked similar behavior for sample Mina server – and all is OK there, i.e. huge packets are spited by TCP/IP protocol. So Dovecot can’t manage packets wisely. But I have my own IMAP server (based on MINA) and the problem still persist there!

So why TCP/IP protocol manages sent packets (split them according to MTU value) wisely only for some apps but not for all?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:45:21+00:00Added an answer on June 10, 2026 at 5:45 am

    Your assumption about the causation of a TCP Reset being sent is incorrect. If you’ve exceeded the MTU, that’s not managed by TCP. It’s managed at the IP layer and an ICMP “fragmentation required” message will be sent to the client. Such a message should then cause the client to fragment the packets at the IP layer. This is not happening in your case based on the information that you’ve shared.

    Regarding the loopback interface, this traffic doesn’t go anywhere near the loopback interface, is it not two separate devices?

    Sadly, your trace file still doesn’t offer any insight into why this packet –

    IMAP: Src Port: imap (143), Dst Port: 56794 (56794), Seq: 45594, Ack: 20548, Len: 16384
    

    causes a TCP reset. There’s nothing really further that I can deduce from this information.

    TCP has an option called Maximum Segment size, which is similar but also different 🙂 The TCP/IP stack is independent of applications and does not apply different settings to each application, it’s system-wide.

    Edit: Looking at you packet capture, there’s nothing indicative of a MTU issue. There’s no ICMP traffic anywhere so I suspect that it’s not an issue. If there’s a MTU issue, it should have happened in the previous response because both LIST responses from the IMAP server are of identical size and there’s no issue with the window sizes.

    The only thing that I can see is in relation to the first element of the final response (before the RST) where part of the reply looks to be malformed (see the attachment). There’s something going wrong in the IMAP application and the data it’s replying with is malformed.imap response – see the difference with the bottom two responses that are consistent with all other LIST responses in the pcap.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mail server based on Postfix + Dovecot (IMAP) on a CentOS
i have three hours trying to connect to imap server with php but i
I'm trying to get mail(imap) from google by oauth authorization . I have got
Hey bit of a beginners question here, I have connected to an imap server
I have created an IMAP-Server. Now I am searching a way to force the
I have a SQL Server 2008 database. This database has a column that represents
I have a python code that connects to IMAP server via IMAP4_SSL, and everything
I have been trying to build the framework MailCore which is a dependency in
I have a IMAP server host name : xyz.com. And my SMTP host name
I am trying to read mail from an Imap Server (Gmail). I would check

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.