dovecot主要配置文件
为什么80%的码农都做不了架构师?>>>
主配置文件 /usr/local/etc/dovecot/dovecot.conf
# Protocols we want to be serving.
protocols = imap pop3 lmtp# A comma separated list of IPs or hosts where to listen in for connections.
# "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
# If you want to specify non-default ports or anything more complex,
# edit conf.d/master.conf.
listen = *
认证文件 /usr/local/etc/dovecot/conf.d/10-auth.conf
disable_plaintext_auth = no
auth_mechanisms = plain login
#!include auth-system.conf.ext
!include auth-sql.conf.ext
ssl配置文件 /usr/local/etc/dovecot/conf.d/10-ssl.conf 设置为no,注释掉ssl_cert,如要启用,则要创建ssl_key
ssl = no
#ssl_cert = </etc/ssl/certs/dovecot.pem
#ssl_key = </etc/ssl/private/dovecot.pem
日志文件 /usr/local/etc/dovecot/conf.d/10-logging.conf 指定的日志文件记得给权限,我指定的777
log_path = /var/log/dovecot.log
auth_debug = yes
mail_debug = yes
邮箱配置 /usr/local/etc/dovecot/conf.d/10-mail.conf uid和gid是开始建立的postfix的id
mail_home = /home/xmail/%d/%n
mail_location = maildir:~/Maildir
first_valid_uid = 1010
first_valid_gid = 1010
配合postfix /usr/local/etc/dovecot/conf.d/10-master.conf
unix_listener auth-userdb {mode = 0600user = tmailgroup = tmail}
# Postfix smtp-authunix_listener /var/spool/postfix/private/auth {mode = 0666user = postfixgroup = postfix}
指定sql配置文件 /usr/local/etc/dovecot/conf.d/auth-sql.conf.ext
passdb {driver = sql# Path for SQL configuration file, see example-config/dovecot-sql.conf.extargs = /usr/local/etc/dovecot/dovecot-sql.conf.ext
}
userdb {driver = sqlargs = /usr/local/etc/dovecot/dovecot-sql.conf.ext
}
mysql配置文件 /usr/local/etc/dovecot/dovecot-sql.conf.ext
driver = mysql
connect = host=localhost dbname=postfix user=root password=123456
default_pass_scheme = MD5
password_query = \SELECT username,password \FROM mailbox WHERE username = '%u' AND active = '1'
##下面的1020 是指邮件存储目录的uid gid
user_query = \SELECT maildir,1020 AS uid,1020 AS gid \FROM mailbox WHERE username = '%u' AND active = '1'
邮箱目录 /usr/local/etc/dovecot/conf.d/15-mailboxes.conf
##
## Mailbox definitions
### NOTE: Assumes "namespace inbox" has been defined in 10-mail.conf.
namespace inbox {#mailbox name {# auto=create will automatically create this mailbox.# auto=subscribe will both create and subscribe to the mailbox.#auto = no# Space separated list of IMAP SPECIAL-USE attributes as specified by# RFC 6154: \All \Archive \Drafts \Flagged \Junk \Sent \Trash#special_use =#}# These mailboxes are widely used and could perhaps be created automatically:mailbox Drafts {auto = subscribespecial_use = \Drafts}mailbox Junk {auto = subscribespecial_use = \Junk}mailbox Trash {auto = subscribespecial_use = \Trash}# For \Sent mailboxes there are two widely used names. We'll mark both of# them as \Sent. User typically deletes one of them if duplicates are created.mailbox Sent {auto = subscribe # autocreate and autosubscribe the Sent mailboxspecial_use = \Sent}mailbox "Sent Messages" {special_use = \Sent}# If you have a virtual "All messages" mailbox:mailbox virtual/All {special_use = \All}# If you have a virtual "Flagged" mailbox:mailbox virtual/Flagged {auto = subscribespecial_use = \Flagged}
}
转载于:https://my.oschina.net/hxily/blog/465090
dovecot主要配置文件相关推荐
- 红旗linux可以做服务器吗,在红旗Linux中的E-MAIL服务器(postfix及dovecot)配置过程...
在红旗Linux中打开一个系统终端,使用纯文本方式配置邮件服务器: 1.进入postfix服务(smtp服务,用来发送服务)配置文件目录:输入如下命令: cd /etc/postfix 2.使用邮件服 ...
- LAMP+Postfix+Dovecot+Postfixadmin搭建邮件管理系统(六)
接上期,我们部署完了Postfix服务,下面开始部署Dovecot服务. 七.部署Dovecot服务 1.下载dovecot安装包 [root@Mail ~]# wget -c https://dov ...
- CentOS6 安装Sendmail + Dovecot + Squirrelmail
本文记录在本地虚拟机CentOS6上搭建Sendmail + Dovecot + Squirrelmail 的Webmail环境的过程,仅仅是本地局域网的环境测试,不配置DNS, 也没有安全认证,Sq ...
- POP / IMAP 服务器的构建( Dovecot )
原贴:http://www.centospub.com/make/dovecot_pop3.html < POP / IMAP 服务器的构建( Dovecot ) > (最近更新日:200 ...
- PostFix+Dovecot 部署邮件系统
Postfix 是一种电子邮件服务器,它是由任职于IBM华生研究中心 (T.J. Watson Research Center) 的荷兰籍研究员Wietse Venema为了改良sendmail邮件服 ...
- Postfix+dovecot 部署
Postfix+dovecot 部署 Postfix: 是一个标准的MTA(Mail Transfer Agent)服务器,它负责通过SMTP协议管理发送到本机的邮件以及由本机发向外界的邮件.在本文中 ...
- linux邮件系统之Postfix与Dovecot
linux邮件系统之Postfix 邮件系统介绍 部署前提 邮件系统部署-Postfix 邮件系统部署-Dovecot 邮件的别名 检测 window系统 linux系统 邮件系统介绍 电子邮件系统基 ...
- Linux环境下使用Postfix和Dovecot搭建邮件系统
1. 实验环境: Linux rhel6.5作为邮件服务器,IP:192.168.20.20 Windows server 2008上安装Foxmail,作为邮件测试的客户端,IP:192.168.2 ...
- Postfix邮件系统安装与配置:Postfix,Cyrus-IMAP,Cyrus-sasl,Dovecot和SPF
最近发现邮件发送服务还是挺重要的.可能对于每天只有一百来封的邮件发送需求的个人博主来说,一个免费的邮箱提供的免费SMTP邮件发送服务就可以满足了,但是对于一些大型的网站.论坛和平台,每天的邮件发送量可 ...
最新文章
- 剑指offer:面试题14- I. 剪绳子
- 79-定义不同颜色字体
- morphologyEx 形态学
- Dubbo整合hystrix
- 对象后加一个值 php_PHP 对象使用
- Spring配置文件-Bean实例化的三种方式
- Spring Boot 面试题
- Nunit-Writing Tests
- oracle rman是干嘛的,我对Oracle RMAN备份的理解
- 信号处理中的预加重、去加重和均衡
- String 类的常用方法
- 完整的计算机系统由硬件系统和应用程序组成,一个完整的计算机系统由哪两部分组成?各部分的功能主要是什么?...
- 【WLAN】【基础知识】WIFI那些事儿之DFS
- Python min()函数
- 力扣-两数之和 (梦开始的地方)
- 电影html css页面,纯CSS3构建的电影屏幕效果
- 残差网络ResNet到ResNeXt解读,最强ResNeXt预训练模型已开源及如何使用
- 学习Chrome Devtools 调试
- Java选择题(八)
- github ip映射
热门文章
- 大数据窥探:关于大数据的15条干货思考
- CGB2202面向对象第8天
- 在你生日那天,哈勃望远镜看到了什么
- 外设驱动库开发笔记45:MS4515DO压力传感器驱动
- Jira的安装、使用与集成
- asp毕业设计——基于asp+sqlserver的网上选课系统设计与实现(毕业论文+程序源码)——网上选课系统
- 【共享经济】为什么共享衣橱用的是B2C而不是C2C模式?
- 算法_数学问题_Question8_猜牌术(java实现)
- 校内网API的.net版本XiaoNei.Net 1.0(非官方)
- SEO索引量和收录量的关系