postconf -n
#别名
数据库(postalias/newaliases 命令生成)
alias_database = hash:/etc/postfix/aliases
#别名表,列出local mda 所使用的别名
数据库
alias_maps = hash:/etc/postfix/aliases
#退回的邮件重新投递的最长时间
bounce_queue_lifetime = 1d
#支持非标准验证规定的行为
broken_sasl_auth_clients = yes
#postfix命令目录
command_directory = /usr/sbin
#postfix配置文档目录
config_directory = /etc/postfix
#配置内容过滤 amavis
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
#
data_directory = /var/lib/postfix
#
debug_peer_level = 2
#重复邮件
enable_original_recipient = no
#
html_directory = /usr/share/doc/postfix-2.6.2-documentation/html
#
mail_name = Postfix – welcome mail.xmall.com
#以此参数指定的系统账户,作为队列文件的拥有者以及postfix daemon 进程的运行身份
mail_owner = postfix
#单封邮件大小限制,单位字节
mailbox_size_limit = 150242880
#
mailq_path = /usr/bin/mailq.postfi
#manpage 目录
manpage_directory = /usr/share/man
#postfix在放弃投递而返回不可投递信息前,被延迟邮件再deferred邮件队列中的生存时间
maximal_queue_lifetime = 1d
#限制单封邮件的最大长度,单位字节
message_size_limit = 150242880
#设置”本地网域”
mydestination = $mynetworks $myhostname
#完整主机名称(主机名称+网域名称)
myhostname = mail.xmall.com
#邮件系统的网域名称
mydomain = xmall.com
#附加到只含人名部分的,不完整邮件地址的网域名称
myorigin
#列出可通过本邮件系统寄出邮件的
网络地址或ip地址
mynetworks = 127.0.0.1
#兼容sendmail,用于重建别名
数据库的newaliases程序路径
newaliases_path = /usr/bin/newaliases.postfix
#postfix 队列的主目录
queue_directory = /var/spool/postfix
#
readme_directory = /usr/share/doc/postfix-2.6.2-documentation/readme
#
receive_override_options = no_address_mappings
#样本配置文件目录
sample_directory = /etc/postfix
#供脚本或命令行用来寄送邮件
sendmail_path = /usr/sbin/sendmail.postfix
#用来提交邮件或管理队列的组标识符
setgid_group = postdrop
#
show_user_unknown_table_name = no
#smtp 问候信息
smtpd_banner = $myhostname ESMTP $mail_name
#当客户端引发错误时,postfix 的初始等待时间
smtpd_error_sleep_time = 0s
#收件人限制条件
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, check_policy_service inet:127.0.0.1:10030
#启动sasl 验证
smtpd_sasl_auth_enable = yes
#
smtpd_sasl_local_domain = $myhostname
#指定密码验证机制(除noanonymous) 所有可用机制
smtpd_sasl_security_options = noanonymous
#设定寄件地址与sasl登录身份的对应关系,只能使用本域地址避免使用其他寄件地址!
smtpd_sender_login_maps = mysql:/etc/postfix/mysql_virtual_sender_maps.cf, mysql:/etc/postfix/mysql_virtual_alias_maps.cf
#发件人限制条件
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, reject_authenticated_sender_login_mismatch, reject_unauthenticated_sender_login_mismatch
#
unknown_local_recipient_reject_code = 550
#指向含有“虚拟别名地址”与“实际收件地址”对应关系的查询表
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
#虚拟网域查询表
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
#虚拟邮箱查询表
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
#用于投递邮件到虚拟邮箱地址的默认传输服务(虚拟mda)
virtual_transport = maildrop:
五 维护 postfix 的命令
postalias /etc/postfix/aliases (创建或查询别名
数据库)
postcat (显示队列文件内容)
postconf (修改 main.cf 配置文档 )
postqueue (査看postfix 队列)
postsuper (管理员管理 postfix 队列)
postmap (创建查询表的DB
数据库或查询查询表内容)
- Tomcat 下4个配置文件详解
Tomcat 的配置文件由4个 xml 文件构成,context.xml.web.xml.server.xml.tomcat-users.xml 这4个文件.每个文件都有自己的功能与配置方法,下列将逐 ...
- vue-cli脚手架config目录下index.js配置文件详解
此文章介绍vue-cli脚手架config目录下index.js配置文件 此配置文件是用来定义开发环境和生产环境中所需要的参数 关于注释 当涉及到较复杂的解释我将通过标识的方式(如(1))将解释写到单 ...
- linux下的apache配置文件详解
.Apache的配置由httpd.conf文件配置,因此下面的配置指令都是在httpd.conf文件中修改. 站点的配置(基本配置) (1) 基本配置: ServerRoot "/mnt/s ...
- Linux中用postfix搭建邮件服务器实战详解
Linux中用postfix搭建邮件服务器实战详解 postfix是Wietse Venema在IBM的GPL协议之下开发的MTA(邮件传输代理)软件.Postfix试图更快.更容易管理.更安全,同时 ...
- quartz配置文件详解
quartz配置文件详解(转载) quartz学习总结: 一.关于job: 用Quartz的行话讲,作业是一个执行任务的简单Java类.任务可以是任何Java代码.只需你实现org.qu ...
- Java学习-007-Log4J 日志记录配置文件详解及实例源代码
此文主要讲述在初学 Java 时,常用的 Log4J 日志记录配置文件详解及实例源代码整理.希望能对初学 Java 编程的亲们有所帮助.若有不足之处,敬请大神指正,不胜感激!源代码测试通过日期为:20 ...
- 【转】nginx服务器安装及配置文件详解
原文:http://seanlook.com/2015/05/17/nginx-install-and-config/ nginx服务器安装及配置文件详解 nginx在工作中已经有好几个环境在使用了, ...
- mybatis代码生成器配置文件详解
mybatis代码生成器配置文件详解 更多详见 http://generator.sturgeon.mopaas.com/index.html http://generator.sturgeon.mo ...
- 一、Nginx配置文件详解
配置文件介绍 主要有两部分:分别是 main:主体部分 http{}:虚拟主机配置部分 配置指令主要以分号结尾:配置语法:directive value1 [value2 ....] 支持使用的变量 ...
随机推荐
- 关于volatile的可见性和禁止指令重排序的疑惑
在学习volatile语义的可见性和禁止指令重排序的相关测试中,发现并不能体现出禁止指令重排序的特性 实验代码如下 package com.aaron.beginner.multithread.vol ...
- iOS 图片裁剪方法
iOS 图片裁剪方法 通过 CGImage 或 CIImage 裁剪 UIImage有cgImage和ciImage属性,分别可以获得CGImage和CIImage对象.CGImage和CIImage ...
- Asp.Net 常用工具类之Office—Excel导入(5)
之前在做一个项目的时候,客户方面只提供了一份简单的Excel文件,且要跟现有数据进行对接. 当时想到的是如果数据量不大,可以Excel一条一条加进去,无奈数据有几十兆!!! 换了一种思维,进行了导入: ...
- JS中一些常用的内置对象
在JS中,经常会遇到明明知道一个对象有某个属性或方法,可是又不知道怎么写的情况.下面,我就罗列了一些JS中常用的内置对象的属性和方法. Math对象: Math对象的作用是执行常见的算术任务. 首先M ...
- (六)javascriptJS中定义对象的几种方式(转)
JavaScript学习12 JS中定义对象的几种方式 转自: http://www.cnblogs.com/mengdd/p/3697255.html JavaScript中没有类的概念,只有对象 ...
- Cookie和Session的原理图
Cookie Session
- Convert Sorted Array to Binary Search Tree & Convert Sorted List to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. Su ...
- 从数据库读取二进制图片,img标签显示图片
引自 http://www.w3dev.cn/article/20110214/asp-net-csharp-image-base64-change.aspx <img src=&qu ...
- QQ好友在线/离线,怎么测试?
即时通讯是目前internet上最为流行的通讯方式,各种各样的即时通讯软件也层出不穷,那么今天主要针对QQ好友在线状态/QQ群友在线状态功能出发,一起思考其中的实现原理以及我们如何去测试此功能? 当大 ...
- 关于<context:property-placeholder>的一个有趣现象
转:http://stamen.iteye.com/blog/1926166 先来看下A和B两个模块 A模块和B模块都分别拥有自己的Spring XML配置,并分别拥有自己的配置文件: A模块 A模块 ...