RedHatLinux AS3中APACHE+SendMail+OpenWebMail整合
linux  /  管理员 发布于 7年前   246
注:
1. Openwebmail是一个webmail程序,不同与微软的owa及imail的web方式,它不包含服务器端服务(本例中邮件服务器为sendmail);因此在运行Openwebmail的机器上需要安装Apache和Sendmail.
2. Openwebmail多数程序是由Perl语句编写的,所以必须安装Perl及Perl相关包
3.下载所需软件包:在RedHatLinux AS3中安装openwebmail需要以下软件包
>>1. perl-CGI-2.81-88.4.i386.rpm
http://www.openwebmail.com/openwebmail/download/redhat/rpm/packages/rhel3/perl-CGI-2.81-88.4.i386.rpm
>>2.
perl-Compress-Zlib-1.21-RH9.i386.rpm
http://www.openwebmail.com/openwebmail/download/redhat/rpm/packages/rhel3/perl-Compress-Zlib-1.21-RH9.i386.rpm
>>3.
perl-Text-Iconv-1.2-RH80.i386.rpm
http://www.openwebmail.com/openwebmail/download/redhat/rpm/packages/rhel3/perl-Text-Iconv-1.2-RH80.i386.rpm
>>4.
perl-suidperl-5.8.0-88.i386.rpm
http://www.openwebmail.com/openwebmail/download/redhat/rpm/packages/rhel3/perl-suidperl-5.8.0-88.i386.rpm
>>5.
openwebmail-2.41-20041126.i386.rpm
http://www.openwebmail.com/openwebmail/download/redhat/rpm/daily-build/openwebmail-2.41-20041126.i386.rpm
下面就开始安装配置:
Step 1:安装下载包
[root@AS3 software]#rpm –ivh
perl-CGI-2.81-88.4.i386.rpm
[root@AS3 software]#rpm –ivh
perl-Compress-Zlib-1.21-RH9.i386.rpm
[root@AS3 software]#rpm –ivh
perl-Text-Iconv-1.2-RH80.i386.rpm
[root@AS3 software]#rpm –ivh
perl-suidperl-5.8.0-88.i386.rpm
Step 2:初始化openwebmail
[root@AS3 software]#cd /var/www/cgi-bin/openwebmail
[root@AS3 openwebmail]# ls -l
total 1192
drwxr-xr-x 2 root mail 4096 Nov 27 14:44 auth
drwxr-xr-x 12 root mail 4096 Nov 27 21:17 etc
drwxr-xr-x 6 root mail 4096 Nov 27 14:44 misc
drwxr-xr-x 2 root mail 4096 Nov 27 14:44 modules
-rwsr-xr-x 1 root mail 260341 Nov 26 12:16 openwebmail-abook.pl
-rwsr-xr-x 1 root mail 23817 Nov 26 12:16 openwebmail-advsearch.pl
-rwsr-xr-x 1 root mail 114322 Nov 26 12:16 openwebmail-cal.pl
-rwsr-xr-x 1 root mail 23855 Nov 26 12:16 openwebmail-folder.pl
-rwsr-xr-x 1 root mail 68418 Nov 26 12:16 openwebmail-main.pl
-rwsr-xr-x 1 root mail 34984 Nov 26 12:16 openwebmail.pl
-rwsr-xr-x 1 root mail 139830 Nov 26 12:16 openwebmail-prefs.pl
-rwsr-xr-x 1 root mail 66851 Nov 26 12:16 openwebmail-read.pl
-rwsr-xr-x 1 root mail 110724 Nov 26 12:16 openwebmail-send.pl
-rwsr-xr-x 1 root mail 24813 Nov 26 12:16 openwebmail-spell.pl
-rwsr-xr-x 1 root mail 52749 Nov 26 12:16 openwebmail-tool.pl
-rwsr-xr-x 1 root mail 48796 Nov 26 12:16 openwebmail-vdomain.pl
-rwsr-xr-x 1 root mail 18457 Nov 26 12:16 openwebmail-viewatt.pl
-rwsr-xr-x 1 root mail 112975 Nov 26 12:16 openwebmail-webdisk.pl
-rwxr-xr-x 1 root mail 4859 Aug 12 13:06 preload.pl
drwxr-xr-x 2 root mail 4096 Nov 27 14:44 quota
drwxr-xr-x 2 root mail 4096 Nov 27 14:44 shares
-rwxr-xr-x 1 root mail 4117 Sep 4 15:04 userstat.pl
-rwxr-xr-x 1 root mail 19305 Nov 16 22:42 vacation.pl
[root@AS3 openwebmail]#./openwebmail-tool.pl --init //这步骤很关键会出现如下的提示:change the following 3 options in openwebmail.conf from dbm_ext .db dbmopen_ext none dbmopen_haslock no to dbm_ext .db dbmopen_ext %dbm_ext% dbmopen_haslock no安回车键忽略提示,继续配置//进入openwebmail下面的etc目录进行相关配置,需要修改以下
1./var/www/cgi-bin/openwebmail /etc/openwebmail.conf
2./var/www/cgi-bin/openwebmail/etc/defaults/openwebmail.conf
3./var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf
修改后的文件为
>>1./var/www/cgi-bin/openwebmail/etc/openwebmail.conf[只需修改1处domainnames supermaster.com //默认是auto],完整的内容如下:
#
# Open WebMail configuration file
#
# This file contains just the overrides from defaults/openwebmail.conf
# please make all changes to this file.
#
# This file sets options for all domains and all users.
# To set options on per domain basis, please put them in sites.conf/domainname
# To set options on per user basis, please put them in users.conf/username
#
releasedate 20041126
domainnames supermaster.com //默认是auto
auth_module auth_unix.pl
mailspooldir /var/spool/mail
ow_cgidir /var/www/cgi-bin/openwebmail
ow_cgiurl /cgi-bin/openwebmail
ow_htmldir /var/www/data/openwebmail
ow_htmlurl /data/openwebmail
logfile /var/log/openwebmail.log
# To SysAdmin,
# Please install ClamAV RPM package from http://clamav.net/ in order to
# enable viruscheck with Open WebMail. Otherwise set it to no.
# See http://openwebmail.org/openwebma ... howto/virus/ClamAV/
# for a step-by-step instruction.
enable_viruscheck yes
viruscheck_pipe /usr/bin/clamdscan --mbox --disable-summary --stdout -
viruscheck_source_allowed all
enable_spamcheck no
enable_learnspam no
%name%
version %version%
%help_text%?
logo_url %ow_htmlurl%/images/openwebmail.gif
logo_link http://openwebmail.org
help_url @@@HELP_URL@@@
help_text @@@HELP_TEXT@@@
spellcheck /usr/bin/aspell -a -S -w "-" -d @@@DICTIONARY@@@ -p @@@PDICNAME@@@
spellcheck_pdicname .aspell.@@@DICTIONARY@@@.pws
spellcheck_dictionaries english, american
auto_createrc yes
############################################
# Buttons :
# EditFroms | EditStationary | POP3Setup | ChangePassword | History | Info
enable_editfrombook yes
enable_stationery yes
enable_pop3 yes
enable_changepwd yes
enable_history yes
enable_about yes
##############################################
# Personal Information
default_language en
default_timeoffset auto
default_daylightsaving auto
default_realname auto
default_fromemails auto
default_autoreplysubject This is an autoreply...[Re: $SUBJECT]
Hello,
I will not be reading my mail for a while.
Your mail regarding '$SUBJECT' will be read when I return.
--
Open WebMail Project (http://openwebmail.org)
##############################################
# Display Preference
default_style Default
default_iconset Cool3D.English
default_bgurl %ow_htmlurl%/images/backgrounds/Globe.gif
default_bgrepeat yes
default_fontsize 10pt
default_dateformat mm/dd/yyyy
default_hourformat 12
############################################
# Folder Browsing
default_ctrlposition_folderview bottom
default_msgsperpage 20
default_fieldorder date from subject size
default_sort date
default_useminisearchicon yes
############################################
# Message Operation
default_confirmmsgmovecopy no
default_defaultdestination saved-messages
default_smartdestination yes
default_viewnextaftermsgmovecopy yes
default_autopop3 yes
default_autopop3wait 0
default_bgfilterwait 10
default_moveoldmsgfrominbox no
############################################
# Message Reading Options
default_ctrlposition_msgread bottom
default_headers simple
default_usefixedfont no
default_usesmileicon no
default_showhtmlastext yes
default_showimgaslink yes
default_disablejs yes
default_disableembcode yes
default_disableemblink cgionly
default_sendreceipt ask
############################################
# Message Replying Options
default_msgformat text
default_editcolumns 88
default_editrows 28
default_sendbuttonposition before
default_reparagraphorigmsg yes
default_replywithorigmsg at_beginning
default_backupsentmsg yes
default_sendcharset sameascomposing
############################################
# Virus Check
default_viruscheck_source all
default_viruscheck_maxsize 10000
default_viruscheck_minbodysize 1
############################################
# Message Filtering Options
default_filter_repeatlimit 10
default_filter_badaddrformat no
default_filter_fakedsmtp no
default_filter_fakedfrom no
default_filter_fakedexecontenttype no
############################################
# AddressBook Options
default_abook_width 600
default_abook_height max
default_abook_buttonposition after
default_abook_defaultfilter no
default_abook_defaultsearchtype name
default_abook_addrperpage 24
default_abook_collapse 1
default_abook_sort fullname
default_abook_listviewfieldorder fullname, email, note
############################################
# Calendar Options
default_calendar_defaultview calmonth
default_calendar_holidaydef auto
default_calendar_monthviewnumitems 5
default_calendar_weekstart 0
default_calendar_starthour 0600
default_calendar_endhour 2300
default_calendar_interval 30
default_calendar_showemptyhours yes
default_calendar_reminderdays 7
default_calendar_reminderforglobal yes
############################################
# WebDisk Options
default_webdisk_dirnumitems 10
default_webdisk_confirmmovecopy yes
default_webdisk_confirmdel yes
default_webdisk_confirmcompress yes
default_webdisk_fileeditcolumns 96
default_webdisk_fileeditrows 24
############################################
# Misc Options
default_uselightbar yes
default_regexmatch yes
default_hideinternal yes
default_newmailsound NONE
default_newmailwindowtime 3
default_mailsentwindowtime 0
default_dictionary english
default_trashreserveddays 0
default_spamvirusreserveddays 3
default_refreshinterval 5
default_sessiontimeout 24
############################################
# Security Settings
webdisk_rootpath /webdisk
webdisk_lsmailfolder no
webdisk_lshidden no
webdisk_lsunixspec no
webdisk_lssymlink yes
webdisk_allow_symlinkout yes
webdisk_symlinkout_display @
enable_sshterm no
# ps: To completely disable the SSH terminal support, you have to remove
# the file data/openwebmail/applet/mindterm/mindtermfull.jar
############################################
# Quota System (limit in KB and threshold in %)
# 1 MB = 1,024 KB
# 10 MB = 10,240 KB
# 100 MB = 102,400 KB
# 1 GB = 1,024 MB = 1,048,576 KB
# uncomment following lines if you wish to enable Quota System for 10 Mb
#quota_module quota_du.pl
#spool_limit 10240
#quota_limit 10240
#quota_threshold 0
#delmail_ifquotahit no
#delfile_ifquotahit no
>>2./var/www/cgi-bin/openwebmail/etc/defaults/openwebmail.conf [只需修改2处,把smtpserver和authpop3_server改为相应的IP],完整的内容如下:
#
# Open WebMail configuration file DEFAULT
#
# This is openwebmail.conf.default - a file full of useful variables that
# you can set for the openwebmail system. You should not edit this file!
# Put any overrides into openwebmail.conf instead. The openwebmail.conf
# should only contain values which override values set in this file.
# This eases the upgrade when defaults are changed or new features are added.
#
# Please refer to openwebmail.conf.help for description of each option
#
# ps: This file will be loaded only once if Open WebMail is running in
# persistent mode. To force Open WebMail reread this file, please do
#
# touch openwebmail*pl
#
name Open WebMail
version 2.41
releasedate 20041126
##############################################################################
# host dependent configuration
##############################################################################
domainnames auto
smtpserver 192.168.0.111
smtpport 25
smtpauth no
virtusertable /etc/mail/virtusertable
auth_module auth_unix.pl
auth_withdomain no
auth_domain auto
quota_module none
mailspooldir /var/mail
use_hashedmailspools no
use_syshomedir yes
create_syshomedir no
use_homedirspools no
homedirspoolname Mailbox
homedirfolderdirname mail
homedirdotdirname .openwebmail
use_syshomedir_for_dotdir yes
deliver_use_GMT no
##############################################################################
# openwebmail system configuration
##############################################################################
ow_cgidir /usr/local/www/cgi-bin/openwebmail
ow_cgiurl /cgi-bin/openwebmail
ow_htmldir /usr/local/www/data/openwebmail
ow_htmlurl /openwebmail
ow_etcdir %ow_cgidir%/etc
ow_stylesdir %ow_etcdir%/styles
ow_langdir %ow_etcdir%/lang
ow_templatesdir %ow_etcdir%/templates
ow_holidaysdir %ow_etcdir%/holidays
ow_mapsdir %ow_etcdir%/maps
ow_sitesconfdir %ow_etcdir%/sites.conf
ow_usersconfdir %ow_etcdir%/users.conf
ow_usersdir %ow_etcdir%/users
ow_sessionsdir %ow_etcdir%/sessions
start_url %ow_cgiurl%/openwebmail.pl
ico_url %ow_htmlurl%/images/openwebmail.ico
logo_url %ow_htmlurl%/images/openwebmail.gif
logo_link http://openwebmail.org/
help_url @@@HELP_URL@@@
help_text @@@HELP_TEXT@@@
logfile /var/log/openwebmail.log
global_addressbook %ow_etcdir%/address.book
global_filterbook %ow_etcdir%/filter.book
global_calendarbook %ow_etcdir%/calendar.book
g2b_map %ow_mapsdir%/g2b.map
b2g_map %ow_mapsdir%/b2g.map
lunar_map %ow_mapsdir%/lunar.map
header_pluginfile none
header_pluginfile_charset none
footer_pluginfile none
footer_pluginfile_charset none
webmail_middle_pluginfile none
webmail_middle_pluginfile_charset none
spellcheck /usr/local/bin/ispell -a -S -w "-" -d @@@DICTIONARY@@@ -p @@@PDICNAME@@@
spellcheck_pdicname .ispell_words
spellcheck_dictionaries english, american
vacationinit %ow_cgidir%/vacation.pl -i
vacationpipe %ow_cgidir%/vacation.pl -t60s
error_with_debuginfo no
allowed_serverdomain all
allowed_clientdomain all
allowed_clientip all
allowed_receiverdomain all
allowed_autologinip all
allowed_rootloginip none
case_insensitive_login no
forced_ssl_login no
stay_ssl_afterlogin yes
enable_domainselectmenu no
domainselmenu_list auto
enable_strictvirtuser no
enable_changepwd yes
enable_strictpwd yes
passwd_minlen &nbs
122 在
学历:一种延缓就业设计,生活需求下的权衡之选中评论 工作几年后,报名考研了,到现在还没认真学习备考,迷茫中。作为一名北漂互联网打工人..123 在
Clash for Windows作者删库跑路了,github已404中评论 按理说只要你在国内,所有的流量进出都在监控范围内,不管你怎么隐藏也没用,想搞你分..原梓番博客 在
在Laravel框架中使用模型Model分表最简单的方法中评论 好久好久都没看友情链接申请了,今天刚看,已经添加。..博主 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 @1111老铁这个不行了,可以看看近期评论的其他文章..1111 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 网站不能打开,博主百忙中能否发个APP下载链接,佛跳墙或极光..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号