Hi,

I'm only really using policyd v2 for greylisting at the moment which
seems to be processing correctly. I am however getting an error in my
logs. I suspect it's a config problem either in policyd or in my
amavis but I'm not sure where to look.

Apr  6 16:12:47 gateway amavis[9822]: (09822-01)
policyd/process_policy: Starting
Apr  6 16:12:47 gateway amavis[9822]: (09822-01)
policyd/process_policy: Getting session data from queue ID
'F265213008D'
Apr  6 16:12:47 gateway amavis[9822]: (09822-01) [TRACKING] DEBUG:
Retreiving session data for triplet:
F265213008D/209.85.219.163/[email protected]
Apr  6 16:12:47 gateway amavis[9822]: (09822-01) [POLICIES] INFO:
[ID:1/Name:Default]: Source matching result: matched=1
Apr  6 16:12:47 gateway amavis[9822]: (09822-01) (!)custom
process_policy error: Can't use string ("209.85.219.163") as a HASH
ref while "strict refs" in use at /usr/lib/policyd-2.0/cbp/policies.pm
line 314, <GEN31> line 31.

I'm also getting this error on my test servers. I've set policyd
pretty much back to the defaults. The only non-default setting in
policyd I've got greylisting on the "Default Inbound" policy. The
error only occurs if the incoming message is sent to an alias rather
than a full email address. Any idea where I can start looking for the
cause of this?

Below is the out from "postconf -n" on the gateway test server which
is running policyd.
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
inet_interfaces = all
local_recipient_maps =
local_transport = error:local mail delivery is disabled
mail_owner = postfix
mailq_path = /usr/bin/mailq
message_size_limit = 31240000
mydestination =
myhostname = gateway.rapturist.za.net
mynetworks = 127.0.0.0/8, 10.172.19.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
proxy_read_maps = $relay_domains $relay_recipient_maps
$virtual_alias_maps $transport_maps
queue_directory = /var/spool/postfix
relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains.cf
relay_recipient_maps = proxy:mysql:/etc/postfix/mysql_relay_recipient_maps.cf
remote_header_rewrite_domain = domain.unspecified
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031,
smtpd_recipient_restrictions = reject_non_fqdn_sender,
reject_unknown_sender_domain,   reject_unknown_recipient_domain,
 permit_mynetworks,      reject_unauth_destination,
reject_invalid_hostname,reject_rbl_client dnsbl.rapturist.za.net,
  reject_rbl_client zen.spamhaus.org,     reject_rbl_client
bl.spamcop.net,       reject_rbl_client b.barracudacentral.org,
reject_rbl_client psbl.surriel.com,      check_policy_service
inet:127.0.0.1:10031,      permit
smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql_transport_maps.cf
unknown_local_recipient_reject_code = 550
virtual_alias_maps =
proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_maps.cf
proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
proxy:mysql:/etc/postfix/mysql_virtual_catchall_maps.cf

Thanks
Guy

-- 
Don't just do something...sit there!
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to