The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Extra exim.conf logging options for all of you.

Discussion in 'General Discussion' started by LiNUxG0d, Oct 22, 2004.

  1. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gatineau, Quebec, Canada
    Hi all,

    I had some good success with these extra Exim logging options. I would like you to view them and try them at your own leisure. They increase the /var/log/exim_log buuuut give you a better grasp on what mail your server is sending:

    -=-=-
    Add this to your /etc/exim.conf after "hostlist auth_relay_hosts = *"

    log_selector = \
    +address_rewrite \
    +all_parents \
    +arguments \
    +connection_reject \
    +delay_delivery \
    +delivery_size \
    +dnslist_defer \
    +incoming_interface \
    +incoming_port \
    +lost_incoming_connection \
    +queue_run \
    +received_sender \
    +received_recipients \
    +retry_defer \
    +sender_on_delivery \
    +size_reject \
    +skip_delivery \
    +smtp_confirmation \
    +smtp_connection \
    +smtp_protocol_error \
    +smtp_syntax_error \
    +subject \
    +tls_cipher \
    +tls_peerdn

    -=-=-

    Restart exim when you're done, then tail your log files. :) You can now see subject, SMTP connections, script execution, etc. Pretty nifty. :) Feel free to remove whatever you don't care to see logged.

    Warmest regards,

    Jamie
    Kiosk.ws
     
  2. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    heii.. which text box I need to use to add these commands to exim.config when I use WHM advance exim editor... is it the first one or second one? :confused:

    In first I already have some commands.. It is "smtp_return_error_details = true"... is that a problem?
     
  3. jackie46

    jackie46 BANNED

    Joined:
    Jul 25, 2005
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    0
    Why clutter exim_mainlog and make it bigger than ever before with all that logging?

    All you need to do is add;

    logwrite = Subject: $h_Subject:

    If all you want to see is the subject of each valid message.
     
  4. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gatineau, Quebec, Canada
    Try it in the first box, under any additional options there.

    It works well for me. Play around with the options.

    Granted, it may be MORE information than what you need, but, feel free to drop some of the options. Play around with it, see what works for you. :)

    Warmest regards,

    J
     
Loading...

Share This Page