LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-14-2010, 08:34 PM   #1
bobby953
Member
 
Registered: Mar 2009
Posts: 41

Rep: Reputation: 15
Problem with Squirrelmail talking to Courier-IMAP on another server


I followed this guide [Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (CentOS 5.3 x86_64)] available at http://www.howtoforge.com/virtual-us...tos-5.3-x86_64

I set up this mail server on 10.10.0.200. I have a production webserver on 10.10.0.54. The gateway for both these servers is at 10.10.0.51. Above this gateway in the hierarchy is a firewall. All the traffic, be it http or smtp, that arrive at the external ip is forwarded to the webserver at 10.10.0.54.

After I set up the mail server, i was able to send out email, but not receive. Of course, because port 25 packets weren't reaching the email server. So I fixed this problem by using iptables prerouting and postrouting commands on the webserver. Basically I forwarded I port 25 packets arriving at the webserver to the email server. Now I can receive mails as well.

Now my squirrelmail is installed on the mailserver as well. How to access this from the outside world? There are websites being served from the webserver at 10.10.0.54, so I can't just forward port 80 to the email server. I was thinking to install squirrelmail on the webserver (10.10.0.54) and make it talk to courier-imap on the email server (10.10.0.200).

So I installed squirrelmail on the 10.10.0.54 webserver and edited /etc/squirrelmail/config.php and made the following changes.

Code:
$domain = 'localhost';
$imapServerAddress = '10.10.0.200';
$imapPort = 143;
$useSendmail = true;
$smtpServerAddress = '10.10.0.200';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$sendmail_args = '-i -t';
$pop_before_smtp = false;
$imap_server_type = 'courier';
$invert_time = false;
$optional_delimiter = '.';
Now, when I login to the squirrelmail web interface, I get a blank screen. Anything that I am missing? Any other setting that I need to change?

Also, I have websites being hosted for four domains on my webserver. I want all of them to access their mail by going to mail.theirdomain.com. By default, squirrelmail is accessed by going to www.theirdomain.com/webmail.
I probably can set up a subdomain using apache virtual host directive. but i will need to change some setting in squirrelmail.conf under /etc/httpd/conf/cquirrelmail.conf. what would that be?

I tried to debug the blank white screen that I am getting. These are my logs:

On the mail server (10.10.0.200) (/var/log/maillog)
Code:
Mar 12 16:51:27 mail1 imapd: Connection, ip=[::ffff:10.10.0.54]
Mar 12 16:51:27 mail1 imapd: LOGIN, user=user@domain.ca, ip=[::ffff:10.10.0.54], port=[53566], protocol=IMAP
Mar 12 16:51:27 mail1 imapd: LOGOUT, user=user@domain.ca, ip=[::ffff:10.10.0.54], headers=0, body=0, rcvd=30, sent=238, time=0
On the webserver (10.10.0.54), I get the following in apache logs
Code:
[Sat Mar 13 20:13:50 2010] [error] [client 99.244.21*.***] File does not exist: /var/www/html/domain/favicon.ico
[Sat Mar 13 20:13:53 2010] [error] [client 99.244.21*.***] File does not exist: /var/www/html/domain/favicon.ico
I've turned on error reporting in php.ini, but all is get is a blank page

Code:
display_errors = On
error_reporting = E_ALL
I thank you all in advance for all ur help.
 
  


Reply



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
Squirrelmail - Connection Dropped by imap server - SSL problem? Vanyel Linux - Server 2 06-01-2009 10:17 AM
Postfix, Squirrelmail, courier-imap, etc jimbo1708 Linux - Software 1 07-26-2007 09:02 PM
qmail + courier imap + squirrelmail...can't login using squirremail..user invalid rnj Linux - Newbie 6 10-11-2004 11:14 PM
LDAP courier IMAP SquirrelMail Exim adamfowler Linux - Software 0 04-28-2004 07:31 AM
Qmail+courier-IMAP+SquirrelMail+ virtualmin Half way there posixjunkie Linux - Wireless Networking 0 04-15-2004 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration