[Tfug] Postfix - MySQL probllem

Gontran Zepeda gontran at gontran.net
Tue Jul 20 12:05:45 MST 2004


% John E . Morrow wrote:
> 
> postmap -q joeblow at virtual.dom mysql:/etc/postfix/database.cf
> 
> it responds correctly with the location of the mail directory for 
> joeblow.
> 
> Furthermore, if I send mail from a local user to joeblow at virtual.dom, 
> it goes through just fine. Here's the problem:
> 
> If I send mail from the outside, it doesn't work. The mail server sees 
> the message, tries to lookup the address in the database, but can't. I 
> get some errors in syslog that look like this:
> 
> Jul 20 06:43:17 cleverMailMachineName postfix/smtpd[15561]: warning: 
> connect to mysql server localhost: Can't connect to local MySQL server 
> through socket '/var/run/mysqld/mysqld.sock' (2)

Because of this, although I don't know your specific setup in /etc/postfix, I
would suggest you verify the socket specification in all of your mysql query
*.cf files there.  Even though database.cf is apparantly OK.

Yours,
-- 
Gontran


More information about the tfug mailing list