Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

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. 转发配置
4.3. 拒收垃圾邮件
4.4. Rspamd
4.5. /var/log/maillog
4.5.1. 计算每分钟发送数量日志统计
4.5.2. 虚假地址统计
4.6. postmulti - Postfix multi-instance manager
4.6.1. 绑定IP地址
4.6.2. postfix 多实例配置
4.6.3. 配置 iptables 让SMTPD发送邮件时依次轮询外发IP地址,这样就不会被封锁。
4.7. FAQ
4.7.1. SMTP ERROR: RCPT TO command failed: 501 5.1.3 Bad recipient address syntax

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
			
comments powered by Disqus