免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3380 | 回复: 5
打印 上一主题 下一主题

RHEL5上安装支持虚拟域,查杀病毒,垃圾过滤的邮件系统 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-28 17:01 |只看该作者 |倒序浏览
RHEL5上安装邮件系统Postfix+dovecot+MailScanner+spamassassin+f-prot+PostfixAdmin+SquirrelMail
作者:LEO  http://zqli.cublog.cn/
概要:

本文讲述在安装了RHEL5上,配置一台Postfix邮件服务器的过程。实现虚拟域、虚拟用户、POP3、POP3S、SMTP、SMTPS、IMAP、IMAPS、防毒、防SPAM、网页邮件功能。



涉及的软件

1.        Red Hat Enterprise Linux Server release 5 (Tikanga)

2.        MySQL

系统自带

用于存储虚拟域、虚拟用户等信息。

3.        Apache

系统自带

运行网页邮件SquirrelMail和PostfixAdmin时使用。

4.        PHP

系统自带

运行网页邮件SquirrelMail和PostfixAdmin时使用。

5.        Cyrus-sasl

系统自带

实现带验证的SMTP时使用。

6.        Courier authentication library

http://download.chinaunix.net/下载

实现带验证的SMTP时使用。

7.        Postfix

http://www.postfix.org 下载

一个MTA,虽然RHEL 4 自带Postfix,但因为其不支持SSL及Mysql,所以我们需要自行编译。

8.        PostfixAdmin

http://www.postfixadmin.com/ 下载

虚拟域、虚拟用户等信息是放在Mysql内的,安装PostfixAdmin后,就可以用浏览器管理这些信息。

9.        SquirrelMail

系统自带或从http://www.squirrelmail.org/download.php下载

一个基于IMAP的Webmail客户端。

10.        Dovecot

系统自带

提供POP3,POP3S,IMAP,IMAPS功能。

11.        F-prot

http://www.f-prot.com 下载,Linux workstation 版个人使用是免费的

提供杀毒功能,据说速度和病毒库比开源的Clamav好。

12.        SpamAssassin

系统自带

提供过滤垃圾邮件功能。

13.        MailScanner

http://www.mailscanner.info/ 下载

Postfix 是使用MailScanner 调用f-prot 与SpamAssassin,或者其它调用方法效率更好,但MailScanner配置比较直观。



作者:LEO  http://zqli.cublog.cn/

配置过程

1.        基本软件安装

默认方式安装RHEL5,不选中任何类型服务器(如WEB服务器,开发服务器,虚拟服务器等),安装上文中提及“系统自带”的软件。

下载其它需要的软件。



安装MySQL

[root@rhel5 Server]# rpm -ivh mysql-5.0.22-2.1.i386.rpm

[root@rhel5 Server]# rpm -ivh mysql-server-5.0.22-2.1.i386.rpm

[root@rhel5 Server]# chkconfig mysqld on



安装Apache

[root@rhel5 Server]# rpm -ivh httpd-2.2.3-6.el5.i386.rpm

[root@rhel5 Server]# rpm -ivh httpd-manual-2.2.3-6.el5.i386.rpm

[root@rhel5 Server]# chkconfig httpd on



安装PHP

[root@rhel5 Server]# rpm -ivh php-common-5.1.6-5.el5.i386.rpm

[root@rhel5 Server]# rpm -ivh php-pdo-5.1.6-5.el5.i386.rpm

[root@rhel5 Server]# rpm -ivh php-mysql-5.1.6-5.el5.i386.rpm

[root@rhel5 Server]# rpm -ivh php-cli-5.1.6-5.el5.i386.rpm

[root@rhel5 Server]# rpm -ivh php-5.1.6-5.el5.i386.rpm



安装Cyrus-sasl

[root@rhel5 Server]# rpm –ivh cyrus-sasl-2.1.22-4.i386.rpm



安装squirrelmail

[root@rhel5 Server]# rpm -ivh squirrelmail-1.4.8-4.el5.noarch.rpm



安装dovecot

[root@rhel5 Server]# rpm -ivh dovecot-1.0-1.2.rc15.el5.i386.rpm



安装spamassassin

