LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-30-2009, 06:42 AM   #1
pontiki
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Setting up postfix on ubuntu 8.1


Hello,
We are trying to install postfix on ubuntu 8.1 and we we are following a pretty good guide http://flurdy.com/docs/postfix/edition5.html#conf_data,
unfortunately in the logs of the application when we start up postfix we get the erro 159 Connect Access denied for user 'mail'@'localhost' (using password: YES)
r that mail user cannot connect to the database:
"
But in the authmysqlrc file we haset the user mail and the correct pwd.
If we try to connect through command prompt with user mail to our db it is working:
"sysadmin:/etc/courier$ mysql -u mail -p maildb
Enter password:
Reading table information for completion of table and column names
"
Any ideas why postfix cannot connect to mysql?
Many thanks!!!!!!!!!!!!
 
Old 03-31-2009, 02:52 AM   #2
vlademir
Member
 
Registered: Jan 2009
Location: The Netherlands
Distribution: Centos,Ubuntu,Mandriva,Suse11.1
Posts: 86

Rep: Reputation: 17
Smile

Quote:
Originally Posted by pontiki View Post
Hello,
We are trying to install postfix on ubuntu 8.1 and we we are following a pretty good guide http://flurdy.com/docs/postfix/edition5.html#conf_data,
unfortunately in the logs of the application when we start up postfix we get the erro 159 Connect Access denied for user 'mail'@'localhost' (using password: YES)
r that mail user cannot connect to the database:
"
But in the authmysqlrc file we haset the user mail and the correct pwd.
If we try to connect through command prompt with user mail to our db it is working:
"sysadmin:/etc/courier$ mysql -u mail -p maildb
Enter password:
Reading table information for completion of table and column names
"
Any ideas why postfix cannot connect to mysql?
Many thanks!!!!!!!!!!!!
the reason for this error can be because postfix is running in chroot /var/spool/postfix. So it cannot find the unix socket for MySQL.

If you have the option to run mysql on 127.0.0.1 or on another IP, simply go to;

Quote:
/etc/postfix
run;

Quote:
grep localhost *
and replace all localhost to 127.0.0.1 or the IP in all files starting with mysql-virtual.

Please report if worked for you
 
  


Reply

Tags
postfix, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What may be the problem in the setting of POSTFIX sarada Linux - Software 0 03-20-2006 02:54 AM
Setting up SpamAssassin with POSTFIX wfernley Linux - Software 1 11-29-2005 07:51 AM
Setting up Postfix and POP3 amdathlonboy Linux - Networking 1 06-05-2004 09:38 AM
setting up Postfix and POP tarballed Linux - Networking 1 07-25-2003 02:14 AM
setting up pop3 with postfix brendan911 Linux - Software 0 08-02-2002 11:02 PM


All times are GMT -5. The time now is 03:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration