




已阅读5页,还剩7页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
图文: Linux CentOS 5.5 邮件服务器 postfix dovecot postfixadmin squirrelmail 配置详解星期二, 2010/06/29 - 00:28 admin Dovecot postfix postfixadmin squirrelmail 邮件服务器 安装Postfix安装Postfix之前,你可能需要删除系统中已经带的sendmail。yum -y remove sendmail到Postfix官方网站 / 选择下载点下载最新的稳定版源码。 wget /mirrors/postfix-release/official/postfix-2.7.1.tar.gz #下载tar zxvf postfix-2.7.1.tar.gz #解压cd postfix-* #进入postfix目录安装依赖包:yum install -y db*-devel安装 cyrus-saslyum install cyrus-sasl cyrus-sasl-devel添加postfix需要的帐号 postfix 和 组postdrop。adduser postfix -shell /bin/false -Mgroupadd postdrop安装Mysql数据库,如何安装Mysql数据库,请暂时查阅其他网站。cat /etc/ld.so.conf &1 $config_directory/$process_name.$process_id.log & sleep 5# debugger_command =# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen# -dmS $process_name gdb $daemon_directory/$process_name# $process_id & sleep 1sendmail_path = /usr/sbin/sendmailnewaliases_path = /usr/bin/newaliasesmailq_path = /usr/bin/mailqsetgid_group = postdrop# html_directory: The location of the Postfix HTML documentation.#html_directory = no# manpage_directory: The location of the Postfix on-line manual pages.#manpage_directory = /usr/local/man# sample_directory: The location of the Postfix sample configuration files.# This parameter is obsolete as of Postfix 2.1.#sample_directory = /etc/postfix# readme_directory: The location of the Postfix README files.#readme_directory = no#=Vritual Mailbox settings=virtual_mailbox_base = /home/vmail/virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cfvirtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cfvirtual_alias_domains =virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cfvirtual_uid_maps = static:12345 # 这里要和你添加的postfix用户的uid一致, 查看方法为 cat /etc/passwdvirtual_gid_maps = static:12345 # 这里要和你添加的postfix用户的gid一致, 查看方法为 cat /etc/passwdvirtual_minimum_uid = 501 # 这里要保证nginx/apache可以修改/home/vmail目录, 查看方法为 cat /etc/passwdvirtual_transport = virtualmaildrop_destination_recipient_limit = 1maildrop_destination_concurrency_limit = 1#=QUOTA=message_size_limit = 5242880 #每个邮件最大尺寸5Mmailbox_size_limit = 209715200 #邮箱大小限制200Mvirtual_mailbox_limit = 209715200#虚拟邮箱大小限制200Mvirtual_create_maildirsize = yesvirtual_mailbox_extended = yesvirtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_limit_maps.cfvirtual_mailbox_limit_override = yesvirtual_maildir_limit_message = Sorry, the users maildir has overdrawn his diskspace quota, please try again later.virtual_overquota_bounce = yes#=SASL=smtpd_sasl_type = dovecot #使用dovecot进行验证smtpd_sasl_path = /var/run/dovecot/auth-client #与dovecot.conf中如下的的path一致broken_sasl_auth_clients = yessmtpd_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#列出本地用户的列表,以便验证 From: 本地域 To: 本地域#smtpd_sender_login_maps =# mysql:/etc/postfix/mysql_virtual_sender_maps.cf,# mysql:/etc/postfix/mysql_virtual_alias_maps.cf#smtpd_reject_unlisted_sender = yes#本地域向本地域发信也需要SMTP身份验证#smtpd_sender_restrictions =# reject_sender_login_mismatch,# reject_authenticated_sender_login_mismatch,# reject_unauthenticated_sender_login_mismatch#smtpd_error_sleep_time = 1s#smtpd_soft_error_limit = 10#smtpd_hard_error_limit = 20smtpd_sasl_auth_enable = yessmtpd_sasl_local_domain = $myhostnamesmtpd_sasl_security_options = noanonymoussmtpd_sasl_application_name = smtpdsmtpd_banner=$myhostname ESMTP Version not Available#=SSL/TLS=smtp_use_tls = yessmtpd_use_tls = yessmtp_tls_note_starttls_offer = yessmtpd_tls_key_file = /etc/ssl/smtpd.pemsmtpd_tls_cert_file = /etc/ssl/smtpd.pemsmtpd_tls_CAfile = /etc/ssl/smtpd.pemsmtpd_tls_loglevel = 1smtpd_tls_received_header = yessmtpd_tls_session_cache_timeout = 3600stls_random_source = dev:/dev/urandom#=BCC=创建 mysql_virtual_alias_maps.cf 文件:cat /etc/postfix/mysql_virtual_alias_maps.cf /etc/postfix/mysql_virtual_domains_maps.cf /etc/postfix/mysql_virtual_mailbox_limit_maps.cf /etc/postfix/mysql_virtual_mailbox_maps.cf /usr/local/etc/dovecot-sql.conf EOFdriver = mysqlconnect = host=/tmp/mysql.sock dbname=postfix user=postfix password=LcGa4KXUUPsBNuGAdefault_pass_scheme = MD5#password_query = select username as user,password from mailbox where substring(username,1,instr(username,)-1) = %n and active=1 #这样写的话,不同的域有相同的用户的话会出现多个匹配导致认证失败password_query = select username as user,password from mailbox where username = %u and active=1user_query = select concat(/home/vmail/, maildir) as home, 12345 as uid, 12345 as gid from mailbox where username=%u and active=1EOF启动 Dovecotdovecot安装postfixadmin首先到官方下载postfixadmin。wget /project/postfixadmin/postfixadmin/postfixadmin_2.3.tar.gz?use_mirror=cdnetworks-kr-1解压缩tar zxvf postfixadmin_2.3.tar.gz把postfixadmin目录ln到你的域名一个子目录下ln -s postfixadmin_2.3 /home/www/youdomain/postfixadmin配置 postfixadmin 数据库。先登录你的phpmyadmin Mysql数据库管理系统,并且添加一个数据postfix。添加数据库用户postfix,并且设置好密码。通过命令行形式完成的代码如下CREATE DATABASE postfix; CREATE USER postfixlocalhost IDENTIFIED BY choose_a_password; GRANT ALL PRIVILEGES ON postfix . * TO postfixlocalhost;编辑config.inc.php
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 土石方工程材料选择与运输方案
- 牛羊屠宰厂建设项目环境影响报告书
- 风光制氢醇一体化项目节能评估报告
- 国际销售合同4篇
- 2025年叉车考试难题库及答案
- 建筑施工电梯安装、拆除专项建筑施工组织设计及对策
- 上海市房地产经纪合同模板
- 离婚后宅基地房屋分割与继承权处理协议
- 低碳环保社区物业合同转让及绿色生活协议
- 离婚后子女抚养费增加与共同财产分割补充协议
- 2025年机组A级检修安健环管理方案
- 2025-2030中国高尔夫俱乐部行业市场现状分析及竞争格局与投资发展研究报告
- 联合办刊协议书
- 不同负重增强式训练对跆拳道运动员下肢肌肉力量和灵敏素质的影响
- 网络安全等级保护备案表(2025版)
- 村书记考试试题及答案
- 《库存优化模型》课件
- 幼儿园办公家具教学家具采购招标文件
- 生产承包劳务合同协议
- 2023-2024部编人教版5五年级语文上册电子课本课件【全册】
- 抓草机管理制度
评论
0/150
提交评论