Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Cyrus IMAP syslog issue

  1. #1
    Join Date
    Dec 2009
    Location
    Moldova
    Posts
    130

    Default Cyrus IMAP syslog issue

    Hello,

    after installing standard mail server with Yast (Postfix+Cyrus+LDAP) everyphing works OK except just one annoying thing: Cyrus makes a lot of IMAP logs in /var/log/mssages.
    Acording to Cyrus IMAP doc : Project Cyrus it makes logs with "local6" syslog facility.
    I have tried to add in /etc/rsyslog.conf

    Code:
    if     ($syslogfacility-text == 'local6')   \
    then   -/var/log/imap
    &       ~
    after resstart rcsyslog restart it still adds logs in /var/log/messages instead of /var/log/imap.

    please help

  2. #2

    Default Re: Cyrus IMAP syslog issue

    I'm no expert but I think you've made a few errors,
    if ($syslogfacility-text == 'local6') \ then -/var/log/imap & ~
    ~/var/log/imap <--- need to use absolute path ~/var/ doesn't compute.
    Likewise "~ "

    I think you should have added
    local6.debug /var/log/imapd.log

    Then create the log file for imapd by typing touch /var/log/imapd.log.

    Cyrus IMAP configuration

  3. #3
    Join Date
    Dec 2009
    Location
    Moldova
    Posts
    130

    Default Re: Cyrus IMAP syslog issue

    Quote Originally Posted by tararpharazon View Post
    I'm no expert but I think you've made a few errors,
    ~/var/log/imap <--- need to use absolute path ~/var/ doesn't compute.
    Likewise "~ "

    I think you should have added
    local6.debug /var/log/imapd.log

    Then create the log file for imapd by typing touch /var/log/imapd.log.

    Cyrus IMAP configuration
    this is not ~ but - and this is standard rsyslog format. you can see other examples by checking /etc/rsyslog.txt for example for firewall file.

  4. #4
    Join Date
    Dec 2009
    Location
    Moldova
    Posts
    130

    Default Re: Cyrus IMAP syslog issue

    Hello, as it is still not working with syslog facility 'local6', finally I did it by analysing $programname:
    Code:
    if      ($programname contains 'imap')  or \
            ($programname contains 'cyrus')  \
    then   -/var/log/imap
    &       ~

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Cyrus IMAP syslog issue

    On 2011-04-23 13:06, isemionov wrote:
    >
    > Hello, as it is still not working with syslog facility 'local6',
    > finally I did it by analysing $programname:
    >
    > Code:
    > --------------------
    >
    > if ($programname contains 'imap') or \
    > ($programname contains 'cyrus') \
    > then -/var/log/imap
    > & ~
    >
    > --------------------


    Is it not using facility "mail"? All mail related logs go to the mail log.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  6. #6
    Join Date
    Dec 2009
    Location
    Moldova
    Posts
    130

    Default Re: Cyrus IMAP syslog issue

    Quote Originally Posted by robin_listas View Post
    On 2011-04-23 13:06, isemionov wrote:
    >
    > Hello, as it is still not working with syslog facility 'local6',
    > finally I did it by analysing $programname:
    >
    > Code:
    > --------------------
    >
    > if ($programname contains 'imap') or \
    > ($programname contains 'cyrus') \
    > then -/var/log/imap
    > & ~
    >
    > --------------------


    Is it not using facility "mail"? All mail related logs go to the mail log.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)
    hello, in rsyslog.conf there is a configuration by default for mail facility, but unfortunately Cyrus IMAP do not use it...
    in /var/log/mail I get postfix,amavis,clamd messages only.

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Cyrus IMAP syslog issue

    On 2011-04-23 19:36, isemionov wrote:

    > hello, in rsyslog.conf there is a configuration by default for mail
    > facility, but unfortunately Cyrus IMAP do not use it...
    > in /var/log/mail I get postfix,amavis,clamd messages only.


    Then cyrus must have a configuration somewhere for how to do the logs. I
    don't use cyrus, but in dovecot there is this:

    Code:
    -----------------------
    # Syslog facility to use if you're logging to syslog. Usually if you don't
    # want to use "mail", you'll use local0..local7. Also other standard
    # facilities are supported.
    #syslog_facility = mail
    -----------------------

    Cyrus surely has something similar.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  8. #8
    Join Date
    Dec 2009
    Location
    Moldova
    Posts
    130

    Default Re: Cyrus IMAP syslog issue

    As I can see, in Cyrus IMAP syslog facility can be indicated only at compiling time and I don't know what was indicated in standard openSUSE package.
    But I have found:
    Code:
    syslog_prefix: <none>
    String to be prepended to the process name in syslog entries.
    I will try to play with it.

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Cyrus IMAP syslog issue

    On 2011-04-26 12:36, isemionov wrote:
    >
    > As I can see, in Cyrus IMAP syslog facility can be indicated only at
    > compiling time and I don't know what was indicated in standard openSUSE
    > package.


    Ah, curious. It could be found in the spec file, I suppose. I've never used
    cyrus.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  10. #10
    Join Date
    Dec 2009
    Location
    Moldova
    Posts
    130

    Default Re: Cyrus IMAP syslog issue

    Quote Originally Posted by robin_listas View Post
    On 2011-04-26 12:36, isemionov wrote:
    >
    > As I can see, in Cyrus IMAP syslog facility can be indicated only at
    > compiling time and I don't know what was indicated in standard openSUSE
    > package.


    Ah, curious. It could be found in the spec file, I suppose. I've never used
    cyrus.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)
    Hello! Thanks to your advice I have checked package changelog and have found:
    * Fri Apr 9 15:00:00 2010 rhafer@novell.com
    - Adjusted documentation to reflect the correct syslog facility
    that the packages are build with ("daemon" instead of "local6")
    i use now daemon name and it's working ok, thanks

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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