Postfix限制邮箱收发规则

运维 系统运维
Postfix中限制邮箱收发有哪些规则?该如何配置呢?本文主要讲的是Postfix的配置、sender_list的配置、recipient_list的配置...

一、配置postfix

  vim /opt/postfix/conf/main.cf

  smtpd_restriction_classes=smtp_acl

  smtp_acl=check_sender_access hash:/etc/postfix/sender_list,reject

  smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_list, reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, reject_invalid_hostname, reject_non_fqdn_sender, permit

二、配置sender_list

  vim /etc/postfix/sender_list

  eric@domain.com OK

三、配置recipient_list

  vim /etc/postfix/recipient_list

  all@domain.com smtp_acl

四、转换sender_list与recipient_list

  postmap hash:/etc/postfix/sender_list

  postmap hash:/etc/postfix/recipient_list

五、重新读取postfix配置

  postfix reload

【编辑推荐】

  1. Postfix对邮件的处理流程
  2. Linux下的邮件服务器 postfix
  3. 如何安装Postfix
  4. Postfix邮件安装实现介绍
  5. Postfix入门篇
  6. postfix 安装配置
  7. Postfix的配置

责任编辑:zhaolei 来源: 网络转载
相关推荐

2011-02-21 09:31:58

QQevolutionlinux

2011-05-12 13:17:37

网易企业邮箱

2009-02-18 12:45:00

2014-01-16 15:18:09

盈世企业邮箱集成

2011-01-18 18:52:14

Postfix结构

2010-02-24 17:47:05

WCF集合类型

2010-06-02 17:36:31

postfix概述

2011-01-20 09:42:29

postfix邮件

2011-08-11 13:59:52

MySQLvarchar限制规则

2011-02-21 12:54:47

postfix命令

2011-01-18 15:00:17

Postfix安装

2011-02-21 12:59:55

2011-01-18 14:47:22

Postfix

2011-01-19 09:16:48

Postfix配置

2011-02-21 13:08:37

postfix配置

2010-06-02 18:17:09

Postfix邮件

2011-01-19 09:57:48

Postfix控制

2011-01-19 14:00:21

2011-02-21 11:14:47

Postfix配置

2012-02-23 23:08:50

mailpostfix开源
点赞
收藏

51CTO技术栈公众号