Re: SYSLOG problem. Can't seperate sendmail from cyrus.

From: Aaron Bennett (no email)
Date: Wed Apr 19 2006 - 11:32:00 EDT

  • Next message: Andrew Morgan: "Re: Restoring Mailboxes"

    Mark London wrote:
    > I have cyrus installed via redhat 4 rpms. I thought I could separate
    > all cyrus messages from sendmail, by doing the following in syslog.conf:
    >
    > *.info;mail.none;news.none;authpriv.none;cron.none;local6.*
    > /var/log/messages
    >
    > mail.*;local6.none
    > -/var/log/maillog
    >
    As pointed out below, cyrus on redhat 4 rpms is compiled to use facility
    mail. I deal with that by running syslog-ng on my central syslog
    server; it's _much_ more flexible then syslog and can split by
    application name as well as facility and level. In case anyone's
    interested, here's the relevant syslog-ng section:

    destination postfix { file ("/var/log/$HOST/mail.log"); };

    destination cyrus { file ("/var/log/$HOST/cyrus.log"); };

    filter f_calliope-postfix {

            (

                    host("calliope.clarku.edu")

            ) and (

                    facility(mail) and

                    program(postfix)

            );

    };

    filter f_calliope-cyrus {

            (

                    host("calliope.clarku.edu")

            ) and (

                    facility(mail) and

                    not program(postfix)

            );

    };

    log { source(net); filter(f_calliope-postfix); destination(postfix); flags(final); };

    log { source(net); filter(f_calliope-cyrus); destination(cyrus); flags(final); };

    Best,

    Aaron Bennett
    UNIX Administrator
    Clark University

    ----
    Cyrus Home Page: http://asg.web.cmu.edu/cyrus
    Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
    List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
    

  • Next message: Andrew Morgan: "Re: Restoring Mailboxes"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD