squirrelmail installation

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
anita

squirrelmail installation

Unread post by anita »

I am trying to insall squirrelmail using yum on RD9.

rpm -ivh squirrelmail-1.4.3-0.f0.9.1.legacy.noarch.rpm
Preparing... ########################################### [100%]
package squirrelmail-1.4.3-0.f0.9.1.legacy is already installed
---------------
whereis squirrelmail
squirrelmail: /etc/squirrelmail /usr/share/squirrelmail

squirrelmail, does not show up in PSA 7.1 panel
I would like to install it in /var/httpd/hosts/webmail

I don't know what to do next. I am not familiar with yum.
thanks
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

that rpm doesnt work with psa, youd want to use mine (which I need to update, I know)
anita

Unread post by anita »

I did use your rpm using yum. I don't care if it part of the PSA, but I would still like to finish installation so it would run in ../vhosts/webmail.
If I can do this than all I need to do is change the index.html redirect to point to squirrmail instead of horde. Any ideas what I need to do next with this installation. Thanks
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Mine takes care of all that. Install it, restart apache, thats it.
anita

Unread post by anita »

scott
I do not follow. Your installer did not take care of it. Like I said in my first post all I got is a squirremail in this directories
/etc/squirrelmail
/usr/share/squirrelmail
how can I use this. my websites are in /home/httpd/vhosts

how do I finish this installation to place squirrelmail in
/home/httpd/vhosts/webmail/squirremail
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Yes it does :P You install it, it replaces horde. Simple as that.
eilko

Unread post by eilko »

if you use the standard Redhat RPM you have to do a few things. All below is tested with RHEL3:

change /etc/squirrelmail/config_local.php to:

Code: Select all

<?php
/* Local config overrides.
   You can override the config.php settings here.  Don't do it unless you
   know what you're doing.
   Use standard PHP syntax, see config.php for examples. */

$domain                 = eregi_replace("^webmail\.", "",
$_SERVER["HTTP_HOST"]);

if(!$dir = @opendir("/var/lib/squirrelmail/prefs//$domain"))
mkdir("/var/lib/squirrelmail/prefs//$domain", 0777);

if(!$dir = @opendir("/var/spool/squirrelmail/attach//$domain"))
mkdir("/var/spool/squirrelmail/attach//$domain", 0777);

$data_dir                 = "/var/lib/squirrelmail/prefs//$domain";
$attachment_dir           = "/var/spool/squirrelmail/attach//$domain";
?>
change some things in the /etc/squirrelmail/config.php. Below is a part of my config.php

Code: Select all

$domain                 = '""';
$imapServerAddress      = '127.0.0.1';
$imapPort               = 143;
$useSendmail            = true;
$smtpServerAddress      = 'localhost';
$smtpPort               = 25;
$sendmail_path          = '/usr/sbin/sendmail';
$pop_before_smtp        = false;
$imap_server_type       = 'courier';
$invert_time            = false;
$optional_delimiter     = '.';

$default_folder_prefix          = 'INBOX.';
$trash_folder                   = 'Trash';
$sent_folder                    = 'Sent';
$draft_folder                   = 'Drafts';
$default_move_to_trash          = true;
$default_move_to_sent           = true;
$default_save_as_draft          = true;
$show_prefix_option             = false;
$list_special_folders_first     = true;
$use_special_folder_color       = true;
$auto_expunge                   = true;
$default_sub_of_inbox           = false;
$show_contain_subfolders_option = false;
$default_unseen_notify          = 2;
$default_unseen_type            = 1;
$auto_create_special            = true;
$delete_folder                  = true;
$noselect_fix_enable            = false;

$default_charset          = 'iso-8859-1';
$data_dir                 = '/var/lib/squirrelmail/prefs//data/$domain';
$attachment_dir           = '/var/spool/squirrelmail/attach//$domain';
$dir_hash_level           = 0;
$default_left_size        = '150';
$force_username_lowercase = false;
$default_use_priority     = true;
$hide_sm_attributions     = false;
$default_use_mdn          = true;
$edit_identity            = true;
$edit_name                = true;
$allow_thread_sort        = true;
$allow_server_sort        = true;
$allow_charset_search     = true;
$uid_support              = true;
add squirrelmail.conf to /etc/httpd/conf.d/

with the contents:

Code: Select all

Alias /horde /usr/share/squirrelmail

<Directory /usr/share/squirrelmail>
                        php_admin_flag engine on
                        php_admin_flag magic_quotes_gpc off
                        php_admin_value safe_mode off
                        php_value session.save_handler files
#                        php_admin_value open_basedir "/"
</Directory>
reboot apache and you will see squirrelmail instead of horde when accessing http://webmail.domain.com

maybe I forget a few details but you this will get you started....

(most of these things are done in the RPM of ART)
Post Reply