[root@rhel5 Server]# rpm -ivh perl-IO-Zlib-1.04-4.2.1.noarch.rpm

[root@rhel5 Server]# rpm -ivh perl-Archive-Tar-1.30-1.fc6.noarch.rpm

[root@rhel5 Server]# rpm -ivh perl-Digest-SHA1-2.11-1.2.1.i386.rpm

[root@rhel5 Server]# rpm -ivh perl-Socket6-0.19-3.fc6.i386.rpm

[root@rhel5 Server]# rpm -ivh perl-IO-Socket-INET6-2.51-2.fc6.noarch.rpm

[root@rhel5 Server]# rpm -ivh perl-Net-SSLeay-1.30-4.fc6.i386.rpm

[root@rhel5 Server]# rpm -ivh perl-IO-Socket-SSL-1.01-1.fc6.noarch.rpm

[root@rhel5 Server]# rpm -ivh perl-Digest-HMAC-1.01-15.noarch.rpm

[root@rhel5 Server]# rpm -ivh perl-Net-IP-1.25-2.fc6.noarch.rpm

[root@rhel5 Server]# rpm -ivh perl-Net-DNS-0.59-1.fc6.i386.rpm

[root@rhel5 Server]# rpm -ivh spamassassin-3.1.7-4.el5.i386.rpm



[root@rhel5 ~]# tar xvf postfixadmin-2.1.0.gz

[root@rhel5 ~]# mv postfixadmin-2.1.0 /var/www/html/pa

[root@rhel5 ~]# service mysqld start

[root@rhel5 ~]# mysql -uroot < /var/www/html/pa/DATABASE_MYSQL.TXT

[root@rhel5 ~]# cp /var/www/html/pa/config.inc.php.sample /var/www/html/pa/config.inc.php

打开浏览器访问 http://IP/pa,然后按提示增加两个虚拟域名mailidc.cn 和 zqli.com,增加两个虚拟用户leo@mailidc.cnzqli@zqli.com



[root@rhel5 ~]# vi /etc/httpd/conf/httpd.conf

加入以下内容,加强安全性,要不每个人不经认证都可以用postfixadmin

<Directory "/var/www/html/pa" >

Options FollowSymLinks

DirectoryIndex index.php

AllowOverride None

AuthType Basic

authname Private

authuserfile /var/phpaccess/leo

require valid-user

Order allow,deny

Allow from all

</Directory>



注意/var/phpaccess/leo是我的密码文件名

[root@rhel5 ~]# mkdir /var/phpaccess

[root@rhel5 ~]# touch /var/phpaccess/leo

[root@rhel5 ~]# cd /var/phpaccess/

[root@rhel5 phpaccess]# htpasswd -c leo leo  #添加用户leo

New password:

Re-type new password:

Adding password for user leo



然后我们就可以打开网页浏览器来访问了

http://ip/pa

至此postfixadmin配置完毕。在这里我推荐对mysql比较了解的人更改默认的postfix连接密码:默认数据名为postfix,用户名密码都是postfix。我们下面的配置还是用回默认的用户名和密码。



作者:LEO  http://zqli.cublog.cn/

安装postfix所依赖的包

[root@rhel5 Server]# rpm -ivh db4-devel-4.3.29-9.fc6.i386.rpm

[root@rhel5 Server]# rpm -ivh e2fsprogs-devel-1.39-8.el5.i386.rpm

[root@rhel5 Server]# rpm -ivh krb5-devel-1.5-17.i386.rpm

[root@rhel5 Server]# rpm -ivh zlib-devel-1.2.3-3.i386.rpm

[root@rhel5 Server]# rpm -ivh openssl-devel-0.9.8b-8.3.el5.i386.rpm

[root@rhel5 Server]# rpm -ivh mysql-devel-5.0.22-2.1.i386.rpm

[root@rhel5 Server]# rpm -ivh cyrus-sasl-devel-2.1.22-4.i386.rpm



编译、配置Postfix

先删除sendmail

[root@rhel5 ~]# rpm -e sendmail –nodeps

[root@rhel5 ~]# groupadd postfix

[root@rhel5 ~]# groupadd postdrop

