These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for SquirrelMail - Login Error on the new forum.
I get the error below trying to login to Squirrelmail.
Anyone know the fix for this. I am using Ver 1.5.
Error connecting to IMAP server: localhost.
DoveCot is running, I opened up port 143 also, although running as localhost should not need?
service dovecot status
Thanks
Found fix for this:
The was no entry in hosts file to resolve localhost to 127.0.0.1
I could telnet 127.0.0.1 25
but not telnet localhost 25
So this entry in hosts file fixes issue:
127.0.0.1 localhost
Michael,
What distribution are you running? Every Red Hat-based distribution I have seen contains the following by default in /etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
It should be a standard on all systems to have localhost pre-defined. Even Windows has this in its hosts file, located at C:Windowssystem32driversetchosts.
Alan,
Its Fedora 5. I know its a bad idea to remove that line, but I never touched hosts file.
It was a standard intstall, so not sure what the deal was. I was messing with Dovecot and Postfix settings for hours, not even thinking to check the most ovbvious.
Lesson learned...again!
Hmm, that is weird. The example I posted (including the comment lines verbatim) was also from a standard install of FC5, so it should have been present on your system too. You may want to run an RPM verification (rpm -Va) on all packages on your system, and look for files that are missing or changed. Note that you may get a bunch of false positives with this (i.e. files that really should be missing or changed because they were reconfigured, etc.), but it will give you an idea if you have a more widespread system problem with your installation.
I found this thread with Squirrelmail login error. I get the following error when typing say the username of: admin.keithnet.us. Also, I don't understand why I would receive this error. Any ideas?
SquirrelMail version 1.4.21 By the SquirrelMail Project Team ERROR Error connecting to IMAP server: localhost. 0 : php_network_getaddresses: getaddrinfo failed: Name or service not known
Go to the login page
Please note the PHP error. I am using the Squirrelmail installer script. That doesn't appear to be an issue. Nmap shows imap port as open, along with pop3. Dovecot is running. If I run the squirrelmail configtest.php script, I get: SquirrelMail configtest This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script.
SquirrelMail version: 1.4.21 Config file version: 1.4.0 Config file last modified: 02 January 2012 13:27:46
Checking PHP configuration... PHP version 5.3.3 OK. Running as N/A(N/A) / N/A(N/A) display_errors: error_reporting: 22527 variables_order OK: GPCS. PHP extensions OK. Dynamic loading is disabled.
Checking paths... Data dir OK. Attachment dir OK.
I'm using CentOS6, Virtualmin Professional installed. I just thought I'd post this. Also, when I looked at the admin mailbox information (admin being the user in this case) but could be any other user, zero logins have been recorded. Is there a bug in the squirrelmail installer script? Should I try recreating sql databases, etc? Any thoughts would help. Before anyone asks, I have a localhosts line, and that is not the problem at all. Why am I getting this php getaddr or whatever that is on top of the error? I don't understand what's going on. Thanks.
Just wanted to update this posting. Effectively, you need to be careful about some DNS settings under the webmin/networking/DNS Host client section. Might have missed that exact section, but you will find a "DNS resolution order" set of boxes. The first box should be set for "Hosts file." The second box after that, should be set to DNS. Changing the first box from "hosts file" to anything else, causes you're host files entries to be rather pointless. This also causes programs like Squirrelmail, that need to know what your hostname is, to not work properly. Hopefully this helps someone. As an example localhost entry, you might want something like the following: 127.0.0.1 localhost.localdomain localhost For any IPV6 entries, you should be abel to make that work as well. I won't cover that discussion hear, other than to say that if you're experiencing problems, check /etc/hosts first, and then if that still fails and you keep getting this login error, check what I've mentioned above to this old thread. This thread might be old, but I still think can be quite useful. See if any of the above helps. Should this fail, and you still need help feel free to ask for help onthe forums, or email me directly if I can be of remote assistance from my location here, by sending an email directly to: keithint1234@GMail.com One of my primary purposes is to try to help as many newbie users as possible. That doesn't mean I can help everyone, after all I'm human. But it means that I'll do what I can, or suggest a secondary resource. Thanks!