当前位置: 首页 > news >正文

Chapter 4. postfix - High-performance mail transport agent

Table of Contents

4.1. install
4.1.1. Ubuntu 4.1.2. CentOS 4.1.3. OSCM 通过配置管理脚本安装
4.2. 配置 Postfix
4.2.1. 转发配置 4.2.2. 拒收垃圾邮件 4.2.3. 收件箱配置
4.2.3.1. Mailbox 配置 4.2.3.2. Maildir 配置 4.2.3.3. 传统Unix风格邮箱配置
4.2.4. 邮件投递 4.2.5. 队列配置 4.2.6. 客户端
4.3. aliases 4.4. dkim
4.4.1. 增加域名 4.4.2. 测试
4.5. Rspamd 4.6. /var/log/maillog
4.6.1. 计算每分钟发送数量日志统计 4.6.2. 虚假地址统计
4.7. Post 命令
4.7.1. postconf - Postfix configuration utility 4.7.2. postsuper 4.7.3. postqueue - Postfix queue control
4.7.3.1. 列出队列 4.7.3.2. 刷新队列
4.7.4. postmulti - Postfix multi-instance manager
4.7.4.1. 绑定IP地址 4.7.4.2. postfix 多实例配置 4.7.4.3. 配置 iptables 让SMTPD发送邮件时依次轮询外发IP地址,这样就不会被封锁。
4.8. Example
4.8.1. 站内电邮发送 4.8.2. EDM 服务器
4.9. FAQ
4.9.1. SMTP ERROR: RCPT TO command failed: 501 5.1.3 Bad recipient address syntax 4.9.2. connect to gmail-smtp-in.l.google.com[2607:f8b0:400e:c00::1a]:25: Network is unreachable 4.9.3. opendkim[5762]: 3012A802C1DD: [49.213.11.18] [49.213.11.18] not internal 4.9.4. opendkim[12578]: 4CC5C802C382: no signature data 4.9.5. /etc/opendkim/keys/default.private: open(): No such file or directory

Postfix 主页

4.1. install

4.1.1. Ubuntu

$ sudo apt-get install postfix
			

configure

$ sudo dpkg-reconfigure postfix-config
			

4.1.2. CentOS

# yum install -y postfix			
			
myhostname = mail.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mynetworks = 192.168.0.0/24, 127.0.0.0/8
#relay_domains =
home_mailbox = Maildir/
			

4.1.3. OSCM 通过配置管理脚本安装

Postfix Install

# Centos Init
curl -s https://raw.githubusercontent.com/oscm/shell/master/os/centos7.sh | bash
curl -s https://raw.githubusercontent.com/oscm/shell/master/os/selinux.sh | bash
curl -s https://raw.githubusercontent.com/oscm/shell/master/os/iptables/iptables.sh | bash
curl -s https://raw.githubusercontent.com/oscm/shell/master/os/ntpd/ntp.sh | bash
curl -s https://raw.githubusercontent.com/oscm/shell/master/os/ssh/sshd_config.sh | bash

# Install Postfix
curl -s https://raw.githubusercontent.com/oscm/shell/master/mail/postfix/postfix.sh | bash
			





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

相关文章:

  • unity, ios skin crash
  • 安全测试===8大前端安全问题(上)
  • mysql关闭与删除bin-log日志详解
  • python函数使用参数技巧笔记
  • 理解Kubernetes(1):手工搭建Kubernetes测试环境
  • Centos Linux 7 设置静态IP
  • 搜查令--中期总结
  • 靜態方法上的泛型
  • 二分图染色模板(P1330 封锁阳光大学)
  • 记录CDH5.10一个clients.NetworkClient: Bootstrap broker ip:9092 disconnected问题
  • JavaScript 易错知识点整理
  • Mysql 索引优化分析
  • 第五堂:Java数组
  • 5.5-5.7 vim的使用和扩展
  • Powershell下使用Search-mailbox删除邮件
  • 【Under-the-hood-ReactJS-Part0】React源码解读
  • eclipse(luna)创建web工程
  • java中具有继承关系的类及其对象初始化顺序
  • JS数组方法汇总
  • KMP算法及优化
  • Linux中的硬链接与软链接
  • Node.js 新计划:使用 V8 snapshot 将启动速度提升 8 倍
  • nodejs实现webservice问题总结
  • spring security oauth2 password授权模式
  • 多线程事务回滚
  • 工作踩坑系列——https访问遇到“已阻止载入混合活动内容”
  • 适配iPhoneX、iPhoneXs、iPhoneXs Max、iPhoneXr 屏幕尺寸及安全区域
  • 它承受着该等级不该有的简单, leetcode 564 寻找最近的回文数
  • 写代码的正确姿势
  • 一个6年java程序员的工作感悟,写给还在迷茫的你
  • 云大使推广中的常见热门问题
  • 终端用户监控:真实用户监控还是模拟监控?
  • #NOIP 2014# day.2 T2 寻找道路
  • (2009.11版)《网络管理员考试 考前冲刺预测卷及考点解析》复习重点
  • (4)事件处理——(7)简单事件(Simple events)
  • (C语言)二分查找 超详细
  • (二十三)Flask之高频面试点
  • (附源码)springboot建达集团公司平台 毕业设计 141538
  • (附源码)计算机毕业设计SSM在线影视购票系统
  • (教学思路 C#之类三)方法参数类型(ref、out、parmas)
  • (完整代码)R语言中利用SVM-RFE机器学习算法筛选关键因子
  • (原創) 如何優化ThinkPad X61開機速度? (NB) (ThinkPad) (X61) (OS) (Windows)
  • .NET : 在VS2008中计算代码度量值
  • .NET Reactor简单使用教程
  • .Net Web项目创建比较不错的参考文章
  • .NET Windows:删除文件夹后立即判断,有可能依然存在
  • .net 受管制代码
  • .NET 中创建支持集合初始化器的类型
  • .NET项目中存在多个web.config文件时的加载顺序
  • .NET中 MVC 工厂模式浅析
  • @EnableWebMvc介绍和使用详细demo
  • @RestControllerAdvice异常统一处理类失效原因
  • [2024] 十大免费电脑数据恢复软件——轻松恢复电脑上已删除文件
  • [ABP实战开源项目]---ABP实时服务-通知系统.发布模式
  • [AX]AX2012开发新特性-禁止表或者表字段