1

Topic: policyd not found

Hi,
I'm new to iRedMail. Yesterday I installed version 0.6.0 to my Ubuntu 9.10 Karmic box. It works quite well, I can send and receive mail for multiple domains, but there are 2 type of warnings sent to my mailbox:


Subject > Cron <policyd@mail01> /usr/sbin/postfix-policyd-cleanup -c /etc/postfix-policyd.conf
Body     > /bin/sh: /usr/sbin/postfix-policyd-cleanup: not found

Subject > Cron <policyd@mail01> /usr/sbin/postfix-policyd-cleanup -c /etc/postfix-policyd_sender_throttle.conf
Body     > /bin/sh: /usr/sbin/postfix-policyd-cleanup: not found

I check the filesystem, I can't find any of those files mentioned in the warning email:
/usr/sbin/postfix-policyd-cleanup
/etc/postfix-policyd.conf
/etc/postfix-policyd_sender_throttle.conf


Can anyone help me to troubleshoot this problem? Is this a bug in iRedMail 0.6.0?

THank you.

2

Re: policyd not found

check whether have install postfix-policyd

# dpkg --list | grep postfix-policyd
ii  postfix-policyd                     1.82-2ubuntu1                     anti-spam plugin for Postfix

mysql or ldap do you use ?

3 (edited by tkuntario 2010-04-10 00:16:31)

Re: policyd not found

shake wrote:

check whether have install postfix-policyd

# dpkg --list | grep postfix-policyd
ii  postfix-policyd                     1.82-2ubuntu1                     anti-spam plugin for Postfix

mysql or ldap do you use ?

postfix-policyd is installed. The binary '/usr/sbin/postfix-policyd' is present on the system. What the cron can't find is '/usr/bin/postfix-policyd-cleanup' and the policy config files in /etc/.

I use mysql and postfixadmin.

Thank you.

4

Re: policyd not found

Seems path on Ubuntu Karmic is '/usr/lib/postfix-policyd/cleanup':
http://packages.ubuntu.com/karmic/amd64 … d/filelist

5

Re: policyd not found

Fixed in iRedMail, use '/usr/lib/postfix-policyd/cleanup' on Debian & Ubuntu.
Thanks for your report smile

6

Re: policyd not found

ZhangHuangbin wrote:

/usr/lib/postfix-policyd/cleanup

Thanks for the info.

I edited crontab for user 'policyd' to point to new binary location.
Let's see if it's working, I'll post an update in few hours smile

7

Re: policyd not found

You can run it manually:

# /usr/lib/postfix-policyd/cleanup -c /etc/postfix-policyd.conf

And then check its output in /var/log/mail.log.

8

Re: policyd not found

ZhangHuangbin wrote:

/usr/lib/postfix-policyd/cleanup -c /etc/postfix-policyd.conf

I ran it manually. All is well. Thanks for your help.

9

Re: policyd not found

Thanks for your report smile

10

Re: policyd not found

Sorry to up this post, but i've got the "same" problem.
Only thing is that my cron.daily/postfix-policyd point to the good location :

DAEMON_CONFIG="/etc/postfix-policyd.conf"
POLICYD_CLEANUP="/usr/lib/postfix-policyd/cleanup"

And i receive twice the error email every 2 hours... as you can see on the screenshot.
I just can't find where else it could be used.

Post's attachments

email_error.JPG
email_error.JPG 75.7 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

11

Re: policyd not found

May i know your linux distribution and version?

This is defined in cron jobs of user "policyd", you can edit it with below command, try to fix it by using correct file path:

# sudo crontab -e -u policyd

12

Re: policyd not found

I was aware of a the problem since i'm on Ubuntu 9.10, but didn't find how to modify the "good" crontab.
With your command i was able to edit the good one !

Thanks smile

13

Re: policyd not found

OK, can you please paste your crontab jobs here? with below command:

# crontab -l -u policyd

It will list all crontab jobs of user "policyd".