[root@rhel5 ~]# useradd postfix -g postfix -c "Postfix user" -d /dev/null -s /sbin/nologin

[root@rhel5 ~]# tar zxvf postfix-2.4.3.tar.gz

[root@rhel5 postfix-2.4.3]# make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_TLS -DUSE_CYRUS_SASL -DUSE_SASL_AUTH -I/usr/include/sasl' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm -L/usr/lib -lssl -lcrypto -lsasl2'

[root@rhel5 postfix-2.4.3]# make

[root@rhel5 postfix-2.4.3]# make install

注:“make install”命令后的所有问题都直接敲回车键即可。



编辑/etc/postfix/main.cf 为以下内容

#=====================BASE=========================

myhostname = mail.mailidc.cn

mydomain = mailidc.cn

myorigin = $mydomain

mydestination = $myhostname localhost localhost.$mydomain

mynetworks = 192.168.1.0/24 127.0.0.0/8

inet_interfaces = all

#=====================Vritual Mailbox settings=========================

virtual_mailbox_base = /var/spool/mail

virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf

virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf

virtual_alias_domains =

virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf

virtual_uid_maps = static:501

virtual_gid_maps = static:502

virtual_transport = virtual

maildrop_destination_recipient_limit = 1

maildrop_destination_concurrency_limit = 1

#====================QUOTA========================

message_size_limit = 14336000

virtual_mailbox_limit = 20971520

virtual_create_maildirsize = yes

virtual_mailbox_extended = yes

virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf

virtual_mailbox_limit_override = yes

virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.

virtual_overquota_bounce = yes

#====================SASL========================

broken_sasl_auth_clients = yes

smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination,permit

smtpd_sasl_auth_enable = yes

smtpd_sasl_local_domain = $myhostname

smtpd_sasl_security_options = noanonymous

smtpd_sasl_application_name = smtpd

smtpd_banner=$myhostname ESMTP "Version not Available"



readme_directory = no

sample_directory = /etc/postfix

sendmail_path = /usr/sbin/sendmail

html_directory = no

setgid_group = postdrop

command_directory = /usr/sbin

manpage_directory = /usr/local/man

daemon_directory = /usr/libexec/postfix

newaliases_path = /usr/bin/newaliases

mailq_path = /usr/bin/mailq

queue_directory = /var/spool/postfix

mail_owner = postfix



编辑/etc/postfix/mysql_virtual_alias_maps.cf 为以下内容

user = postfix

password = postfix

hosts = localhost

dbname = postfix

table = alias

select_field = goto

where_field = address



编辑/etc/postfix/mysql_virtual_domains_maps.cf 为以下内容

user = postfix

password = postfix

hosts = localhost

dbname = postfix

table = domain

select_field = description

where_field = domain



编辑/etc/postfix/mysql_virtual_mailbox_limit_maps.cf 为以下内容

user = postfix

password = postfix

hosts = localhost

dbname = postfix

table = mailbox

select_field = quota

where_field = username



编辑/etc/postfix/mysql_virtual_mailbox_maps.cf 为以下内容

user = postfix

password = postfix

hosts = localhost

dbname = postfix

table = mailbox

select_field = maildir

where_field = username



配置SMTP 认证

编辑 /usr/lib/sasl2/smtpd.conf 为以下内容

pwcheck_method: authdaemond

log_level: 3

mech_list: plain login

authdaemond_path:/usr/local/courier-authlib/var/spool/authdaemon/socket



安装Courier authentication library

[root@rhel5 ~]# tar jxvf courier-authlib-0.58.tar.bz2

[root@rhel5 ~]# cd courier-authlib-0.58

[root@rhel5 courier-authlib-0.58]# ./configure --prefix=/usr/local/courier-authlib --without-authpam --without-authldap --without-authpwd --without-authshadow --without-authvchkpw --without-authpgsql  --with-authmysql --with-mysql-libs=/usr/lib/mysql --with-mysql-includes=/usr/include/mysql --with-redhat  --with-authmysqlrc=/usr/local/courier-authlib/etc/authmysqlrc  --with-authdaemonrc=/usr/local/courier-authlib/etc/authdaemonrc CFLAGS="-march=i686 -O2 -fexpensive-optimizations" CXXFLAGS="-march=i686 -O2 -fexpensive-optimizations"



