Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there any way to prevent squirrelmail from displaying the host name on the error pages?
When user is trying to logging to the squirrelmail server, if the user name or password is wrong, or server is refusing the connection, like wise squirrelmail is displaying those error including the host name.
I'm not finding that in the files you mentioned. Also I have checked all the suspected files. But I cant find anywhere. My problem is when server is unreachable or not ready to receive connections, squirrelmail is showing error like:
connection refused by the server "MY SERVER NAME"... Here I dont want it to display my hostname....
Does it mention anywhere on the page "apache" is this the server you are using? And are you accessing the site via http://hostname/ ? Please post the entire error and maybe a snippet from error_log
Users are accessing the webmail server using the registered host name.
OK. I think this is a built-in variable "$SERVER_NAME" so you will have to change this in the config to have it have another value. Say in virtual host section (ServerName) or if you are using the default server you will need to change the hostname on the whole machine.
Or you can find the file thats spitting the error (just look at the file name in your browser) and open that file. And find the part where is output's servename in php I think it's:
Code:
$_SERVER['SERVER_NAME']
Quote:
Error connecting to IMAP server: <imap server host name>
111: Connection refused
This looks to be as if your IMAP server is not running. Can you access it without squirrelmail? look for a running process:
Code:
ps waux | grep imap
Last edited by micxz; 07-17-2009 at 08:59 PM.
Reason: spelling
In the error page, url pointing redirect.php file. But in that file I'm unable to find any parameter similar to the one you told, i.e. "SERVER_NAME or $_SERVER_NAME" etc."
And as I told you, I know that this error occurs because of the non-availability of the IMAP server. To avoid this error page, I can stop the httpd service if my IMAP is not available so that users will get some other error page like "Page cannot be displayed" etc...
But only thing if we are unaware of the non-availability of the IMAP server then my Squirrelmail is going to divulge the IMAP server information like this.
So only I want to know is there any way to change the error page that Squirrelmail is displaying by default.
I know that this error occurs because of the non-availability of the IMAP server.
Quote:
Originally Posted by haariseshu
But only thing if we are unaware of the non-availability of the IMAP server then my Squirrelmail is going to divulge the IMAP server information like this.
I'm sorry. What I mean is if suppose my IMAP server is going to down as unplanned, like server crash or similar to that end user will get the error page holding the server information. Isn't it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.