Thanks for your answer.

Nigel Kukard escribió:
>> Hi!
>> I don't know if it's a configuration problem or what.
>> I get this at postfix log:
>>
>> amavis[6247]: (06247-01) (!!)[TRACKING] ERROR: No session data
>> amavis[6247]: (06247-01) (!)policyd/process_policy: No session data found
>>
>>   
>>     
> This means the message ID cannot be found in the session tracking table,
> if you start policyd and the mail is already queued to be processed by
> amavis, you would get his error, in this case its normal. You should not
> get it always.
>   

I'm checking and I realize that I get this error always.

>   
>> I suppose policyd is not working. I have last svn version of cluebringer 
>> with default configuration.
>>
>> I get this at policyd log when starting:
>>
>>
>> [2009/02/19-18:25:36 - 6187] [CORE] NOTICE: Process Backgrounded
>> [2009/02/19-18:25:36 - 6187] [CBPOLICYD] NOTICE: Policyd v2 / 
>> Cluebringer - v2.1.0a
>> [2009/02/19-18:25:36 - 6187] [CBPOLICYD] NOTICE: Initializing system 
>> modules.
>> [2009/02/19-18:25:36 - 6187] [CBPOLICYD] NOTICE: System modules initialized.
>> [2009/02/19-18:25:36 - 6187] [CBPOLICYD] NOTICE: Module load started...
>> [2009/02/19-18:25:36 - 6187] [CORE] NOTICE:   => AccessControl: enabled
>> [2009/02/19-18:25:36 - 6187] [CORE] NOTICE:   => CheckHelo: enabled
>> [2009/02/19-18:25:36 - 6187] [CORE] NOTICE:   => Greylisting: enabled
>> [2009/02/19-18:25:36 - 6187] [CORE] NOTICE:   => Quotas: enabled
>> [2009/02/19-18:25:36 - 6187] [CORE] NOTICE:   => Accounting: enabled
>> [2009/02/19-18:25:36 - 6187] [CORE] NOTICE:   => Protocol(Postfix): enabled
>> [2009/02/19-18:25:36 - 6187] [CORE] NOTICE:   => Protocol(Bizanga): enabled
>>   
>>     
> You should see Amavis here .... rather odd, can you paste your config
> file please?
>   

Here my config file.

At last lines :
[Amavis]
enable=1
was added by me.

------------------------------------------------------------------
#
# Server configuration
#
[server]

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

# Modules to load
modules=<<EOT
Core
AccessControl
CheckHelo
CheckSPF
Greylisting
Quotas
Accounting
Amavis
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          - log to policyd's main log mechanism
# maillog       - log mail via syslog
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=

# 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:mysql:database=policyd;host=localhost
Username= *******
Password=*****

bypass_mode=tempfail

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


# Greylisting module
[Greylisting]
enable=1
#training_mode=1
# CheckHelo module
[CheckHelo]
enable=1


# CheckSPF module
[CheckSPF]
enable=0


# Quotas module
[Quotas]
enable=1


# Accounting module
[Accounting]
enable=1


# Amavis module
[Amavis]
enable=1
--------------------------------------------------------
>
>   
>> [2009/02/19-18:25:36 - 6187] [CBPOLICYD] NOTICE: Module load done.
>> [2009/02/19-18:25:36 - 6187] [CBPOLICYD] NOTICE: Session tracking is 
>> ENABLED.
>> [2009/02/19-18:25:36 - 6187] [CBPOLICYD] DEBUG: Opening syslog.
>> [2009/02/19-18:25:36 - 6187] [CBPOLICYD] DEBUG: Syslog open.
>>
>> And when amavis get a message the log show me that:
>>
>> [2009/02/19-18:26:30 - 6189] [POLICIES] INFO: [ID:1/Name:Default]: 
>> Source matching result: matched=1
>> [2009/02/19-18:26:30 - 6189] [POLICIES] INFO: [ID:2/Name:Default 
>> Outbound]: Source matching result: matched=0
>> [2009/02/19-18:26:30 - 6189] [POLICIES] INFO: [ID:3/Name:Default 
>> Inbound]: Source matching result: matched=1
>> [2009/02/19-18:26:30 - 6189] [POLICIES] DEBUG: [ID:3/Name:Default 
>> Inbound]=>(group:internal_domains): Destination group result: matched=0
>> [2009/02/19-18:26:30 - 6189] [POLICIES] INFO: [ID:4/Name:Default 
>> Internal]: Source matching result: matched=0
>> [2009/02/19-18:26:30 - 6189] [POLICIES] INFO: [ID:5/Name:Test]: Source 
>> matching result: matched=0
>>
>> I have Amavis module enabled al cluebringer.conf but it doesn't showed 
>> at policyd log.
>>   
>>     
> It should show up when starting policyd at the very least.
>
> -N
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.policyd.org/mailman/listinfo/users
>   


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

Reply via email to