root / conf / exilog.conf-example @ 0a6e4fae2c79d5f9da1033e0a51abfc69e10b8b2
View | Annotate | Download (4.3 KB)
| 1 | { # DO NOT REMOVE THIS BRACKET
|
|---|---|
| 2 | |
| 3 | # Exilog config file. Read the comments. Obey the syntax. |
| 4 | # (c) Tom Kistner 2005 |
| 5 | |
| 6 | |
| 7 | 'servers' => { # ------------------------------------
|
| 8 | # Server definitions. One block per server, |
| 9 | # separated with comma. |
| 10 | |
| 11 | # Currently, each server only has a single |
| 12 | # property: Its group membership. Groups are |
| 13 | # just strings that bundle servers. Each |
| 14 | # server can only be in one group. |
| 15 | |
| 16 | # Keep the server names short (do not use FQDN). |
| 17 | # Likewise, keep the group names short. |
| 18 | |
| 19 | 'foobar' => {
|
| 20 | 'group' => 'MXes' |
| 21 | }, |
| 22 | |
| 23 | 'fanucci' => {
|
| 24 | 'group' => 'MXes' |
| 25 | } |
| 26 | |
| 27 | }, # End of server definitions ---------------------- |
| 28 | |
| 29 | |
| 30 | 'sql' => { # ----------------------------------------
|
| 31 | # SQL Server definition. Use one of the following |
| 32 | # blocks as a template. |
| 33 | |
| 34 | # Example for local MySQL server |
| 35 | 'type' => 'mysql', |
| 36 | 'DBI' => 'DBI:mysql:database=exilog;', |
| 37 | 'user' => 'myuser', |
| 38 | 'pass' => 'mypass' |
| 39 | |
| 40 | # Example for remote MySQL server |
| 41 | #'type' => 'mysql', |
| 42 | #'DBI' => 'DBI:mysql:database=exilog;host=foobar.duncanthrax.net;port=3306', |
| 43 | #'user' => 'myuser', |
| 44 | #'pass' => 'mypass' |
| 45 | |
| 46 | # Example for Postgresql server |
| 47 | #'type' => 'pgsql', |
| 48 | #'DBI' => 'DBI:Pg:dbname=exilog;host=195.2.162.40;port=5432;', |
| 49 | #'user' => 'myuser', |
| 50 | #'pass' => 'mypass' |
| 51 | |
| 52 | }, # End of SQL server definition -------------------- |
| 53 | |
| 54 | |
| 55 | 'agent' => { # ---------------------------------------
|
| 56 | # Agent configuration. |
| 57 | |
| 58 | # The agent writes a log file. You can also |
| 59 | # use /dev/null here once things are running |
| 60 | # smoothly. |
| 61 | 'log' => '/var/log/exilog_agent', |
| 62 | |
| 63 | # The agent writes its PID into this file. Useful, |
| 64 | # if you want to start the agent using a command |
| 65 | # like start-stop-daemon. |
| 66 | 'pidfile' => '/var/run/exilog-agent.pid', |
| 67 | |
| 68 | # If this is set to 'no', the agent will NOT change |
| 69 | # its process names to be more informative. This will |
| 70 | # prevent problems on systems that restrict changes |
| 71 | # to process names for security reasons (Debian and |
| 72 | # NetBSD for example). |
| 73 | #'use_pretty_names' => 'no', |
| 74 | |
| 75 | # The server the agent is running on. MUST |
| 76 | # be one of the names specified in the |
| 77 | # 'Servers' section above. |
| 78 | 'server' => 'foobar', |
| 79 | |
| 80 | # The log(s) to monitor. If you log via syslog, |
| 81 | # this will only be a single file (typically |
| 82 | # /var/log/mail). If you use Exim's own logging, |
| 83 | # you should specify the mainlog and rejectlog here. |
| 84 | 'logs' => [ |
| 85 | '/var/log/maillog' |
| 86 | ], |
| 87 | |
| 88 | # Path to Exim's queue directory. |
| 89 | 'queue' => '/var/spool/exim', |
| 90 | |
| 91 | # Path to your Exim binary |
| 92 | 'exim' => '/usr/sbin/exim', |
| 93 | |
| 94 | # Delay between two queue listing refreshes. |
| 95 | # Thirty seconds is reasonable. |
| 96 | 'queue_refresh_delay' => 30 |
| 97 | |
| 98 | }, # End of Exilog Agent configuration --------------- |
| 99 | |
| 100 | |
| 101 | 'cleanup' => { # -------------------------------------
|
| 102 | # Configuration for the database cleanup tool |
| 103 | # (exilog_cleanup.pl). |
| 104 | |
| 105 | # How many days worth of logs to keep in the |
| 106 | # database. 10 days is somehow reasonable. If |
| 107 | # you run a small shop you can also keep months |
| 108 | # of logs. If you run a VERY big shop you might |
| 109 | # want to reduce this number or buy some more |
| 110 | # processing power. |
| 111 | 'cutoff' => 10 |
| 112 | |
| 113 | }, # End of exilog_cleanup.pl configuration ---------- |
| 114 | |
| 115 | |
| 116 | 'web' => { # -----------------------------------------
|
| 117 | # Options for the web interface. |
| 118 | |
| 119 | # Defines how the web interface shows timestamps. |
| 120 | # Use 'local' to use the local time of the HTTP server |
| 121 | # machine, or use 'gmt' to use normalized GMT |
| 122 | # timestamps. |
| 123 | # TIP: If all of your machines are in one time zone, |
| 124 | # use 'local'. |
| 125 | 'timestamps' => 'local', |
| 126 | |
| 127 | # When using basic auth to restrict access to the web |
| 128 | # interface, you can define users to be "read-only". |
| 129 | # They will not be able to cancel or delete messages |
| 130 | # (but they can start a delivery run). Clients that |
| 131 | # do not authenticate are mapped to a user name |
| 132 | # of "anonymous". |
| 133 | 'restricted_users' => [ |
| 134 | 'anonymous', |
| 135 | 'bob', |
| 136 | 'alice', |
| 137 | 'peter' |
| 138 | ] |
| 139 | |
| 140 | } # End of web interface configuration --------------- |
| 141 | }; |
| 142 | |
| 143 | # EOF |