SQUIRRELMAIL + SENDMAIL + DOVECOT + APACHE on Redhat Linux
* HOW TO ACCESS MAILS IN BROWSER
* HOW TO ACCESS SENDMAIL/DOVECOT MAILS IN BROWSER
Hi friends many of knows how to configure mail server in linux, but they will struck with opening mails in browser, Here we have solution for that....
For Installation & Configuration of Sendmail & Dovecot Visit Last Post Click Here
Note: Before Installing Squirrelmail we need to install php
1. php (Available in RHEL DVD PACK)
2. php-cli (Available in RHEL DVD PACK)
3. php-common (Available in RHEL DVD PACK)
4. libgmp.so.3 (For download Click Here
Installation of php & dependence
[root@ DATA]# rpm -ivh libgmp3-4.1.2-4sls.i586.rpm
warning: libgmp3-4.1.2-4sls.i586.rpm: Header V3 DSA signature: NOKEY, key ID 67f22696
Preparing... ########################################### [100%]
1:libgmp3 ########################################### [100%]
[root@ DATA]#
[root@ Server]# rpm -ivh php-cli-5.1.6-23.el5.i386.rpm
warning: php-cli-5.1.6-23.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php-cli ########################################### [100%]
[root@ Server]#
[root@ Server]# rpm -ivh php-common-5.1.6-23.el5.i386.rpm
warning: php-common-5.1.6-23.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php-common ########################################### [100%]
[root@ Server]#
Installation of SquirrelMail 1.4.6 (To Download Squirellmail Click Here)
[root@ DATA]# rpm -ivh squirrelmail-1.4.6-1.noarch.rpm
warning: squirrelmail-1.4.6-1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 1eb393ea
Preparing... ########################################### [100%]
1:squirrelmail ########################################### [100%]
[root@ DATA]#
Check Squirrelmail rpm has installed properly
[root@ DATA]# rpm -qa |grep squirrelmail
squirrelmail-1.4.6-1
[root@ DATA]#
Go to /usr/share/squirrelmail directory
[root@ squirrelmail]# ls -ltr
total 44
-rw-r--r-- 1 root root 684 Feb 27 2006 index.php
drwxr-xr-x 3 root root 4096 Sep 27 15:00 themes
drwxr-xr-x 2 root root 4096 Sep 27 15:00 src
drwxr-xr-x 18 root root 4096 Sep 27 15:00 plugins
drwxr-xr-x 2 root root 4096 Sep 27 15:00 locale
drwxr-xr-x 3 root root 4096 Sep 27 15:00 include
drwxr-xr-x 2 root root 4096 Sep 27 15:00 images
drwxr-xr-x 3 root root 4096 Sep 27 15:00 help
drwxr-xr-x 4 root root 4096 Sep 27 15:00 functions
drwxr-xr-x 2 root root 4096 Sep 27 15:00 config
drwxr-xr-x 5 root root 4096 Sep 27 15:00 class
[root@ squirrelmail]#
Go to config directory
[root@ squirrelmail]# cd config/
[root@ config]# ls -ltr
total 176
-rw-r--r-- 1 root root 492 Feb 27 2006 index.php
-rwxr-xr-x 1 root root 139402 Feb 27 2006 conf.pl
-rw-r--r-- 1 root root 26911 Feb 27 2006 config_default.php
lrwxrwxrwx 1 root root 28 Sep 27 15:00 config.php -> /etc/squirrelmail/config.php
lrwxrwxrwx 1 root root 34 Sep 27 15:00 config_local.php -> /etc/squirrelmail/config_local.php
[root@ config]#
Run conf.pl file
[root@ config]# ./conf.pl
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color on
S Save data
Q Quit
Command >>
NOTE: This not a normal modify with vi editor, Just we need to select option like 1,2 or A,B etc...
In about default page we are not seeing anything front of Main Menu option 1 2 3, Actually everything is there front of that option but it has hidden with colors, to check just select something u will get written some words, For your make easy purpose Press C and Enter, now you its visible everything,
Few Commands to modify this file
To Choose options Press 1 2 3 OR AB etc...(your choice to go particular option) & Press Enter...
Type 1 Press Enter
Organization Preferences
1. Organization Name : XYZ-Company-Name
2. Organization Logo : ../images/sm_logo.png
3. Org. Logo Width/Height : (308/111)
4. Organization Title : xyz_domain webmail
5. Signout Page :
6. Top Frame : _top
7. Provider link : http://xyz.com OR http://192.168.4.1
8. Provider name : company
Type S Press Enter
Type R Press Enter
Type 2 Press Enter
Server Settings
General
-------
1. Domain : xyz.com
2. Invert Time : false
3. Sendmail or SMTP : Sendmail
A. Update IMAP Settings : localhost:143 (uw)
B. Change Sendmail Config : /usr/sbin/sendmail
Press A to update imap
IMAP Settings
--------------
4. IMAP Server : localhost
5. IMAP Port : 143
6. Authentication type : login
7. Secure IMAP (TLS) : false
8. Server software : uw
9. Delimiter : /
Type S Press Enter
Type R Press Enter
Press 3 Enter
Folder Defaults
1. Default Folder Prefix : mail/
2. Show Folder Prefix Option : true
3. Trash Folder : Trash
4. Sent Folder : Sent
5. Drafts Folder : Drafts
6. By default, move to trash : true
7. By default, move to sent : true
8. By default, save as draft : true
9. List Special Folders First : true
10. Show Special Folders Color : true
11. Auto Expunge : true
12. Default Sub. of INBOX : false
13. Show 'Contain Sub.' Option : true
14. Default Unseen Notify : 2
15. Default Unseen Type : 1
16. Auto Create Special Folders : true
17. Folder Delete Bypasses Trash : false
18. Enable /NoSelect folder fix : false
Type S Press Enter
Type R Press Enter
Press 4 Enter
General Options
1. Data Directory : /var/lib/squirrelmail/prefs/
2. Attachment Directory : /var/spool/squirrelmail/attach/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : false
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server thread sort : true
11. Allow server-side sorting : true
12. Allow server charset search : true
13. Enable UID support : true
14. PHP session name : SQMSESSID
Type S Press Enter
Type R Press Enter
Press 8 Enter
Plugins
Installed Plugins
1. delete_move_next
2. newmail
3. info
4. calendar
5. filters
6. mail_fetch
7. message_details
8. spamcop
9. sent_subfolders
10. abook_take
11. squirrelspell
Available Plugins:
12. listcommands
13. translate
14. bug_report
15. administrator
16. fortune
Press any no which you like to keep plugins
Finally Save and Quit
Now open browser and check
http://192.168.4.1/webmail
OR
http://xyz.com/webmail
Note: If you get any error then check with your iptables/firewall & and allow 80 & 143 port and then check with browser,
You will get below image Give username and password (which created for mail access)
Now you can access mail anywhere from browser, also you can access mails in outlook...
Thanks and Regards,
Sandeep CC
* HOW TO ACCESS MAILS IN BROWSER
* HOW TO ACCESS SENDMAIL/DOVECOT MAILS IN BROWSER
Hi friends many of knows how to configure mail server in linux, but they will struck with opening mails in browser, Here we have solution for that....
For Installation & Configuration of Sendmail & Dovecot Visit Last Post Click Here
Note: Before Installing Squirrelmail we need to install php
1. php (Available in RHEL DVD PACK)
2. php-cli (Available in RHEL DVD PACK)
3. php-common (Available in RHEL DVD PACK)
4. libgmp.so.3 (For download Click Here
Installation of php & dependence
[root@ DATA]# rpm -ivh libgmp3-4.1.2-4sls.i586.rpm
warning: libgmp3-4.1.2-4sls.i586.rpm: Header V3 DSA signature: NOKEY, key ID 67f22696
Preparing... ########################################### [100%]
1:libgmp3 ########################################### [100%]
[root@ DATA]#
[root@ Server]# rpm -ivh php-cli-5.1.6-23.el5.i386.rpm
warning: php-cli-5.1.6-23.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php-cli ########################################### [100%]
[root@ Server]#
[root@ Server]# rpm -ivh php-common-5.1.6-23.el5.i386.rpm
warning: php-common-5.1.6-23.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php-common ########################################### [100%]
[root@ Server]#
Installation of SquirrelMail 1.4.6 (To Download Squirellmail Click Here)
[root@ DATA]# rpm -ivh squirrelmail-1.4.6-1.noarch.rpm
warning: squirrelmail-1.4.6-1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 1eb393ea
Preparing... ########################################### [100%]
1:squirrelmail ########################################### [100%]
[root@ DATA]#
Check Squirrelmail rpm has installed properly
[root@ DATA]# rpm -qa |grep squirrelmail
squirrelmail-1.4.6-1
[root@ DATA]#
Go to /usr/share/squirrelmail directory
[root@ squirrelmail]# ls -ltr
total 44
-rw-r--r-- 1 root root 684 Feb 27 2006 index.php
drwxr-xr-x 3 root root 4096 Sep 27 15:00 themes
drwxr-xr-x 2 root root 4096 Sep 27 15:00 src
drwxr-xr-x 18 root root 4096 Sep 27 15:00 plugins
drwxr-xr-x 2 root root 4096 Sep 27 15:00 locale
drwxr-xr-x 3 root root 4096 Sep 27 15:00 include
drwxr-xr-x 2 root root 4096 Sep 27 15:00 images
drwxr-xr-x 3 root root 4096 Sep 27 15:00 help
drwxr-xr-x 4 root root 4096 Sep 27 15:00 functions
drwxr-xr-x 2 root root 4096 Sep 27 15:00 config
drwxr-xr-x 5 root root 4096 Sep 27 15:00 class
[root@ squirrelmail]#
Go to config directory
[root@ squirrelmail]# cd config/
[root@ config]# ls -ltr
total 176
-rw-r--r-- 1 root root 492 Feb 27 2006 index.php
-rwxr-xr-x 1 root root 139402 Feb 27 2006 conf.pl
-rw-r--r-- 1 root root 26911 Feb 27 2006 config_default.php
lrwxrwxrwx 1 root root 28 Sep 27 15:00 config.php -> /etc/squirrelmail/config.php
lrwxrwxrwx 1 root root 34 Sep 27 15:00 config_local.php -> /etc/squirrelmail/config_local.php
[root@ config]#
Run conf.pl file
[root@ config]# ./conf.pl
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color on
S Save data
Q Quit
Command >>
NOTE: This not a normal modify with vi editor, Just we need to select option like 1,2 or A,B etc...
In about default page we are not seeing anything front of Main Menu option 1 2 3, Actually everything is there front of that option but it has hidden with colors, to check just select something u will get written some words, For your make easy purpose Press C and Enter, now you its visible everything,
Few Commands to modify this file
To Choose options Press 1 2 3 OR AB etc...(your choice to go particular option) & Press Enter...
Type 1 Press Enter
Organization Preferences
1. Organization Name : XYZ-Company-Name
2. Organization Logo : ../images/sm_logo.png
3. Org. Logo Width/Height : (308/111)
4. Organization Title : xyz_domain webmail
5. Signout Page :
6. Top Frame : _top
7. Provider link : http://xyz.com OR http://192.168.4.1
8. Provider name : company
Type S Press Enter
Type R Press Enter
Type 2 Press Enter
Server Settings
General
-------
1. Domain : xyz.com
2. Invert Time : false
3. Sendmail or SMTP : Sendmail
A. Update IMAP Settings : localhost:143 (uw)
B. Change Sendmail Config : /usr/sbin/sendmail
Press A to update imap
IMAP Settings
--------------
4. IMAP Server : localhost
5. IMAP Port : 143
6. Authentication type : login
7. Secure IMAP (TLS) : false
8. Server software : uw
9. Delimiter : /
Type S Press Enter
Type R Press Enter
Press 3 Enter
Folder Defaults
1. Default Folder Prefix : mail/
2. Show Folder Prefix Option : true
3. Trash Folder : Trash
4. Sent Folder : Sent
5. Drafts Folder : Drafts
6. By default, move to trash : true
7. By default, move to sent : true
8. By default, save as draft : true
9. List Special Folders First : true
10. Show Special Folders Color : true
11. Auto Expunge : true
12. Default Sub. of INBOX : false
13. Show 'Contain Sub.' Option : true
14. Default Unseen Notify : 2
15. Default Unseen Type : 1
16. Auto Create Special Folders : true
17. Folder Delete Bypasses Trash : false
18. Enable /NoSelect folder fix : false
Type S Press Enter
Type R Press Enter
Press 4 Enter
General Options
1. Data Directory : /var/lib/squirrelmail/prefs/
2. Attachment Directory : /var/spool/squirrelmail/attach/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : false
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server thread sort : true
11. Allow server-side sorting : true
12. Allow server charset search : true
13. Enable UID support : true
14. PHP session name : SQMSESSID
Type S Press Enter
Type R Press Enter
Press 8 Enter
Plugins
Installed Plugins
1. delete_move_next
2. newmail
3. info
4. calendar
5. filters
6. mail_fetch
7. message_details
8. spamcop
9. sent_subfolders
10. abook_take
11. squirrelspell
Available Plugins:
12. listcommands
13. translate
14. bug_report
15. administrator
16. fortune
Press any no which you like to keep plugins
Finally Save and Quit
Now open browser and check
http://192.168.4.1/webmail
OR
http://xyz.com/webmail
Note: If you get any error then check with your iptables/firewall & and allow 80 & 143 port and then check with browser,
You will get below image Give username and password (which created for mail access)
Now you can access mail anywhere from browser, also you can access mails in outlook...
Thanks and Regards,
Sandeep CC
Thank you very much 4 ur great post...:-)
ReplyDeleteI had gone through it n configured my sendmail,squirrelmail on the same server which is working fine.. I had also configured a ldap server on another server.. Now,I wnt 2 login squirrelmail through ldap...
I have tried but failed to login,pls help me out to solve this probem..thank u again..
Thanks you,
DeleteCan you post the exact what error you are getting?
Regards,
Sandeep CC
Hi Sandeep,
DeleteThank u 4 ur reply...
There was little mistake in my authentication file n nw the problem has been solved and its working fine...
thanks a lot n tk cr...
Regards,
Amit
You are welcome!!!
Delete