![]() |
![]() |
![]() |
![]() |
milter configuration written by Rubymilter configuration written by Ruby — How to write configuration file |
About this document
Milters written by Ruby support configuration file that has the same syntax of milter-manager's one. But configuration items are different. This documents describes about how to write configuration file and configuration items.
Summary
You can specify configuration file by -c or --configuration option. For example, here is a command line that a milter, milter-regexp.rb, uses /etc/milter-regexp.conf as its configuration:
% ruby milter-regexp.rb -c /etc/milter-regexp.conf
Configuration file uses the following syntax:
GROUP.ITEM = VALUE
For example, set value of "connection_spec" item in "milter" group to "inet:12345" for set milter's listen socket address to IPv4 address and 12345 port:
milter.connection_spec = "inet:12345"
Here are available groups:
Here are descriptions of configuration items.
Security
You can use configuration items same as milter manager's "log" group. Please see milter-manager's document page for details.
See security.effective_user . |
|
See security.effective_group . |
Log
You can use configuration items same as milter manager's "security" group. Please see milter-manager's document page for details.
See log.level . |
|
See log.path . |
|
See log.use_syslog . |
|
See log.syslog_facility . |
Milter
You can use configuration items same as milter manager's "manager" group. Please see milter-manager's document page for details.
See manager.connection_spec . |
|
See manager.unix_socket_mode . |
|
See manager.daemon . |
|
See manager.pid_file . |
|
See manager.max_connections . |
|
milter.event_loop_backend |
|
See manager.n_workers . |
|
See manager.maintained . |
|
Returns child milter's name. Since 1.8.1. |
Database
You can use configuration items same as '"database" group' . Please see milter-manager's document page for details. It includes setup document and tutorial.
See database.type . |
|
See database.name . |
|
See database.host . |
|
See database.port . |
|
See database.path . |
|
See database.user . |
|
See database.password . |
|
See database.setup . |
|
See database.load_models . |