`

postfix

阅读更多
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = /usr/share/doc/postfix-2.3.6-documentation/html
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.6-documentation/README_FILES
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop

# hostname
mynetworks = 127.0.0.1,1.202.235.250,219.232.255.37
myhostname = mail.cfdow.com
mydomain = cfdow.com
mydestination = $mynetworks, $myhostname

# banner
mail_name = Postfix - by cfdow.com
smtpd_banner = $myhostname ESMTP $mail_name

# response immediately
smtpd_error_sleep_time = 0s
unknown_local_recipient_reject_code = 550

# extmail config here
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
virtual_transport = maildrop:

# maildrop setting
maildrop_destination_recipient_limit = 1

# smtpd related config
smtpd_recipient_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_sender_login_mismatch,
        reject_non_fqdn_hostname,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unauth_destination,
        reject_unauth_pipelining,
        reject_invalid_hostname,
        #reject_rbl_client cblless.anti-spam.org.cn,permit,
        permit

# SMTP sender login matching config

smtpd_sender_restrictions =
        reject_sender_login_mismatch,
        reject_authenticated_sender_login_mismatch,
        reject_unauthenticated_sender_login_mismatch

smtpd_sender_login_maps =
        mysql:/etc/postfix/mysql_virtual_sender_maps.cf,
        mysql:/etc/postfix/mysql_virtual_alias_maps.cf

# SMTP AUTH config here
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous

# Content-Filter
#content_filter = smtp:[127.0.0.1]:10024
#receive_override_options = no_address_mappings

# Message and return code control
message_size_limit = 20971520
show_user_unknown_table_name = no

# TLS configuration
smtpd_use_tls = yes
smtpd_tls_auth_only = no
smtp_tls_CAfile = /etc/postfix/tls/smtpd.pem
smtp_tls_cert_file = /etc/postfix/tls/smtpd.pem
smtp_tls_key_file = /etc/postfix/tls/smtpd.pem
smtpd_tls_CAfile = /etc/postfix/tls/smtpd.pem
smtpd_tls_cert_file = /etc/postfix/tls/smtpd.pem
smtpd_tls_key_file = /etc/postfix/tls/smtpd.pem
smtpd_tls_received_header = yes
smtpd_tls_loglevel = 0
smtpd_starttls_timeout = 60s
分享到:
评论

相关推荐

    POSTFIX安装POSTFIX安装POSTFIX安装

    POSTFIX安装POSTFIX安装POSTFIX安装POSTFIX安装POSTFIX安装POSTFIX安装POSTFIX安装POSTFIX安装

    postfix全功能邮件服务器

    postfix全功能邮件服务器的搭建 .postfix所需软件包及存放目录 httpd-2.2.9.tar.gz 安装源码包apache mysql-5.0.56.tar.gz 安装源码包mysql php-5.2.6.tar.bz2 安装php...

    如何在CentOS8上安装和配置Postfix邮件服务器的方法示例

    Postfix 是一个自由开源的 MTA(邮件传输代理),用于在 Linux 系统上路由或传递电子邮件。在本指南中,你将学习如何在 CentOS 8 上安装和配置 Postfix。 实验室设置: 系统:CentOS 8 服务器 IP 地址:192.168....

    利用Postfix搭建邮件系统

    利用Postfix搭建邮件系统 利用Postfix搭建邮件系统

    postfix权威指南 中文版

    postfix权威指南,O’Reilly系列丛书,POSTFIX权威指南中文版,文字版,排版与原书保持一致。全面了解postfix的绝对好书。 想要自己架设邮件服务器吗?如果sendmail让你头痛万分,现在你有更好的选择 —— Postfix...

    Linux下Postfix邮件服务器搭建

    在Linux下成功搭建起Postfix服务器。

    Postfix安装配置 Postfix安装配置

    Postfix安装配置 Postfix安装配置 Postfix安装配置 Postfix安装配置 Postfix安装配置 Postfix安装配置

    CentOS下配置postfix服务

    而另一个被广泛应用于邮件服务方面的“Postfix”的缺点就少得多,或者说它就是针对于sendmail的缺点,而被设计的。对应sendmail的短处,它在各方面也比较成熟。所以,无特殊要求,这里不推荐用sendmail来构建邮件...

    postfix-2.2.11.tar.gz

    postfix-2.2.11.tar.gz

    postfix完全手册 (共294页)

    本书内容以postfix 2.0版为准并涵盖过去曾经广为流传的某些重要旧版本与其的差异。

    postfix configure in opensuse doc

    我的一个阶段性的免费邮局postfix 配置记录,收发邮件肯定是没有问题,web邮件收发也没有问题,因为时间的关系,还没有来的及配置垃圾邮件过滤和病毒扫描,这些我想可以现在客户端克服一下。我从网上看了很多的文档...

    MacOS /etc/postfix 配置SMTP

    使用 sublime text 打开 /etc/postfix 文件夹,将 my_username、my_password 批量替换成自己的, 然后: ``` $ cd /etc/postfix $ sudo chown root ./* $ sudo postmap sasl_passwd generic sd_relayhost sender_...

    利用Postfix搭建企业邮件系统

    Postfix搭建邮件服务器

    Mac /etc/postfix 配置 126 smtp 示例

    cd /etc/postfix && sudo postmap sasl_passwd generic sd_relayhost sender_canonical && sudo launchctl stop org.postfix.master && sudo launchctl start org.postfix.master 然后 echo "`hostname -s` test ...

    Postfix配置文件main.cf中常用参数介绍

    Postfix配置文件main.cf中常用参数介绍

    postfix-2.8.20.tar.gz

    postfix-2.8.20.tar.gz postfix-2.8.20.tar.gz postfix-2.8.20.tar.gz postfix-2.8.20.tar.gz

    postfix 权威指南

    序 前言 第一章 简介 Postfix的起源与设计理念 E-mail与Internet Postfix的角色 Postfix的安全性 如何取得Postfix 第二章 基本概念 Unix的概念 E-mail的概念 第三章 Postfix的结构 Postfix的组件 邮件如何进入...

    postfix邮件系统原理

    postfix邮件系统原理postfix邮件系统原理postfix邮件系统原理

    centos postfix2.8 安装

    postfix 安装的一些参数,, mysql 做数据库

    postfix 配置pdf文档

    postfix 配置pdf文档 postfix 配置pdf文档 postfix 配置pdf文档

Global site tag (gtag.js) - Google Analytics