[root@rhel5 courier-authlib-0.58]# make

[root@rhel5 courier-authlib-0.58]# make install

[root@rhel5 courier-authlib-0.58]# chmod 755 /usr/local/courier-authlib/var/spool/authdaemon/

[root@rhel5 courier-authlib-0.58]# cp /usr/local/courier-authlib/etc/authdaemonrc.dist /usr/local/courier-authlib/etc/authdaemonrc



修改/usr/local/courier-authlib/etc/authdaemonrc 文件

authmodulelist="authmysql"

authmodulelistorig="authmysql"

daemons=10



编辑/usr/local/courier-authlib/etc/authmysqlrc 为以下内容,其中501,502 为postfix 用户的UID和GID。

MYSQL_SERVER         localhost

MYSQL_USERNAME       postfix

MYSQL_PASSWORD       postfix

MYSQL_SOCKET         /var/lib/mysql/mysql.sock

MYSQL_DATABASE       postfix

MYSQL_USER_TABLE     mailbox

MYSQL_CRYPT_PWFIELD   password

MYSQL_UID_FIELD       '501'

MYSQL_GID_FIELD       '502'

MYSQL_LOGIN_FIELD     username

MYSQL_HOME_FIELD     concat('/var/spool/mail/',maildir)

MYSQL_MAILDIR_FIELD   concat('/var/spool/mail/',maildir)

MYSQL_NAME_FIELD     name



[root@rhel5 courier-authlib-0.58]# cp courier-authlib.sysvinit /etc/init.d/courier-authlib

[root@rhel5 courier-authlib-0.58]# chkconfig --level 35 courier-authlib on

[root@rhel5 courier-authlib-0.58]# chmod 755 /etc/init.d/courier-authlib

[root@rhel5 courier-authlib-0.58]# service courier-authlib start



此时你已经拥有一台带验证的SMTP 服务器,用Outlook 、Foxmail测试一下吧,用户名采用usename@domainName.com 形式。到了这一步,可以正常地发信了。



作者:LEO  http://zqli.cublog.cn/

增加SSL功能,配置SMTPS服务

在/etc/postfix/main.cf 增加以下内容

smtp_use_tls = yes

smtpd_use_tls = yes

smtp_tls_note_starttls_offer = yes

smtpd_tls_key_file = /etc/ssl/smtpd.pem

smtpd_tls_cert_file = /etc/ssl/smtpd.pem

smtpd_tls_CAfile = /etc/ssl/smtpd.pem

smtpd_tls_loglevel = 1

smtpd_tls_received_header = yes

smtpd_tls_session_cache_timeout = 3600s

tls_random_source = dev:/dev/urandom



生成证书

# mkdir /etc/ssl

# cd /etc/ssl

# openssl req -new -x509 -nodes -out smtpd.pem -keyout smtpd.pem -days 3650



重新启动postfix

# postfix reload



这时SMTPS功能应该能正常工作了。有能力测试的网友们请验证一下这功能。



配置Dovecot,增加IMAP,IMAPS,POP3,POP3S功能

由于Dovecot 是系统自带的,配置两个文件,再生成证书就可以了。



编辑 /etc/dovecot.conf 为以下内容

base_dir = /var/run/dovecot/

protocols = imap imaps pop3 pop3s

listen = *

ssl_disable = no

ssl_cert_file = /etc/pki/dovecot/certs/dovecot.pem

ssl_key_file = /etc/pki/dovecot/private/dovecot.pem

login_dir = /var/run/dovecot/login

default_mail_env = maildir:/var/spool/mail/%u/

auth default {

mechanisms = plain login digest-md5 cram-md5

  passdb sql {

    args = /etc/dovecot-mysql.conf

    }

  userdb sql {

    args = /etc/dovecot-mysql.conf

  }

}

first_valid_uid = 501





编辑 /etc/dovecot-mysql.conf 为以下内容

driver = mysql

connect = host=/var/lib/mysql/mysql.sock dbname=postfix user=postfix password=postfix

