Hi,

I suppose you should be having a busy schedule. Please take some time in
reading this.

I got your mail address from the file 'AuTHORS' of policyd package
downloaded from policyd main site.

I am trying to set policydv2 in a relay server [postfix, centos]. My aim is
to rate limit outgoing mails. Thus I enabled only core, quotas module in
cluebringer.conf.

I installed the required perl/php related packages as given in file
'INSTALL'. And then created a db 'policyd' and gave the details in
cluebringer.conf file. Just for checking I started cbpolicyd, but the issue
is module 'Quotas' seems to be not loading. The log shows:

-----------------------
[2012/08/17-15:49:32 - 31070] [CORE] NOTICE: 2012/08/17-15:49:32 Server
closing!
[2012/08/17-15:49:32 - 31074] [CBPOLICYD] DEBUG: Shutting down caching
engine (31074)
[2012/08/17-15:49:32 - 31075] [CBPOLICYD] DEBUG: Shutting down caching
engine (31075)
[2012/08/17-15:49:32 - 31072] [CBPOLICYD] DEBUG: Shutting down caching
engine (31072)
[2012/08/17-15:49:32 - 31073] [CBPOLICYD] DEBUG: Shutting down caching
engine (31073)
[2012/08/17-15:49:32 - 31070] [CORE] DEBUG: Destroying system modules.
[2012/08/17-15:49:32 - 31070] [CORE] DEBUG: System modules destroyed.
[2012/08/17-15:49:32 - 31070] [CORE] DEBUG: Closing syslog.
[2012/08/17-15:49:32 - 31070] [CORE] DEBUG: Syslog closed.
[2012/08/17-15:49:33 - 9022] [CORE] NOTICE: Process Backgrounded
[2012/08/17-15:49:33 - 9022] [CBPOLICYD] NOTICE: Policyd v2 / Cluebringer -
v2.0.11
[2012/08/17-15:49:33 - 9022] [CBPOLICYD] NOTICE: Initializing system
modules.
[2012/08/17-15:49:33 - 9022] [CBPOLICYD] NOTICE: System modules initialized.
[2012/08/17-15:49:33 - 9022] [CBPOLICYD] NOTICE: Module load started...
[2012/08/17-15:49:33 - 9022] [CORE] NOTICE:   => Protocol(Postfix): enabled
[2012/08/17-15:49:33 - 9022] [CBPOLICYD] NOTICE: Module load done.
[2012/08/17-15:49:33 - 9022] [CBPOLICYD] DEBUG: Opening syslog, destination
= 'unix', facility = 'mail'.
[2012/08/17-15:49:33 - 9022] [CORE] NOTICE: 2012/08/17-15:49:33 cbp (type
Net::Server::PreFork) starting! pid(9022)
[2012/08/17-15:49:33 - 9022] [CORE] NOTICE: Binding to TCP port 10031 on
host *
[2012/08/17-15:49:33 - 9022] [CORE] WARNING: Group Not Defined.  Defaulting
to EGID '0 10 6 4 3 2 1 0'
[2012/08/17-15:49:33 - 9022] [CORE] WARNING: User Not Defined.  Defaulting
to EUID '0'
[2012/08/17-15:49:33 - 9022] [CORE] INFO: Setting up serialization via flock
[2012/08/17-15:49:33 - 9022] [CORE] INFO: Beginning prefork (4 processes)
[2012/08/17-15:49:33 - 9022] [CORE] INFO: Starting "4" children
[2012/08/17-15:49:33 - 9024] [CORE] DEBUG: Child Preforked (9024)
[2012/08/17-15:49:33 - 9024] [CBPOLICYD] DEBUG: Starting up caching engine
[2012/08/17-15:49:33 - 9025] [CORE] DEBUG: Child Preforked (9025)
[2012/08/17-15:49:33 - 9025] [CBPOLICYD] DEBUG: Starting up caching engine
[2012/08/17-15:49:33 - 9026] [CORE] DEBUG: Child Preforked (9026)
[2012/08/17-15:49:33 - 9026] [CBPOLICYD] DEBUG: Starting up caching engine
[2012/08/17-15:49:33 - 9022] [CORE] DEBUG: Parent ready for children.
[2012/08/17-15:49:33 - 9027] [CORE] DEBUG: Child Preforked (9027)
[2012/08/17-15:49:33 - 9027] [CBPOLICYD] DEBUG: Starting up caching engine
-----------------------

Any idea why module quota is not getting loaded?

The details of packages:

* Perl - 5.8.8
* DB - mysql
* Net::Server - perl-Net-Server-0.97-1.el5.rf
* Net::CIDR - perl-Net-CIDR-0.13-2.el5
* Config::IniFiles - perl-Config-IniFiles-2.72-1.el5
* Cache::FastMmap - perl-Cache-FastMmap-1.34-5.el5
* cluebringer : v2.0.11

Have attached cluebringer.conf file for your reference.

There is no error in the log or any were, so I am not sure how to trouble
shoot this and I am nowhere now. Please let me know any clue or any other
valuable information, so that I can proceed further.

Also please let me know if you need more information.

Thanks in advance.


-- 
Regards,
Soumya T R

<http://poornam.com>
"I like the dreams of the future better than the history of the past."
$ cat /etc/policyd/cluebringer.conf
#
# Server configuration
#
[server]

# Protocols to load
protocols=<<EOT
Postfix
#Bizanga
EOT

# Modules to load
modules=<<EOT
Core
#AccessControl
#CheckHelo
#CheckSPF
#Greylisting
Quotas
EOT

# User to run this daemon as
#user=
#group=

# Filename to store pid of parent process
#pid_file=/var/run/cbpolicyd.pid

# Uncommenting the below option will prevent cbpolicyd going into the background
#background=no

# Preforking configuration
#
# min_server            - Minimum servers to keep around
# min_spare_servers     - Minimum spare servers to keep around ready to 
#                         handle requests
# max_spare_servers     - Maximum spare servers to have around doing nothing
# max_servers           - Maximum servers alltogether
# max_requests          - Maximum number of requests each child will serve
#
# One may want to use the following as a rough guideline...
# Small mailserver:  2, 2, 4, 10, 1000
# Medium mailserver: 4, 4, 12, 25, 1000
# Large mailserver: 8, 8, 16, 64, 1000
#
#min_servers=4
#min_spare_servers=4
#max_spare_servers=12
#max_servers=25
#max_requests=1000



# Log level:
# 0 - Errors only
# 1 - Warnings and errors
# 2 - Notices, warnings, errors
# 3 - Info, notices, warnings, errors
# 4 - Debugging 
log_level=4

# File to log to instead of stdout
log_file=/var/log/cbpolicyd.log

# Log destination for mail logs...
# main          - Default. Log to policyd's main log mechanism, accepts NO args
# syslog        - log mail via syslog
#                       format: log_mail=facility@method,args
#
# Valid methods for syslog:
# native        - Let Sys::Syslog decide
# unix          - Unix socket
# udp           - UDP socket
# stream        - Stream (for Solaris)
#
# Example: unix native
#log_mail=mail@syslog:native
#
# Example: unix socket 
#log_mail=mail@syslog:unix
#
# Example: udp
#log_mail=mail@syslog:udp,127.0.0.1
#
# Example: Solaris 
#log_mail=local0@syslog:stream,/dev/log
log_mail=maillog

# Things to log in extreme detail
# modules       - Log detailed module running information
# tracking      - Log detailed tracking information
# policies      - Log policy resolution
# protocols     - Log general protocol info, but detailed
# bizanga       - Log the bizanga protocol
#
# There is no default for this configuration option. Options can be
# separated by commas. ie. protocols,modules
#
log_detail=modules,protocols,policies

# IP to listen on, * for all
#host=*

# Port to run on
port=10031

# Timeout in communication with clients
#timeout=120

# cidr_allow/cidr_deny
# Comma, whitespace or semi-colon separated. Contains a CIDR block to 
# compare the clients IP to.  If cidr_allow or cidr_deny options are 
# given, the incoming client must match a cidr_allow and not match a 
# cidr_deny or the client connection will be closed.
#cidr_allow=0.0.0.0/0
#cidr_deny=



[database]
#DSN=DBI:SQLite:dbname=policyd.sqlite
DSN=DBI:mysql:database=policyd;host=localhost
Username=cluebringer
Password=
#

# What do we do when we have a database connection problem
# tempfail      - Return temporary failure
# pass          - Return success
bypass_mode=pass

# How many seconds before we retry a DB connection
bypass_timeout=30



# Access Control module
[AccessControl]
enable=0


# Greylisting module
[Greylisting]
enable=0


# CheckHelo module
[CheckHelo]
enable=0


# CheckSPF module
[CheckSPF]
enable=0


# Quotas module
[Quotas]
enable=1

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to