Postfix Monitoring with Mailgraph And pflogsumm On Debian Etch

Discussion in 'Installation/Configuration' started by kdclaver, Oct 25, 2007.

  1. kdclaver

    kdclaver New Member

    I have modify this script "" like this according to my installation (look below) and after one week I haven't receive any email in my mailbox. I think there is something wrong. Can you please help me

    ==== The script =====
    gunzip /var/log/mail.log.0.gz

    pflogsumm /var/log/mail.log.0 | formail -c -I"Subject: Mail Statistics" -I"From: [email protected]" -I"To: [email protected]" -I"Received: from ([])" | sendmail [email protected]

    gzip /var/log/mail.log.0
    exit 0

    my domain is :
    and I want to receive the email directly in my mailbox

    ==== My aliases files =====
    # /etc/aliases
    mailer-daemon: postmaster
    postmaster: root
    nobody: root
    hostmaster: root
    usenet: root
    news: root
    webmaster: root
    www: root
    ftp: root
    abuse: root
    noc: root
    security: root
    root: admins
    admins: [email protected]
    clamav: root
    amavis: root

    Thanks more for your help !!!!!
  2. falko

    falko Super Moderator ISPConfig Developer

    Does it work when you run the script manually?

    What are the outputs of
    which pflogsumm
    which sendmail
  3. kdclaver

    kdclaver New Member

    Hi Falko,
    The output are below
    marina:~# which pflogsumm

    marina:~# which sendmail

    marina:/usr/local/sbin# ls -l
    total 12
    -rw-r--r-- 1 root staff 380 2007-10-23 09:40
    -rwxr-xr-x 1 root staff 4626 2007-10-22 10:51 quota_notify

    After changing the rights as like below
    marina:/usr/local/sbin# chmod a+x
    marina:/usr/local/sbin# ./

    and executing the script manually, it sends me the statistics.

    Thanks more
  4. falko

    falko Super Moderator ISPConfig Developer

    I'd then try to use the full paths for pflogsumm and sendmail in the script.

Share This Page