# -*- ruby -*-

load("applicable-conditions/*.conf")
load_default
load_if_exist("milter-manager.local.conf")

# security.privilege_mode = false
# security.effective_user = nil
# security.effective_group = nil

# manager.connection_spec = "inet:10025@[127.0.0.1]"
# manager.unix_socket_mode = 0660
# manager.unix_socket_group = nil
# manager.remove_unix_socket_on_create = true
# manager.remove_unix_socket_on_close = true
# manager.daemon = false
# manager.pid_file = nil
# manager.maintenance_interval = 10
# manager.suspend_time_on_unacceptable = 5
# manager.max_connections = 0
# manager.max_file_descriptors = 0
# manager.max_pending_finished_sessions = 0
# manager.custom_configuration_directory = nil
# manager.fallback_status = "accept"
# manager.fallback_status_at_disconnect = "temporary-failure"
# manager.event_loop_backend = "glib"
# manager.n_workers = 0
# manager.packet_buffer_size = 0
# manager.connection_check_interval = 0
# manager.chunk_size = 65535

# controller.connection_spec = nil
# controller.unix_socket_mode = 0660
# controller.unix_socket_group = nil
# controller.remove_unix_socket_on_create = true
# controller.remove_unix_socket_on_close = true

# database.type = "mysql"
# database.name = "milter_manager"
# database.host = nil
# database.port = nil
# database.path = nil
# database.user = nil
# database.password = nil
# database.setup
# database.load_models("models/*.rb")

# define_milter("milter@10026") do |milter|
#   milter.description = "a milter working at inet:10026@localhost"
#   milter.connection_spec = "inet:10026@localhost"
# #   milter.user_name = "nobody"
# #   milter.command = "test-milter"
# #   milter.command_options = ["-p", "inet:10026@localhost"]
#
# #   milter.enabled = false
# #   milter.fallback_status = "accept"
#   milter.add_applicable_condition("S25R")
# #   milter.target_hosts << "external.example.com"
# end
