I get 'bad file descriptor' errors with amavisd-new and Razor2
S. Namèche (seb at gaia anet fr) notes:
While using Spamassassin with amavisd-new, Razor2 check is disabled. In debug mode, we have this message :
razor2 check skipped: Bad file descriptor
You have to run "razor-admin -create" as the user who is running the amavisd-new daemon in order to create Razor directory (~/.razor) and to discover Razor servers.
For example :
# su - amavis -c "razor-admin -create"