default_pass_scheme = CRYPT

password_query = SELECT password FROM mailbox WHERE username = '%u'

user_query = SELECT maildir, 501 AS uid, 502 AS gid FROM mailbox WHERE username = '%u'





生成证书

[root@rhel5 ssl]# mkdir /etc/ssl/certs

[root@rhel5 ssl]# mkdir /etc/ssl/private

[root@rhel5 ssl]# cd /usr/share/doc/dovecot-1.0/examples

[root@rhel5 examples]# sh mkcert.sh



启动Dovecot 服务

[root@rhel5 ~]# chown postfix /var/spool/mail/

# service dovecot start

# chkconfig --level 35 dovecot on



顺利的话,此时SMTP、SMTPS、POP3、POP3S已经配置完成。

作者:LEO  http://zqli.cublog.cn

论坛徽章:
0
2 [报告]
发表于 2007-08-28 17:02 |只看该作者
作者:LEO  http://zqli.cublog.cn/

http://www.squirrelmail.org/下载软件squirrelmail

[root@rhel5 html]# tar zxvf squirrelmail-1.4.10a.tar.gz

[root@rhel5 html]# mv squirrelmail-1.4.10a webmail

[root@rhel5 html]# cd webmail/

[root@rhel5 webmail]# cd config

[root@rhel5 config]# ./conf.pl



SquirrelMail Configuration : Read: config_default.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 >>



1、选择1,进入组织设置

Organization Preferences

1.  Organization Name      : SquirrelMail

2.  Organization Logo      : ../images/sm_logo.png

3.  Org. Logo Width/Height : (308/111)

4.  Organization Title     : SquirrelMail $version

5.  Signout Page           :

6.  Top Frame              : _top

7.  Provider link          : http://www.squirrelmail.org/

8.  Provider name          : SquirrelMail



R   Return to Main Menu

C   Turn color on

S   Save data

Q   Quit





2、选择2,进入服务器选项

General

-------

1.  Domain                 : mailidc.cn

2.  Invert Time            : false

3.  Sendmail or SMTP       : SMTP



A.  Update IMAP Settings   : localhost:143 (other)

B.  Update SMTP Settings   : localhost:25



R   Return to Main Menu

C   Turn color on

S   Save data

Q   Quit



3、选择4,进入全局设置

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

1.  Data Directory              : /var/www/html/webmail/

2.  Attachment Directory        : /var/www/html/webmail/attach/

3.  Directory Hash Level        : 0

4.  Default Left Size           : 150

5.  Usernames in Lowercase      : true

6.  Allow use of priority       : true

7.  Hide SM attributions        : true

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    : false

11. Allow server-side sorting   : false

12. Allow server charset search : false

13. Enable UID support          : true

14. PHP session name            : SQMSESSID

15. Location base               :



#########################################################



4、改好后选择保存并退出。再检查config/config.php文件,如果$data_dir为空的话,再把正确的值填入。这是它的一个BUG。



将整个目录拷贝到DocumentRoot下,将目录改名为webmail,拷贝webmail/data目录到$data_dir 设置的地方,再建立设置的attachment目录,一起CHMOD 777 即可。

[root@rhel5 html]# chown -R apache:root webmail



安装 F-PROT (F-PROT Antivirus for Linux)

http://files.f-prot.com/files/linux-x86/fp-linux-ws.rpm下载 f-prot

[root@rhel5 ~]# rpm -ivh fp-linux-ws.rpm



确认spamassassin是否有安装:

# rpm -qa |grep spam

如没有安装就安装该包

[root@rhel5 Server]# rpm -ivh spamassassin-3.1.7-4.el5.i386.rpm



修改spamassassin的设定档local.cf



可到站点http://www.yrex.com/spam/spamconfig.php自动生成local.cf的内容。



# vi /etc/mail/spamassassin/local.cf

# SpamAssassin config file for version 3.x

# NOTE: NOT COMPATIBLE WITH VERSIONS 2.5 or 2.6

# See http://www.yrex.com/spam/spamconfig25.php for earlier versions

# Generated by http://www.yrex.com/spam/spamconfig.php (version 1.50)



