Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Dovecot Maillog Output Question

Discussion in 'E-mail Discussion' started by LennonZA, Jul 11, 2018 at 5:01 AM.

  1. LennonZA

    LennonZA Registered

    Joined:
    May 8, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi guys!

    I have been trying to find a decent explanation of the Dovecot Maillog output, specifically for IMAP users.

    The command I used is as follows:

    cat /var/log/maillog | grep "user@domain.com" | grep "imap" | grep "Logged out"

    The output line that confuses me is as follows:

    dovecot: imap(user@domain.com): Logged out in=787, out=63023692, bytes=787/63023692

    Basically, I need to know exactly what each of the following means:

    Logged out in=
    out=
    bytes=

    Any info would be awesome.
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    691
    Likes Received:
    233
    Trophy Points:
    43
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    This looks confusing, but I shall try and make it a bit simpler:

    The IMAP section of the dovecot.conf contains the variables that are used to write to the log:
    Code:
      # IMAP logout format string:
      #  %i - total number of bytes read from client
      #  %o - total number of bytes sent to client
    imap_logout_format = in=%i, out=%o, bytes=%i/%o
    The log entry you are seeing has a number of parts:
    dovecot:imap - the process is dovecot and the protocol is IMAP
    user - the name of the account that is using the protocol
    Logged out - the fact that the user has logged out of an IMAP session
    in= - the number of bytes of data read from the client
    out= - the number of bytes of data sent to the client
    bytes= in/out - the number of bytes of data read/sent to the client

    Why the number of bytes data is repeated, I have no idea :(

    Hope this helps
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
  3. LennonZA

    LennonZA Registered

    Joined:
    May 8, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator

    Hi rpvw.

    Thanks for replying. :)

    So the out= section indicates what the client has downloaded and the bytes= section is the total amount of data which the client has sent / uploaded to the server as well as what he / she has downloaded?
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    691
    Likes Received:
    233
    Trophy Points:
    43
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    bytes = is just a repeat of the in= and the out= ..... I have no idea why they decided to repeat the same data in a different format

    Look at the variables used: imap_logout_format = in=%i, out=%o, bytes=%i/%o
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. LennonZA

    LennonZA Registered

    Joined:
    May 8, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Cool.

    Thanks very much for explaining this. :):):)
     
  6. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    @rpvw

    Thanks for your answer here, perfect!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice