开发者社区> 玄学酱> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

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 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
Server asks us to fall back to SIMPLE auth, but this client is configured to only allow secure connections.
我是在flume向hdfs 写(sink)数据时遇到的这个错误. Server (是指hdfs) asks us to fall back to SIMPLE auth, but this client (是指flume) is configured to only allow secure (是指kerberos) connections.
2142 0
You don't have permission to access /nagios/ on this server
<p><span style="font-size:18px"> <span style="white-space:pre"> </span>You don't have permission to access /nagios/ on this server </span></p> <p><span style="font-size:18px"><br></span></p> <p>
3149 0
PHP in the user agent (attacking log analysis tools?)
Lately I started to see a few web-based attacks with a php script inside the user agent.
550 0
+关注
玄学酱
这个时候,玄酱是不是应该说点什么...
文章
问答
文章排行榜
最热
最新
相关电子书
更多
DATA SECURITY IS NOW MORE IMPO
立即下载
Offensive-Malware-Analysis-Dissecting-OSXFruitFly-Via-A-Custom-C&C-Server
立即下载
Using Hadoop to build a Data Quality Service for both real-time and batch data
立即下载