我安装了 openwebmail ,想直接敲域名就能进入画面,该怎么做? <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

vi /usr/local/apache/htdocs/index.html

<html>;

<head>;

<title>;index.html</title>;

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">;

<meta http-equiv="refresh" content="0;url=http://mail.test.com/cgi-bin/openwebmail/openwebmail.pl">;

</head>;

 

<body bgcolor="#FFFFFF" text="#000000">;

 

</body>;

</html

 

 

 

其它功能

# 1. 网络磁盘:

如果不想提供网络磁盘的话,可以在底下的档案:

/var/www/cgi-bin/openwebmail/etc/openwebmail.conf

加入这行:

enable_webdisk no



# 2.
提供 ssh 连线:

如果不想提供网络连线的话,可以在底下的档案:

/var/www/cgi-bin/openwebmail/etc/openwebmail.conf

加入这行:

enable_sshterm no



# 3.
让登入更简单:

如果不想在网址列输入长长的一段文字,可以修改成为:

vi httpd.conf (
请依照您的系统来修订! )

ScriptAlias /webmail /var/www/cgi-bin/openwebmail/openwebmail.pl

or

ScriptAlias /webmail.pl /var/www/cgi-bin/openwebmail/openwebmail.pl

然后重新启动 apache ,如此一来,您可以在网址列输入:

http://hostname/webmail or http://hostname/webmail.pl

就可以进入 openwebmail 了!

 

 

使用公共地址的方法:

 

 

 

 

 

vi openwebmail.conf
加入
abook_globaleditable yes
ow_addressbooksdir %ow_etcdir%/addressbooks
global_filterbook %ow_etcdir%/filter.book
global_calendarbook %ow_etcdir%/calendar.book
# /var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
#cd /var/www/cgi-bin/openwebmail/etc/addressbooks/
#useradd global
# chown global.global global

 

[root@test mail]# ln -s /var/www/cgi-bin/openwebmail/etc/addressbooks/global  /home/global/mail/address.book
然后就可以使用global用户直接登陆进行公共地址簿的添加和删除了。。

设置别名
例如,发给tech@test.com 就是让tech部门所有人都收到信
方法:
修改/etc/aliases
按照类似样子修改
 
  

 

test:               test1,test2

 
  

说明。。。

test帐户在系统中不能实际存在。

这样就ok了。

 

使用别名的问题

[root@linux ]# vi /etc/aliases

student95:       std001,std002,std003,std004...

 

[root@linux ]# postalias hash:/etc/aliases

 

Postfix SMTP 认证实现的依赖
   
Postfix 使用 SASL (Simple Authentication and Security Layer) 框架来实现验证,具体地说是由 Cyrus-SASL 实现的 SASL 库, Cyrus-SASL SASL 的一种实现。可以通过下面的命令来验证这件事情:
[root@localhost ~]# ldd /usr/sbin/postfix
        linux-gate.so.1 =>  (0x00738000)
        libldap-2.3.so.0 => /usr/lib/libldap-2.3.so.0 (0x<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />00f01000)
        liblber-2.3.so.0 => /usr/lib/liblber-2.3.so.0 (0x00586000)
        libpcre.so.0 => /lib/libpcre.so.0 (0x009db000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00892000)

简单应用

1.   修改 /usr/lib/sasl/smtpd.conf 文件,告诉 postfix 使用 saslauthd 作为后台认证程序: pwcheck_method: saslauthd

2.   修改 /etc/sysconfig/saslauthd 文件,使 saslauthd 采用 shadow 作为验证数据源        MECH=shadow

3.   启动 saslauthd /etc/init.d/saslauthd start

4.   验证 saslauthd                                                  /usr/sbin/testsaslauthd -u haha -p'123456'                         0: OK "Success."

5.   编辑 /etc/postfix/main.cf ,增加:                             smtpd_sasl_auth_enable = yes                                broken_sasl_auth_clients = yes                                                smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,check_relay_domains
smtpd_client_restrictions = permit_sasl_authenticated

6.   postfix reload

完成以上设置以后,在客户端发信的时候就需要验证了

 

 

为了让中文网页没乱码
找到
AddDefaultCharset iso8859-1
把后面的iso8859-1改为gb2312 或者是干脆off

 

这个可以解决邮件服务器的帮助和html方式写信乱码的问题~

 

 

增加虚拟域名testpost还支持虚拟域名,配置方法如下:

  81 首先把otherdomain.com(要用的虚拟域名)的MX记录指向mail.test.com(本域的邮件服务器),这个配置在负责解析otherdomain.comDNS做。

  82 为了让用户可以使用username@otherdomain.com收发邮件,我们必须配置虚拟域,在main.cf文件中,我们添加以下内容:

virtual_maps = hash:/etc/postfix/virtual

  这里假定用户tomtestwhite需要使用这个虚拟域名,当然首先要在系统中添加这几个用户(用useraddadduser填加系统用户),然后建立/etc/postfix/virtual文件并添加以下内容:

othername.com anything

tom@othername.com tom

test@othername.com test

white@othername.com white

  之后,用postmap命令生成虚拟域数据库

postmap /etc/postfix/virtual

  明白上面配置文件的例子,你就可以非常灵活的多域名邮件系统了。

 

 

 

virtual_maps = hash:/etc/postfix/virtual

@test.com

实际配置virtual的例子

postmap /etc/postfix/virtual

设置好了不用重启postfix呵呵。。。

 

 

试过yum方式安装,对于apache是源码安装的需要更改cgibin目录

并且做符号链接过去,什么时候有空再试试!

 

 

 

解决签名过长导致无法正常保存设置的方法

 

[root@test webmail]# pwd

/home/chuy/.openwebmail/webmail

 

删除signature 即可