"cleanup: fatal: didn't find priority 'LOG_IF00', exiting" - such a message (usually in doubles - twice a time) pops up in my Debian console from time to time. What can that mean and how do I fix this? Google says this is something related to postfix-policyd and syslog.

Steps to reproduce:

  1. Install Debian 5.0.5.
  2. Install and configure iRedMail 0.6.0 with OpenLDAP.
  3. Add unstable and experimental repositories to apt sources list.
  4. Upgrade and dist-upgrade until there is nothing more to upgrade.
  5. Fix errors in dovecot config (there are some parameters changed in the new version).
  6. Then everything runs, but does not work actually an the above message pops up from time to time.
  • Could you post the link to your Google search. The only thing I find points to this question. Jul 14 '10 at 5:20
  • Thank you for interest in helping, Dennis. I've updated this in the question now (click on 'Google says' and look at the bottom of the results page).
    – Ivan
    Jul 14 '10 at 7:37
  • Are you using postfix-policyd? If so, what version?
    – earl
    Jul 18 '10 at 19:27

Look at your log_mail variable in the postfix-policyd configuration. Does go something like this?


If my guess is right, just change that "ifoo" to "info" and you'll be set.


My guess is that you have a syntax error in your greylist perl script for postfix. Make sure the syslog line in that script looks like this:

syslog $syslog_priority, "request age %d", $now - $time_stamp if $verbose;

You should be able to locate your greylist per script from an entry in /etc/postfix/master.cf file.


The line in question appears to come from an old version of policyd:

logmessage("fatal: didn't find priority '%s', exiting\n", token);

IFOO doesn't match any of the known log levels, so it terminates; it probably meant INFO. My suggestion is to install ack-grep and look in /etc for a config file containing IFOO. Then you can determine whether it came from Debian directly, iRedMail directly, or was munged in a script. Given the sorry state of the iRedMail installer, I'd probably look there first.

Once you find the file, change it to INFO and you could be fine.


FYI, this is a spacing mistake in two files, not just one (as other threads on the internet have identified, depending on your build):

in both files:


edit the line:


removing the spaces, so it reads:


in both files. then, restart services:

/etc/init.d/postfix restart
/etc/init.d/postfix-policyd restart

then you can test by running:

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

and it should no longer give the error

"cleanup: fatal: didn't find priority 'LOG_IFOO', exiting"

Hope this helps!

Also as a side-note, this affected me on my Amazon EC2 instance, when I was running Debian 5.0 "Lenny" and started happening after I upgraded it to Debian 6.0.6 "Squeeze". It didn't seem to give me any trouble with functionality, it was just running in log files and showing up in the console every ~10 minutes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.