# How many hits before a message is considered spam.

required_score           5.0



# Change the subject of suspected spam

rewrite_header subject         *****SPAM*****



# Encapsulate spam in an attachment (0=no, 1=yes, 2=safe)

report_safe             1



# Enable the Bayes system

use_bayes               1



# Enable Bayes auto-learning

bayes_auto_learn              1



# Enable or disable network checks

skip_rbl_checks         0

use_razor2              1

use_dcc                 1

use_pyzor               1



# Mail using languages used in these country codes will not be marked

# as being possibly spam in a foreign language.

ok_languages            all



# Mail using locales used in these country codes will not be marked

# as being possibly spam in a foreign language.

ok_locales              all



启动SpamAssassin

# service spamassassin start

# chkconfig --level 35 spamassassin on



安装MailScanner

下载http://www.mailscanner.info/file ... 4.60.8-1.rpm.tar.gz

版本.rpm.tar.gz

# tar zxvf MailScanner-4.60.8-1.rpm.tar.gz

# cd MailScanner-4.60.8-1

# ./install.sh



建立Mailscanner支持spamassassin所需的目录:

# mkdir /var/spool/MailScanner/spamassassin

# chmod 700 /var/spool/MailScanner/spamassassin

# chown postfix.postfix /var/spool/MailScanner/spamassassin



作者:LEO  http://zqli.cublog.cn/

MailScanner设定

1修改MailScanner.conf

# vi /etc/MailScanner/MailScanner.conf

Run As User = postfix

Run As Group = postfix

Incoming Queue Dir = /var/spool/postfix/hold

Outgoing Queue Dir = /var/spool/postfix/incoming

MTA = postfix

Virus Scanners = f-prot

Always Include SpamAssassin Report = yes

Use SpamAssassin = yes

Required SpamAssassin Score = 4

SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin

SpamAssassin Install Prefix = /usr/bin

SpamAssassin Local Rules Dir = /etc/MailScanner



2、修改 postfix支持mailscanner

# vi /etc/postfix/main.cf

变更以下的值

header_checks = regexp:/etc/postfix/header_checks

# vi /etc/postfix/header_checks

/^Received:/ HOLD

注意, 在 / 之前不可以有空白!



3、变更目录权限

# chown -R postfix.postfix /var/spool/MailScanner/incoming

# chown postfix.postfix /var/spool/MailScanner/quarantine

停止postfix执行、启动MailScanner

# postfix stop

# service MailScanner start

设定MailScanner,当MTA = postfix时,会自己启动postfix,如有设定启动postfix的请先将它停掉



定期更新病毒定义文件

# crontab -e

0 4 * * * /usr/local/f-prot/tools/check-updates.pl

并将原本在/etc/cron.hourly/update_virus_scanners 删除掉



测试SpamAssassin

发一封邮件带如下内容,接收后,标题应该带有标记:

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X



测试防毒功能

可以到网上找一些病毒样本或

登录:http://www.windowsecurity.com/emailsecuritytest/

发送一些测试邮件来测试邮件系统的防病毒功能。



这样,我们就已经搭建起一个基本的邮件系统。

作者:LEO  http://zqli.cublog.cn/



提示:

如果要邮箱的存储格式使用domain.ltd/username的形式,要这样设置:

# vi /var/www/html/pa/config.inc.php

$CONF['domain_path'] = 'YES';

$CONF['domain_in_mailbox'] = 'NO';



# vi /etc/dovecot.conf

default_mail_env = maildir:/var/spool/mail/%d/%n

论坛徽章:
0
3 [报告]
发表于 2007-08-28 17:03 |只看该作者
好不容易解决了很多问题,终于把文档搞出来了,希望大家支持~~~~

论坛徽章:
0
4 [报告]
发表于 2007-08-28 17:14 |只看该作者
强人,强烈支持!

先CP,以后有需要再安装!

论坛徽章:
0
5 [报告]
发表于 2008-04-29 15:21 |只看该作者
顶一下,正在照着配置。中间遇到了一些问题,不知道弄玩能不能收发邮件。

论坛徽章:
0
6 [报告]
发表于 2008-04-29 16:04 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP