1

Topic: Error in /var/log/iredapd-rr.log

Hi,

Following is the error in iredapd-rr.log

DEBUG Apply plugin (sql_alias_access_policy).
DEBUG Error while apply plugin (<module 'sql_alias_access_policy' from '/opt/iredapd/src/plugins-rr/sql_alias_access_policy.pyc'> ): restriction() takes exactly 4 non-keyword arguments (3 given)
DEBUG Final action: None.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Error in /var/log/iredapd-rr.log

Plugin 'sql_alias_access_policy' is used in iRedAPD, not iRedAPD-rr. So please remove this plugin from /opt/iredapd/etc/iredapd-rr.ini and restart it.

3

Re: Error in /var/log/iredapd-rr.log

Hi ZhangHuangbin,

I removed it from iredapd-rr.ini and restarted it.

I am getting following error now :

2012-04-05 17:59:57 DEBUG Error: No option 'plugins' in section: 'mysql'. Use default action instead: DUNNO

4

Re: Error in /var/log/iredapd-rr.log

Shashank wrote:

2012-04-05 17:59:57 DEBUG Error: No option 'plugins' in section: 'mysql'. Use default action instead: DUNNO

As it says, you don't have option 'plugins =' in section '[mysql]'. Please add it manually.
For example:

[mysql]
...
plugins = xxx

If you're not sure how to do it, please paste your iredapd-rr.ini here.

5

Re: Error in /var/log/iredapd-rr.log

Following is the iredapd-rr.ini :

[general]
# Listen address and port.
listen_addr = 127.0.0.1
listen_port = 7778

# Run as a low privileged user.
# If you don't want to create one, you can try 'nobody'.
run_as_user = iredapd

# Background/daemon mode: yes, no.
# Run iRedAPD as daemon, detach iredapd from terminal.
run_as_daemon = yes

# Path to pid file.
pid_file        = /var/run/iredapd-rr.pid

# Log type: file.
# Set 'log_file = /dev/null' if you don't want to keep the log.
log_type        = file
log_file        = /var/log/iredapd-rr.log

# Log level: info, error, debug.
log_level       = debug

# Backend: ldap, mysql.
backend = mysql

[mysql]
# For MySQL backend only.
server = 127.0.0.1
db = vmail
user = username
password = password
alias_table = alias

# Enabled plugins.
#   - Plugin name is file name which placed under 'src/plugins/' directory.
#   - Plugin names MUST be seperated by comma.
#plugins = sql_alias_access_policy

6

Re: Error in /var/log/iredapd-rr.log

Shashank wrote:

#plugins = sql_alias_access_policy

You see the '#' in red? Please remove it and restart iRedAPD service.