Dear Nigel,
AMAVIS is enabled in the cluebringer.conf.
This is my cluebringer.conf:
------------------------/etc/cluebringer.conf------------------------------------
#
# Server configuration
#
[server]

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

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

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

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

# Cache file
#cache_file=/var/run/cbpolicyd/cache

# 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/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
# cache         - Log cache usage on client shutdown
#
# There is no default for this configuration option. Options can be
# separated by commas. ie. protocols,modules
#
#log_detail=

# Protocol to use "tcp" or "unix", defaults to "tcp"
#proto=tcp

# IP to listen on, * for all. Blank for unix sockets
#host=*

# Port to run on, in the case of a unix socket it would be the path
# eg. 10031
# eg. /var/run/cbpolicyd/policyd.sock
#port=10031

# Timeout in communication with clients
# Idle timeout in postfix defaults to 1015s (active connection)
#timeout_idle=1015
# Busy sockets in postfix defaults to 100s
#timeout_busy=115

# 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=****
Password=********************
#

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

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

# Table prefix to use, be sure to generate the schema with the table
# prefix aswell!
#table_prefix=


# Access Control module
[AccessControl]
enable=1


# Accounting module
[Accounting]
enable=1


# Amavis module
[Amavis]
enable=1 # Disabled by default


# CheckHelo module
[CheckHelo]
enable=1


# CheckSPF module
[CheckSPF]
enable=1


# Greylisting module
[Greylisting]
enable=1
#training_mode=1
#defer_message=Greylisting in effect, please come back later
#blacklist_message=Greylisting in effect, sending server blacklisted


# Quotas module
[Quotas]
enable=1
------------------------------------------------------------------------------------------------


But on start up /var/log/cbpolicyd/cbpolicyd.log shows that Amavis is still 
disabled:
------------------------/var/log/cbpolicyd/cbpolicyd.log-----------------------------------------
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE: Process Backgrounded
[2013/11/08-10:18:19 - 2633] [CBPOLICYD] NOTICE: Policyd v2 / Cluebringer - 
v2.1.x-201310261831
[2013/11/08-10:18:19 - 2633] [CBPOLICYD] NOTICE: Initializing system modules.
[2013/11/08-10:18:19 - 2633] [CBPOLICYD] NOTICE: System modules initialized.
[2013/11/08-10:18:19 - 2633] [CBPOLICYD] NOTICE: Module load started...
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE:   => AccessControl: enabled
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE:   => Accounting: enabled
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE:   => Amavis: disabled
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE:   => CheckHelo: enabled
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE:   => CheckSPF: enabled
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE:   => Greylisting: enabled
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE:   => Quotas: enabled
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE:   => Protocol(Postfix): enabled
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE:   => Protocol(Bizanga): enabled
[2013/11/08-10:18:19 - 2633] [CBPOLICYD] NOTICE: Module load done.
[2013/11/08-10:18:19 - 2633] [CBPOLICYD] NOTICE: Session tracking is ENABLED.
[2013/11/08-10:18:19 - 2633] [CBPOLICYD] DEBUG: Opening syslog, destination = 
'native', facility = 'ARRAY(0x1502ab8)'.
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE: 2013/11/08-10:18:19 cbp (type 
Net::Server::PreFork) starting! pid(2633)
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE: Resolved [*]:10031 to [::]:10031, 
IPv6
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE: Not including resolved host 
[0.0.0.0] IPv4 because it will be handled by [::] IPv6
[2013/11/08-10:18:19 - 2633] [CORE] NOTICE: Binding to TCP port 10031 on host 
:: with IPv6
[2013/11/08-10:18:19 - 2633] [CORE] INFO: Setting up serialization via flock
------------------------------------------------------------------------------------------------


Thanks for help

regards
Steffen

