Results 1 to 6 of 6

Thread: MTA logging question

  1. #1
    Join Date
    Feb 2006
    Posts
    9
    Rep Power
    9

    Default MTA logging question

    I've noticed an issue while looking through the logging scripts (am another person that doesn't get all the graphs), zmlogprocess never parses any MTA entries out of my raw_logs table because all the postfix/* entries in there have a postfix_qid of null.

    Does this sound right, what postfix entries should have a postfix_qid?

    Thanks in advance,
    Jon.

  2. #2
    Join Date
    Feb 2006
    Posts
    9
    Rep Power
    9

    Default Also disk logging

    FYI - Just noticed that disk_status isn't getting populated either. The info isn't getting parsed out of raw_logs correctly because zmdisklog isn't setting the hostname...

    Regards,
    Jon.

  3. #3
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default hmm

    Those don't sound right. I've made some changes to this stuff to fix the missing graph problem, but I've never seen the null qid. Is it possible that syslog is logging the IP, not the hostname, because it can't resolve the IP address?

  4. #4
    Join Date
    Feb 2006
    Posts
    9
    Rep Power
    9

    Default

    I don't believe so, here's an example line from /var/log/zimbra.log and the corresponding database entry -

    Feb 16 08:44:13 epia postfix/cleanup[20593]: 6F9614528: message-id=<200602160844.k1G8i8xi008879@localhost.localdom ain>

    | 3222 | 2006-02-16 08:44:13 | epia | postfix/cleanup | 20593 | 6F9614528: message-id=<200602160844.k1G8i8xi008879@localhost.localdom ain> | NULL |

    I don't really know perl, but am I correct in thinking that zmlogger should be parsing the qid (6F9614528) out in the section below? If so, I'll take a closer look at the processing here..

    if ($app =~ /^postfix/ && $msg =~ /^(\S{10,12}): /) {
    $qid = $1;
    }


    Regards,
    Jon.

  5. #5
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    interesting - your QID is 9 digits, I've never seen that. Quick fix is to change the {10,12} to {9,12} in that script.

  6. #6
    Join Date
    Feb 2006
    Posts
    9
    Rep Power
    9

    Default

    Yep, that's done the trick... Thanks!

Similar Threads

  1. Daily mail report always reports "No messages found"
    By McPringle in forum Installation
    Replies: 42
    Last Post: 06-13-2011, 08:57 AM
  2. Stats don't update
    By Doug_M in forum Administrators
    Replies: 33
    Last Post: 05-05-2007, 08:17 PM
  3. External MTA and TLS Question
    By 3RiversTechAdmin in forum Administrators
    Replies: 5
    Last Post: 12-20-2006, 09:36 AM
  4. Server Stats Cont...
    By DMRDave in forum Administrators
    Replies: 15
    Last Post: 02-16-2006, 12:16 PM
  5. No data in server statistics
    By zap in forum Administrators
    Replies: 63
    Last Post: 02-13-2006, 10:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •