On Fri, 2009-11-06 at 13:26 +0000, Nigel Kukard wrote: > I used V1 for a long time and trying out V2 now. > > Installation went fine. Used the 2.0.8 rpm on a CentOS 5.3 box. > > First test, after disabling "Access Control" and "Quotas" (which i don't > > need) went just fine too. > > But, as soon i have added and enabled a new "SPF Check" or "Greylisting > > Check" the check of the mail fails with this error: > > > > [CBPOLICYD] ERROR: Error running module request_process(): Undefined > > subroutine &cbp::protocols::PROTO_OK called at /us > > r/lib/policyd-2.0/cbp/protocols/Postfix.pm line 126. > > > > Already found something on the list, but did not helped me much to find > > the reason of the error. > > > > > > Thanks für your help > > > > This is very very odd ... can't see how you can be getting that error, > I'll try reproduce on my side with a clean install of CentOS 5.3. You > sure you didn't make any changes to the code? > > -N
I made a fresh test installation this morning where i documented the
steps i made (I don't added basic stuff like service restarts,
postmap, ...)
1. Base CentOS 5.3 64-Bit installation (without any additional packages)
2. Added my default repositories:
- RPMforge
- Silfreed
3. Installing Postfix, MySQL and dependencies for Policyd
yum install httpd php mysql-server postfix php-pdo php-mysql
perl-Cache-FastMmap perl-Config-IniFiles perl-Mail-SPF perl-Net-DNS
perl-Net-Server perl-URI
4. Installing cluebringer
rpm -Uhv cluebringer-2.0.8-1.noarch.rpm
5. Create database
mysqladmin -p create policyd
6. Create database tables
mysql -p --database policyd
< /usr/share/doc/cluebringer-2.0.8/database/policyd.mysql.sql
7. Configure webui.conf (changes only)
$DB_DSN="mysql:host=localhost;dbname=policyd";
$DB_USER="root";
$DB_PASS="foobar";
8. Configure cluebringer.conf (changes only)
[server]
protocols=<<EOT
Postfix
EOT
[database]
DSN=DBI:mysql:database=policyd;host=localhost
Username=root
Password=foobar
[AccessControl]
enable=0
[Quotas]
enable=0
9. Adjust Postfix config (main.cf)
inet_interfaces = all
virtual_alias_maps = hash:/etc/postfix/virtual
local_recipient_maps = $virtual_alias_maps
relay_domains = hash:/etc/postfix/relaydomains
smtpd_recipient_restrictions =
permit_mynetworks,
reject_unauth_destination,
reject_invalid_helo_hostname,
reject_non_fqdn_helo_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
check_policy_service inet:127.0.0.1:10031
10. Add a user to test
useradd cbtest
11. Add user to virtual file ( /etc/postfix/virtual )
[email protected] cbtest
12. Add domain to relay domains ( /etc/postfix/relaydomains )
example.com OK
13. Test it by telnet
telnet 11.22.33.44 25
helo gw.blah.com
250 ics101070.localdomain
mail from: [email protected]
250 2.1.0 Ok
rcpt to: [email protected]
250 2.1.5 Ok (works fine)
14. Open the webui and add f.ex. a SPF rule
Name: Default SPF
Link to policy: Default
Use SPF: Yes
Reject Failed SPF: No
Add SPF Header: Yes
Comment:
15. Test again
telnet 11.22.33.44 25
helo gw.blah.com
250 ics101070.localdomain
mail from: [email protected]
250 2.1.0 Ok
rcpt to: [email protected]
451 4.3.5 Server configuration problem (does not work anymore)
Log:
[2009/11/09-13:02:31 - 4326] [CBPOLICYD] ERROR: Error running module
request_process(): Undefined subroutine &cbp::protocols::PROTO_OK called
at /usr/lib/policyd-2.0/cbp/protocols/Postfix.pm line 126, <_READ> line
7.
Undefined subroutine &cbp::protocols::PROTO_OK called
at /usr/lib/policyd-2.0/cbp/protocols/Postfix.pm line 126, <_READ> line
7.
[2009/11/09-13:02:32 - 4330] [CBPOLICYD] ERROR: Error running module
request_process(): Undefined subroutine &cbp::protocols::PROTO_OK called
at /usr/lib/policyd-2.0/cbp/protocols/Postfix.pm line 126, <_READ> line
11.
Undefined subroutine &cbp::protocols::PROTO_OK called
at /usr/lib/policyd-2.0/cbp/protocols/Postfix.pm line 126, <_READ> line
11.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users