> Gesendet: Freitag, 08. November 2013 um 09:31 Uhr
> Von: "Nigel Kukard" <[email protected]>
> An: [email protected]
> Betreff: Re: [policyd-users] Optional Amavisd Support - BCC rule not working?
>
> On 11/07/2013 05:55 PM, Steffen Wegner wrote:
> > Hi,
> > sorry. Let me sum up all required info:
> >
> > My problem: 
> > ============
> > I installed the Optional Amavisd Support following the guide on 
> > http://wiki.policyd.org/installing.
> > I wanted to test if the new features are working by creating a very simple 
> > rule to 'BCC' all in- and outgoing mails. 
> > But it's not working.
> >
> >
> > How did I patch:
> > ================
> > I did patch the "/usr/sbin/amavisd-new" with 
> > "amavisd-new-2.6.4_policyd-201003290852.patch".
> > The result was:
> > Hunk #1 succeeded at 8506 (offset 50 lines).
> > Hunk #2 succeeded at 10405 (offset 51 lines).
> >
> > "amavisd-new" (new size:1171376) and  
> > "amavisd-new.orig" (size 1170798)
> >
> > In 'amavisd-policyd.pm' I do have the following database configuration:
> > -------------------amavisd-policyd.pm-----------------
> > ...
> > my $DB_dsn = "DBI:mysql:database=policyd;host=localhost";
> > my $DB_user = "amavisuser";
> > my $DB_pass = "**********";
> > my $DB_prefix = "";
> > ...
> > -----------------------------------------------------
> 
> Above is right.
> 
> 
> >
> >
> > My new Amavis related rules in cluebringer look like this:
> > ===========================================================
> > "Amavis Rule"(Disabled:no):
> > ---------------------------------------------------
> > Link to policy: "Default"
> > BCC To: "anymail at any.de"
> > ---------------------------------------------------
> >
> > Policy "Default" (Disabled:no)
> >
> > Policy "Default" - Members (Disabled:no):
> > ---------------------------------------------------
> > Source: any
> > Destination: any
> > ---------------------------------------------------
> > Following the logic of this rule set I should receive a BCC-mail for every 
> > out- and incomming mail.
> > But it is not working. All other policyd rules (e.g. quotas) are working. 
> 
> Looks right.
> 
> >
> >
> > My logfiles when I do send an outgoing mail:
> > =============================================
> > --------------/var/log/cbpolicyd/cbpolicyd.log---on 
> > log_level=4----------------------
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE: Process Backgrounded
> > [2013/11/07-18:25:14 - 2123] [CBPOLICYD] NOTICE: Policyd v2 / Cluebringer - 
> > v2.1.x-201310261831
> > [2013/11/07-18:25:14 - 2123] [CBPOLICYD] NOTICE: Initializing system 
> > modules.
> > [2013/11/07-18:25:14 - 2123] [CBPOLICYD] NOTICE: System modules initialized.
> > [2013/11/07-18:25:14 - 2123] [CBPOLICYD] NOTICE: Module load started...
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE:   => AccessControl: enabled
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE:   => Accounting: enabled
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE:   => Amavis: disabled
> 
> Did you enable amavis in your policyd config file?
> 
> 
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE:   => CheckHelo: enabled
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE:   => CheckSPF: enabled
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE:   => Greylisting: enabled
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE:   => Quotas: enabled
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE:   => Protocol(Postfix): enabled
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE:   => Protocol(Bizanga): enabled
> > [2013/11/07-18:25:14 - 2123] [CBPOLICYD] NOTICE: Module load done.
> > [2013/11/07-18:25:14 - 2123] [CBPOLICYD] NOTICE: Session tracking is 
> > ENABLED.
> > [2013/11/07-18:25:14 - 2123] [CBPOLICYD] DEBUG: Opening syslog, destination 
> > = 'native', facility = 'ARRAY(0x15bb038)'.
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE: 2013/11/07-18:25:14 cbp (type 
> > Net::Server::PreFork) starting! pid(2123)
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE: Resolved [*]:10031 to 
> > [::]:10031, IPv6
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE: Not including resolved host 
> > [0.0.0.0] IPv4 because it will be handled by [::] IPv6
> > [2013/11/07-18:25:14 - 2123] [CORE] NOTICE: Binding to TCP port 10031 on 
> > host :: with IPv6
> > [2013/11/07-18:25:14 - 2123] [CORE] INFO: Setting up serialization via flock
> > [2013/11/07-18:25:14 - 2123] [CORE] INFO: Beginning prefork (4 processes)
> > [2013/11/07-18:25:14 - 2123] [CORE] INFO: Starting "4" children
> > [2013/11/07-18:25:14 - 2123] [CORE] DEBUG: Parent ready for children.
> > [2013/11/07-18:25:14 - 2168] [CORE] DEBUG: Child Preforked (2168)
> > [2013/11/07-18:25:14 - 2168] [CBPOLICYD] DEBUG: Starting up caching engine
> > [2013/11/07-18:25:14 - 2169] [CORE] DEBUG: Child Preforked (2169)
> > [2013/11/07-18:25:14 - 2169] [CBPOLICYD] DEBUG: Starting up caching engine
> > [2013/11/07-18:25:14 - 2170] [CORE] DEBUG: Child Preforked (2170)
> > [2013/11/07-18:25:14 - 2170] [CBPOLICYD] DEBUG: Starting up caching engine
> > [2013/11/07-18:25:14 - 2171] [CORE] DEBUG: Child Preforked (2171)
> > [2013/11/07-18:25:14 - 2171] [CBPOLICYD] DEBUG: Starting up caching engine
> > [2013/11/07-18:36:45 - 2171] [CORE] INFO: 2013/11/07-18:36:45 CONNECT TCP 
> > Peer: "[::ffff:127.0.0.1]:51105" Local: "[::ffff:127.0.0.1]:10031"
> > [2013/11/07-18:36:45 - 2123] [CORE] INFO: Starting "1" children
> > [2013/11/07-18:36:45 - 2278] [CORE] DEBUG: Child Preforked (2278)
> > [2013/11/07-18:36:45 - 2278] [CBPOLICYD] DEBUG: Starting up caching engine
> > [2013/11/07-18:36:45 - 2171] [CBPOLICYD] INFO: Got request #1
> > [2013/11/07-18:36:45 - 2171] [CBPOLICYD] INFO: Got request #2 (pipelined)
> > [2013/11/07-18:36:47 - 2123] [CORE] INFO: Starting "1" children
> > [2013/11/07-18:36:47 - 2169] [CORE] INFO: 2013/11/07-18:36:47 CONNECT TCP 
> > Peer: "[::ffff:127.0.0.1]:51120" Local: "[::ffff:127.0.0.1]:10031"
> > [2013/11/07-18:36:47 - 2309] [CORE] DEBUG: Child Preforked (2309)
> > [2013/11/07-18:36:47 - 2309] [CBPOLICYD] DEBUG: Starting up caching engine
> > [2013/11/07-18:36:47 - 2169] [CBPOLICYD] INFO: Got request #1
> >
> > --------------------------------------------------------------------------------------
> > ?Amavis support seems to be disabled?
> 
> Should be an option in the config file to enable it, lets get this
> sorted first then we can continue if it still doesn't work
> 
> 
> -- 
> -N
> 
> 
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
> 

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

Reply via email to