View Single Post
  #7  
Old 17th July 2010, 21:54
useo6 useo6 is offline
Junior Member
 
Join Date: Jul 2010
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Policyd is running, but it seems doesn't work correctly. I created a quota by using the web administration of Policyd with a limit of 1 message/hour (for testing purposes) but I can send and receive as many e-mails as I want. The logfile is also empty (the start sequence is the only entry). It seems that postfix completely ignores policyd.
I also added

Quote:
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031
to main.cf which looks like this:

Quote:
[...]
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:10031
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
[...]
Content of policyd logfile:

Quote:
[2010/07/17-20:45:45 - 5972] [CORE] NOTICE: 2010/07/17-20:45:45 Server closing!
[2010/07/17-20:45:45 - 6010] [CORE] NOTICE: Process Backgrounded
[2010/07/17-20:45:45 - 6010] [CBPOLICYD] NOTICE: Policyd v2 / Cluebringer - v2.0.8
[2010/07/17-20:45:45 - 6010] [CBPOLICYD] NOTICE: Initializing system modules.
[2010/07/17-20:45:45 - 6010] [CBPOLICYD] NOTICE: System modules initialized.
[2010/07/17-20:45:45 - 6010] [CBPOLICYD] NOTICE: Module load started...
[2010/07/17-20:45:45 - 6010] [CORE] NOTICE: => AccessControl: enabled
[2010/07/17-20:45:45 - 6010] [CORE] NOTICE: => CheckHelo: enabled
[2010/07/17-20:45:45 - 6010] [CORE] NOTICE: => CheckSPF: enabled
[2010/07/17-20:45:45 - 6010] [CORE] NOTICE: => Greylisting: enabled
[2010/07/17-20:45:45 - 6010] [CORE] NOTICE: => Quotas: enabled
[2010/07/17-20:45:45 - 6010] [CORE] NOTICE: => Protocol(Postfix): enabled
[2010/07/17-20:45:45 - 6010] [CORE] NOTICE: => Protocol(Bizanga): enabled
[2010/07/17-20:45:45 - 6010] [CBPOLICYD] NOTICE: Module load done.
[2010/07/17-20:45:45 - 6010] [CORE] NOTICE: 2010/07/17-20:45:45 cbp (type Net::Server::PreFork) starting! pid(6010)
[2010/07/17-20:45:45 - 6010] [CORE] NOTICE: Binding to TCP port 10031 on host *
[2010/07/17-20:45:45 - 6010] [CORE] WARNING: Group Not Defined. Defaulting to EGID '0 10 6 4 3 2 1 0'
[2010/07/17-20:45:45 - 6010] [CORE] WARNING: User Not Defined. Defaulting to EUID '0'
Looking forward to hearing from anyone

Edit:\\ It's working - I forgot to activate the quota-limit and I replaced the old version (2.0.8) with the actual version. When I send an email by using thunderbird or outlook it is working correctly. But, when I try sending with the mail()-function of php, I can send as much as I want. Is there any way to limit this function using policyd?

Last edited by useo6; 18th July 2010 at 19:14.
Reply With Quote