Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mail server and mysql issue [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Thu Jul 21, 2005 10:20 pm    Post subject: mail server and mysql issue [solved] Reply with quote

I registered a domain name recently and I'm sort've using the brute-force method to make myself finally knuckle-down and become more geek.

I've followed the http://gentoo-wiki.com/HOWTO_Apache2_with_PHP_MySQL as well as the http://gentoo-wiki.com/HOWTO_Email_Virtual_Hosting_with_Courier_and_MySQL

I haven't had any problems that couldn't be figured out with enough backspacing. =/

However, I've got the daemons up and running alright but when I try to log in with Thunderbird, I get a "temporary problem" message with no other explanation. My logs show a FAILED LOGIN along with my username, IP and this:

Code:

Jul 21 17:13:23 [pop3d-ssl] authentication error: Input/output error
Jul 21 17:13:23 [authdaemond] failed to connect to mysql server (server=<mydomain>.com, userid=<myid>): Can't connect to MySQL server on '<mydomain>.com' ($111)


Now ... I'm wondering if I should be convincing my mail server to connect to the mysql server on localhost instead of the domain. Am I headed in the right direction? Either way, I need some help to make it to the next step.

edit: One machine is doing all of this but if it's trying to connect on my domain, could a NAT firewall be the problem? ie., if I wasn't forwarding the port. If so, what port?


Last edited by morphal on Wed Aug 03, 2005 7:34 pm; edited 2 times in total
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 958
Location: Portugal

PostPosted: Thu Jul 21, 2005 11:22 pm    Post subject: Reply with quote

well yes, you need to make it connect to localhost (you should also specify the socket)
Back to top
View user's profile Send private message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Fri Jul 22, 2005 12:08 am    Post subject: Reply with quote

Heh, awesome. How do I do that?
Back to top
View user's profile Send private message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Sat Jul 23, 2005 1:42 am    Post subject: Reply with quote

I know I can't demand help but I can at least try a little to make sure my problem is visible to those who can offer it. =)

/bump
Back to top
View user's profile Send private message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Tue Jul 26, 2005 2:54 pm    Post subject: Reply with quote

help?
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Jul 26, 2005 3:16 pm    Post subject: Reply with quote

Since it's your authdaemon that's complaining in the logs I'd check your /etc/courier/authlib/authmysqlrc You'll like want to set your server to localhost here and maybe a few other variables if you've never touched this file.

Code:

MYSQL_SERVER            localhost


kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Tue Jul 26, 2005 4:46 pm    Post subject: Reply with quote

Alright, I edited that file to include the MYSql admin name and password in addition to pointing it at localhost instead of my domain. However, now, I can't seem to log in to phpmyadmin. I also get the same error message on the client side and my logs just show a failed login and
Code:
authentication error: Input/output error


I'm certainly getting closer but I probably screwed up some important step during the install and setup. I'm tempted to go back and redo the whole thing. Is there an easy way to remove the current instance so I can be absolutely certain that it wont interfere with the next attempt?
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Jul 26, 2005 5:58 pm    Post subject: Reply with quote

IIRC phpmyadmin assumes you have a Mysql account named pma setup with the correct privileges. It'll use that to log into Mysql rather than any other accounts. I believe the ebuild mentions setting this up or the setup page of phpmyadmin. If you've created this account remember you'll need to run flush privileges or restart Mysql in order to activate the access.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Tue Jul 26, 2005 6:23 pm    Post subject: Reply with quote

During the past few days I've been logging into phpmyadmin with an admin name I had set up using the steps from the HowTo. I don't quite know how I screwed it up. I've restarted mysql though. The last post with the errors was after the restart had already been done.

I really should have done this on my test server first. I built one on purpose and I just haven't used it. I get over-eager ... but whatever, this is all a learning experience.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Jul 26, 2005 7:00 pm    Post subject: Reply with quote

It's possible you changed access on the account PHPMyadmin is using to control Mysql. I'd think that PMA needs an account with full access to Mysql rather than just yoru mail database. Can't say I can help much more since I never bothered to install it.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Tue Jul 26, 2005 8:50 pm    Post subject: Reply with quote

Alright, this php/mysql/mail stuff is just for my own education. I can nuke the whole install and start again. What's the best way to get rid of everything? Unmerging of course but what else should be done to make sure I don't end up with remnants from this screwed up instance interfering with the next one?
Back to top
View user's profile Send private message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Fri Jul 29, 2005 5:17 am    Post subject: Reply with quote

poke
Back to top
View user's profile Send private message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Wed Aug 03, 2005 6:56 pm    Post subject: Reply with quote

help?
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Wed Aug 03, 2005 7:32 pm    Post subject: Reply with quote

rm the config files in /etc/ like /etc/postfix/, /etc/sasl2/, etc. Then check for stuff in /etc/conf.d/

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Wed Aug 03, 2005 7:34 pm    Post subject: Reply with quote

Again, you are the awesome.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Aug 03, 2005 7:37 pm    Post subject: Reply with quote

kashani wrote:
It's possible you changed access on the account PHPMyadmin is using to control Mysql. I'd think that PMA needs an account with full access to Mysql rather than just yoru mail database.

Oddly enough, no - the pma account for phpmyadmin is read-only, and only used to present the tables and variables to your browser.
To actually do any sql operations like creating or dropping databases it uses the mysql user you logged into phpmadmin with.

Yes, you did not want to know that.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
morphal
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 183
Location: Houston

PostPosted: Wed Aug 03, 2005 8:06 pm    Post subject: Reply with quote

Actually, that's good to know. I was pretty sure I had done things right but sometimes you just have to take the word of more experienced users. I understand the concept for this stuff but I'm just not familiar with all of the commands and how to properly use them. Learning all of that is exactly what this project is all about. All of this information is useful even if not immediately used.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum