QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: gugong

Squirrelmail,一个非常COOL 的WebMail

[复制链接]
发表于 2003-5-5 23:50:12 | 显示全部楼层
[quote:b039f3d65c="jarson"]老大,你的什么破网站,不能用ie看??[/quote]

有只能用IE看的网站,当然也有IE看不了网站,有什么好奇怪的。。。

PS:你致力于学习在LINUX下用IE?
回复

使用道具 举报

发表于 2003-5-6 08:08:42 | 显示全部楼层
那你就不合群了。
: )   
回复

使用道具 举报

发表于 2003-5-6 09:12:51 | 显示全部楼层
[quote:0c29aad8c6="jarson"]那你就不合群了。
: )   [/quote]

一般般,所有基于GECKO的我都欢迎,OPERA,LYNX也行

前几天在MAILLIST里看到有人问怎么才能只允许OPERA访问,那才是真的不合群
回复

使用道具 举报

发表于 2003-5-6 09:19:59 | 显示全部楼层
你好拽!
:)
回复

使用道具 举报

发表于 2003-5-6 09:28:56 | 显示全部楼层
[quote:4255edc355="jarson"]你好拽!
:)[/quote]

没有IE拽。。。

你对闲聊的兴趣好象比SQUIRRELMAIL要高得多,我还等着人回答怎么解决那个乱码问题呢

不想被版主把我的贴转去闲聊组,闲聊到此打住了
回复

使用道具 举报

发表于 2003-5-6 10:47:18 | 显示全部楼层
      
水。。
回复

使用道具 举报

发表于 2003-5-6 11:36:35 | 显示全部楼层
At command mode,please input redhat-config,then use TAB key.I think you can find what you want!
回复

使用道具 举报

发表于 2003-5-6 13:10:53 | 显示全部楼层
大师啊!给个配置方法吧,我们这些菜鸟好学着用用啊!

或者给我发个EMAIL: [email protected]
指导一下安装方法啊,我的机器是

    操作系统WIN2000SERVER+REDHAT 8.0        CPU CII 1.1G   
    LINUX 在从盘上
回复

使用道具 举报

 楼主| 发表于 2003-5-7 13:20:37 | 显示全部楼层
[quote:a147f25528="lihe37"]大师啊!给个配置方法吧,我们这些菜鸟好学着用用啊!

或者给我发个EMAIL: [email protected]
指导一下安装方法啊,我的机器是

    操作系统WIN2000SERVER+REDHAT 8.0        CPU CII 1.1G   
    LINUX 在从盘上[/quote]

给你一个例子吧:


[code:1]2003年05月07日下午13时12分57秒[root@shcore squirrelmail]# pwd
/etc/squirrelmail
2003年05月07日下午13时13分01秒[root@shcore squirrelmail]# ll
total 48
-rw-rw----    1 gugong   apache       5706  3月 21 21:46 config.php
-rw-rw----    1 gugong   apache       5728 10月 15  2002 config.php.gugong.2002-10-25
-rw-rw----    1 gugong   apache       5728 11月 29 13:30 config.php.gugong.2002-11-29
-rw-rw----    1 gugong   apache       5819 12月 10 12:59 config.php.gugong.2002-12-10
-rw-rw----    1 gugong   apache       5719  2月 18 14:57 config.php.gugong.2003-02-18
-rw-rw----    1 gugong   apache       5706  3月 21 21:46 config.php.gugong.2003-04-27
-rw-r--r--    1 root     root         5980  3月 24 19:56 config.php.Origin
-rw-r--r--    1 root     root         5980  1月  6 19:28 config.php.RH.Origin
2003年05月07日下午13时13分03秒[root@shcore squirrelmail]# cat config.php
<?PHP
/**
* SquirrelMail Configuration File
* Created using the Administrator Plugin
*/
$config_version = '1.2.0';
$org_name = "SquirrelMail";
$org_logo = "../images/sm_logo.png";
$org_logo_width = 308;
$org_logo_height = 111;
$org_title = "SquirrelMail $version";
$signout_page = "http://www.shcore.com.cn/squirrelmail";
$squirrelmail_default_language = "zh_CN";
$frame_top = "_top";
$domain = "shcore.com.cn";
$imapServerAddress = "shcore.com.cn";
$imapPort = 143;
$imap_server_type = "uw";
$optional_delimiter = "detect";
$useSendmail = FALSE;
$sendmail_path = "/usr/sbin/sendmail";
$smtpServerAddress = "127.0.0.1";
$smtpPort = 25;
$use_authenticated_smtp = FALSE;
$invert_time = TRUE;
$default_use_mdn = TRUE;
$default_folder_prefix = "mail/";
$show_prefix_option = FALSE;
$trash_folder = "Trash";
$sent_folder = "Sent-mail";
$draft_folder = "Drafts";
$default_move_to_trash = TRUE;
$default_move_to_sent = TRUE;
$default_save_as_draft = TRUE;
$list_special_folders_first = TRUE;
$use_special_folder_color = TRUE;
$auto_expunge = TRUE;
$default_sub_of_inbox = TRUE;
$show_contain_subfolders_option = FALSE;
$default_unseen_notify = 2;
$default_unseen_type = 1;
$auto_create_special = TRUE;
$default_use_javascript_addr_book = FALSE;
$delete_folder = FALSE;
$default_charset = "gb2312";
$data_dir = "../data/";
$attachment_dir = "/var/spool/squirrelmail/attach/";
$dir_hash_level = 0;
$default_left_size = 100;
$force_username_lowercase = FALSE;
$default_use_priority = TRUE;
$hide_sm_attributions = FALSE;
$edit_identity = TRUE;
$edit_name = TRUE;
$motd = "Welcome to SquirrelMail Supported by GuGong !";
$addrbook_dsn = "mysql://squirreluser:xxxxxx@localhost/squirrelmail";
$addrbook_table = "address";
$prefs_dsn = "mysql://squirreluser:xxxxxx@localhost/squirrelmail";
$prefs_table = "userprefs";
$prefs_user_field = "user";
$prefs_key_field = "prefkey";
$prefs_val_field = "prefval";
$theme_css = "sans-10";
$config_use_color = 30;
$theme[0]['PATH'] = "../themes/default_theme.php";
$theme[0]['NAME'] = "Default";
$theme[1]['PATH'] = "../themes/plain_blue_theme.php";
$theme[1]['NAME'] = "Plain Blue";
$theme[2]['PATH'] = "../themes/sandstorm_theme.php";
$theme[2]['NAME'] = "Sand Storm";
$theme[3]['PATH'] = "../themes/deepocean_theme.php";
$theme[3]['NAME'] = "Deep Ocean";
$theme[4]['PATH'] = "../themes/slashdot_theme.php";
$theme[4]['NAME'] = "Slashdot";
$theme[5]['PATH'] = "../themes/purple_theme.php";
$theme[5]['NAME'] = "Purple";
$theme[6]['PATH'] = "../themes/forest_theme.php";
$theme[6]['NAME'] = "Forest";
$theme[7]['PATH'] = "../themes/ice_theme.php";
$theme[7]['NAME'] = "Ice";
$theme[8]['PATH'] = "../themes/seaspray_theme.php";
$theme[8]['NAME'] = "Sea Spray";
$theme[9]['PATH'] = "../themes/bluesteel_theme.php";
$theme[9]['NAME'] = "Blue Steel";
$theme[10]['PATH'] = "../themes/dark_grey_theme.php";
$theme[10]['NAME'] = "Dark Grey";
$theme[11]['PATH'] = "../themes/high_contrast_theme.php";
$theme[11]['NAME'] = "High Contrast";
$theme[12]['PATH'] = "../themes/black_bean_burrito_theme.php";
$theme[12]['NAME'] = "Black Bean Burrito";
$theme[13]['PATH'] = "../themes/servery_theme.php";
$theme[13]['NAME'] = "Servery";
$theme[14]['PATH'] = "../themes/maize_theme.php";
$theme[14]['NAME'] = "Maize";
$theme[15]['PATH'] = "../themes/bluesnews_theme.php";
$theme[15]['NAME'] = "BluesNews";
$theme[16]['PATH'] = "../themes/deepocean2_theme.php";
$theme[16]['NAME'] = "Deep Ocean 2";
$theme[17]['PATH'] = "../themes/blue_grey_theme.php";
$theme[17]['NAME'] = "Blue Grey";
$theme[18]['PATH'] = "../themes/dompie_theme.php";
$theme[18]['NAME'] = "Dompie";
$theme[19]['PATH'] = "../themes/methodical_theme.php";
$theme[19]['NAME'] = "Methodical";
$theme[20]['PATH'] = "../themes/greenhouse_effect.php";
$theme[20]['NAME'] = "Greenhouse Effect (Changes)";
$theme[21]['PATH'] = "../themes/in_the_pink.php";
$theme[21]['NAME'] = "In The Pink (Changes)";
$theme[22]['PATH'] = "../themes/kind_of_blue.php";
$theme[22]['NAME'] = "Kind of Blue (Changes)";
$theme[23]['PATH'] = "../themes/monostochastic.php";
$theme[23]['NAME'] = "Monostochastic (Changes)";
$theme[24]['PATH'] = "../themes/shades_of_grey.php";
$theme[24]['NAME'] = "Shades of Grey (Changes)";
$theme[25]['PATH'] = "../themes/spice_of_life.php";
$theme[25]['NAME'] = "Spice of Life (Changes)";
$theme[26]['PATH'] = "../themes/spice_of_life_lite.php";
$theme[26]['NAME'] = "Spice of Life - Lite (Changes)";
$theme[27]['PATH'] = "../themes/spice_of_life_dark.php";
$theme[27]['NAME'] = "Spice of Life - Dark (Changes)";
$theme[28]['PATH'] = "../themes/christmas.php";
$theme[28]['NAME'] = "Holiday - Christmas";
$theme[29]['PATH'] = "../themes/darkness.php";
$theme[29]['NAME'] = "Darkness (Changes)";
$theme[30]['PATH'] = "../themes/random.php";
$theme[30]['NAME'] = "Random (Changes every login)";
$theme[31]['PATH'] = "../themes/midnight.php";
$theme[31]['NAME'] = "Midnight";
$theme[32]['PATH'] = "../themes/alien_glow.php";
$theme[32]['NAME'] = "Alien Glow";
$theme[33]['PATH'] = "../themes/dark_green.php";
$theme[33]['NAME'] = "Dark Green";
$theme[34]['PATH'] = "../themes/penguin.php";
$theme[34]['NAME'] = "Penguin";
$theme[35]['PATH'] = "../themes/saloon.php";
$theme[35]['NAME'] = "Saloon";
$allow_thread_sort = TRUE;
$allow_server_sort = TRUE;
$noselect_fix_enable = TRUE;
$pop_before_smtp = TRUE;
$allow_charset_search = TRUE;
$plugins[0] = 'administrator';
$plugins[1] = 'bug_report';
$plugins[2] = 'calendar';
$plugins[3] = 'delete_move_next';
$plugins[4] = 'filters';
$plugins[5] = 'info';
$plugins[6] = 'listcommands';
$plugins[7] = 'mail_fetch';
$plugins[8] = 'newmail';
$plugins[9] = 'sent_subfolders';
$plugins[10] = 'spamcop';
$plugins[11] = 'squirrelspell';
$plugins[12] = 'translate';
?>[/code:1]
回复

使用道具 举报

发表于 2003-5-7 13:39:24 | 显示全部楼层
受益非浅。
回复

使用道具 举报

发表于 2003-5-9 02:46:57 | 显示全部楼层
RedHat8.0带的squirrelmail有安全漏洞.所以请用up2date更新或者直接访问www.redhat.com获取更新的RPM包.如果是去网站下载的,执行

# rpm -Uvh squirrelmail-1.2.10-1.noarch.rpm

进行安装或者升级

配置httpd

这里不多说什么,RPM包的apache需要修改配置文件定义ServerName,否则启动的时候会报警找不到服务器,好添加ServerName YOU_IP or Domain_Name到httpd.conf

配置squirrelmail

安装好squirrelmail的RPM包之后,所有的页面文件都被安置在/usr/share/squirrelmail目录中,我们需要将其link到apache的html目录才可以使用,执行下面的命令创见链接目录:

# ln -s /usr/share/squirrelmail/ /var/www/html/mail

注意,cp复制是不行的,因为squirrelmail很多文件的路径都是相对路径,如果不想自己去改代码的话还是老老实实作链接吧

配置squirrelmail的默认参数

主要的配置文件是config.php,在aquirrelmail的config目录下,你可以直接收工修改这个文件,也可以使用squirrel为我们准备的配置脚本来方便的定制参数.这个脚本是config目录下的conf.pl,运行这个脚本需要系统内装有perl的解释器.

#./conf.pl

SquirrelMail Configuration : Read: config.php (1.2.0)

---------------------------------------------------------

Main Menu --

1. Organization Preferences

2. Server Settings

3. Folder Defaults

4. General Options

5. Themes

6. Address Books (LDAP)

7. Message of the Day (MOTD)

8. Plugins

9. Database

D. Set pre-defined settings for specific IMAP servers

C. Turn color on

S Save data

Q Quit

Command>>

在>>提示符后面输入要定制的菜单的数字编号,就可以修改参数或者进入下一级子菜单.我主要改了一下几个地方:

改1. Organization Preferences-->6. Default Language : zh_CN

改2. Server Settings -->1. Domain : localhost为你的域名

改4. General Options --> 1. Default Charset : gb2312

7. Message of the Day (MOTD)-->1 Edit the MOTD 选择Edit the MOTD,你可以编辑一段话,这段话将显示在webmail界面里,管理员可以通过MOTD方便的发布通知等信息.

改8. Plugins 选择所有的插件,你选择的每个插件都将在webmail的Options里对应相关的功能,如日历,外部pop3,过滤器,拼写检查等等.如果觉得一些插件对你用处不大,你也可以从配置文件里去掉.

使用webmail

首先要启动以下服务:

#/etc/init.d/httpd start

#/etc/init.d/sendmail start

修改/etc/xinetd.d/imap中的disable为no然后重新启动xinetd

#/etc/init.d/xinetd restart

好了创建一个邮件测试帐户:

# adduser -s /bin/false test

# passwd test

打开浏览器输入你的邮件服务器的地址,例如:http://192.168.0.253/mail

在输入框中输入test和test帐户的密码就可以登录信箱了

设置默认编码:

登录后你会发现发送的邮件中的汉子都不能正常显示,会变成 测试这样的字符,很明显是编码不对,所以需要到Options->Display Preferences-->Language中选择字符集为中文,但这里只有Taiwan的Big5编码,搞什么搞啊.还要自己动手加编码才行.和编码有关的文件是function目录下的i18n.php在868行你会发现关于gb2312的编码被注释掉了,去掉注释

/*---------------

$languages['zh_CN']['NAME'] = 'Chinese';

$languages['zh_CN']['CHARSET'] = 'gb2312';

$languages['cn']['ALIAS'] = 'zh_CN';

*/

然后重新发送一封中文邮件看看.OK了
回复

使用道具 举报

发表于 2003-5-9 12:05:06 | 显示全部楼层
你这是从哪儿抄来的旧东西吧

语言选项没有GB2312的问题在早在1.2系列就弄好了(具体是1.2.10还是11或更早,记不清了),不需要自己去改什么注释

现在对RPM用户超简单,就是用rpm -ivh装上就完了
连WEBMAIL这个目录都不用自己LINK,配置文件里已经做好了ALIAS
回复

使用道具 举报

发表于 2003-5-9 19:35:16 | 显示全部楼层
呵呵,不好意思,懒得写了,到网上随便一搜索,就找到这个,贴出来让大家看看
楼上的也是申请3322.org的?
有时间一定去你那捧场
回复

使用道具 举报

发表于 2003-5-9 21:53:14 | 显示全部楼层
言下之意,你也在用3322?
那就顺便再问一下,我装了RHL9以后,3322提供的CLIENT总报错(7.3上没这问题)

[email@redhat71 ~]$ 3322
Incorrectly built binary which accesses errno, h_errno or _res directly. Needs t
o be fixed.
ez-ipupdate Version 3.0.10
Copyright (C) 1999-2000 Angus Mackay.
no update needed at this time

有何高见?
回复

使用道具 举报

发表于 2003-5-10 20:55:46 | 显示全部楼层
我的插件全安装了 ,为什么在选项中没有主系统管理,这个界面,我的
$plugins[0] = 'delete_move_next';
$plugins[1] = 'squirrelspell';
$plugins[2] = 'newmail';
$plugins[3] = 'bug_report';
$plugins[4] = 'calendar';
$plugins[5] = 'filters';
$plugins[6] = 'info';
$plugins[7] = 'listcommands';
$plugins[8] = 'mail_fetch';
$plugins[9] = 'sent_subfolders';
$plugins[10] = 'spamcop';
$plugins[11] = 'translate';
$plugins[12] = 'administrator';
怎么回事?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-20 08:01 , Processed in 0.128407 second(s), 13 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表