1

Topic: Postfix-Policyd start problem

I have problem with start postfix-policyd
Sep 17 12:49:48 xyzy postfix-policyd: starting policyd v1.82
Sep 17 12:49:48 xyzy postfix-policyd: connecting to mysql database: localhost
Sep 17 12:49:48 xyzy postfix-policyd: mysql_real_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I change
# Required-Start:    $remote_fs $syslog  to
# Required-Start:    $remote_fs $syslog $mysql

and i have always the same problem

2

Re: Postfix-Policyd start problem

You should at least tell us some basic info about your iRedMail server:

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====

If you use 'localhost' as mysql server address, it will try to connect to MySQL server via local socket file. If you use '127.0.0.1', it will connect via IP network instead of local socket file.

3

Re: Postfix-Policyd start problem

OK its work but now i got always per 2 hour
Cron <policyd@xyzy> /usr/lib/postfix-policyd/cleanup -c /etc/postfix-policyd.conf (failed)
fopen(): Permission denied: /etc/postfix-policyd.conf

iRedMail version: iRedMail-0.8.5
Store mail accounts in which backend : MySQL
Debiana 6.0 (squeeze)