dovecot, LMTP: why logging?

Discussion in 'Installation/Configuration' started by Taleman, Feb 21, 2021.

Tags:
  1. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    On one ISPConfig host dovecot logs the below messages, logwatch pesters me every day about these.
    What are they and why log them? It looks to me the message is delivered to INBOX, so all is OK, or what?
    Code:
    --------------------- Dovecot Begin ------------------------
    
     
     Dovecot IMAP and POP3 Successful Logins: 4
     
     Dovecot disconnects: 614 Total
     
     **Unmatched Entries**
        dovecot: lmtp([email protected])<15394><K2awHCgcMWAiPAAA3Nupqw>: sieve: msgid=<[email protected]west-1.amazonses.com>: stored mail into mailbox 'INBOX': 1 Time(s)
        dovecot: lmtp([email protected])<22419><ITjYHa44MWCTVwAA3Nupqw>: sieve: msgid=<yT7wLj-HHrtCfd-p9AnKAos2[email protected]grandslice.cyou>: stored mail into mailbox 'INBOX': 1 Time(s)
        dovecot: lmtp([email protected])<23627><dkIXOCm6MGBLXAAA3Nupqw>: sieve: msgid=<mihqxEUmPzH8rkDm2R9vKqmq[email protected]matchpanic.cyou>: stored mail into mailbox 'INBOX': 1 Time(s)
        dovecot: lmtp([email protected])<24552><AF17FZ5AMWDoXwAA3Nupqw>: sieve: msgid=<[email protected]>: stored mail into mailbox 'INBOX': 1 Time(s)
        dovecot: lmtp([email protected])<25190><fDtUCDHBMGBmYgAA3Nupqw>: sieve: msgid=<92svXBxKRylhb9GF6mnmPbz-[email protected]chalkbuild.cyou>: stored mail into mailbox 'INBOX': 1 Time(s)
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 10 (buster)
     
    [INFO] uptime:  14:03:45 up 25 days, 21:32,  1 user,  load average: 0,10, 0,06, 0,02
     
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          1,9Gi       519Mi       737Mi        53Mi       738Mi       1,2Gi
    Swap:         1,3Gi       644Mi       648Mi
     
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.2
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.3.27-1~deb10u1
    [INFO] php-cgi (used for cgi php in default vhost!) is version 5.6.40-0+deb8u2
    
    ##### PORT CHECK #####
    
    Also the php-cgi is PHP 5.6, I do not know why. Have tried to change it.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The lines do not indicate an error. If logwatch complains about them, then there must be an issue in the rules that logwatch is using to filter out problematic log lines.
     
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Yeah, just configure logwatch to ignore them. Fwiw I use those messages pretty frequently to know where mail went once it hits sieve rules.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I had some time to dig deeper in this, and seems it is a known bug in Debian 10. Dovecot version in Debian buster changed format of those log lines, and logwatch in buster was not modified accordingly.
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941032
    It looks to me this is fixed in later versions of logwatch. Fix is not backported to buster, though.
     
    ahrasis and till like this.
  5. basmevissen

    basmevissen New Member

    FWIW: These messages first appeared in logwatch around end november / beginning december on both an Ubuntu 14.04 and a CentOS 7 system I maintain. Both hosts do not have Dovecot 2.3 (Centos 7 currently has 2.2.36 and Ubuntu 14.04 LTS ESM has 2.2.9, both distro patched obviously) and logwatch on both is 7.4.0 based.

    I dived into the ispconfig created backups of these hosts and compared the /etc just before and after those dates. There are changes in dovecot and postfix configuration regarding lmtp on both hosts. They both got an upgrade to Ispconfig version 3.2.1, were the configuration files were rewritten and the systems got rebooted (to check if the persistent configuration is correct).

    So it is a change by ispconfig that triggered the change in logging, not a dovecot version upgrade.
     
    Taleman likes this.
  6. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    3.2.0 switched to lmtp for all delivery if detected (previously it was used in some specific scenario only), so it's not a change to logging specifically, but the lmtp daemon, which previously was unsused, is now used and logging it's actions.
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    @basmevissen may be on the right track. I copied logwatch filter from latest Debian testing to local configuration, but I still got the spurious messages to logwatch report. The new filter did accommodate the added text in the log line, but that was enought to fix the problem. It is possible I messed up the configuration change, did not find a way to test it easily.
     

Share This Page