View Single Post
  #5  
Old 2nd June 2008, 03:04
thecaoticone thecaoticone is offline
Member
 
Join Date: Nov 2007
Posts: 89
Thanks: 1
Thanked 18 Times in 16 Posts
Default

From the error it looks like the first problem is in /etc/postfix/mysql-virtual_domains.cf

I would re-check the entire file for errors. With this setup, voice of experience now talking,
any little typo will cause problems. It is usually the password. It must be identical ( MyPassworD is not the same as mypassword ).


Make sure MySQL is running by issuing the command:


netstat -tap | grep mysql


If it is running you should see something like:


tcp 0 0 localhost.localdo:mysql *:* LISTEN 6177/mysqld



As far as the user and password, you will set that in MySQL, page 1 of the guide. It can be anything you want. This will be your mail adminisrtator.



GRANT SELECT, INSERT, UPDATE, DELETE ON mail.* TO 'who_ever_I_choose'@'localhost' IDENTIFIED BY 'My_Secret_PassWord';
GRANT SELECT, INSERT, UPDATE, DELETE ON mail.* TO 'who_ever_I_choose'@localhost.localdomain' IDENTIFIED BY 'My_Secret_PassWord';
FLUSH PRIVILEGES;



The user and password you specify here is the same user and password you will need to use throughout the entire setup.

It will need to be indentical in the following files:

/etc/postfix/mysql-virtual_domains.cf

/etc/postfix/mysql-virtual_forwardings.cf

/etc/postfix/mysql-virtual_mailboxes.cf

/etc/postfix/mysql-virtual_email2email.cf

/etc/postfix/mysql-virtual_transports.cf

/etc/postfix/mysql-virtual_mailbox_limit_maps.cf

/etc/pam.d/smtp

/etc/postfix/sasl/smtpd.conf

/etc/courier/authmysqlrc




Also make sure that you changed the line in:


/etc/courier/authdaemonrc



from:

authmodulelist="authpam"


to:

authmodulelist="authmysql"



Hope this helped.

Last edited by thecaoticone; 2nd June 2008 at 03:20.
Reply With Quote