CentOS 系统下Postfix的安装过程
思韵闪耀
2013-03-18
0

CentOS上安装Postfix在网上资料不算很多,还有一些手册有一些问题。

本文将介绍如何在CentOs下安装Posfix的方法,包括发信检验。

1. 使用yum安装。

yum install postfix

2. 将系统的默认的更改为Postfix。

/etc/init.d/sendmail stop
chkconfig –del sendmail

alternatives –config mta

3. main.cf文件设置
vi /etc/postfix/main.cf

# myhostname - 主机名
myhostname = host.example.com

# mydomain - 域名
mydomain = example.com

# myorigin - 发信人定义
# user@example.com 可以为域名 myorigin = $mydomain
# user@host.example.com 也可以使用主机名(二级域) myorigin = $myhostname
myorigin = $mydomain

# inet_interfaces - 设置收信界面
inet_interfaces = all

# mydestination - 发信来源定义
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

mynetworks_style = subnet

# mynetworks
mynetworks = 127.0.0.0/8

smtpd_banner = $myhostname ESMTP unknown

# 邮件保存地址
home_mailbox = Maildir/

alias_maps = hash:/etc/aliases

// SMTP-Auth设置
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
broken_sasl_auth_clients = yes

4. SMTP-Auth设置
vi /usr/lib/sasl2/smtpd.conf

pwcheck_method: saslauthd
mech_list: plain login

5. 系统自动启动设置

/etc/init.d/saslauthd start
chkconfig saslauthd on

/etc/init.d/postfix start
chkconfig postfix on

6. 清理yum

yum clean packages


【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

相关内容

docker-compos...
1.Compose介绍 DockerCompose是一个用来定义和...
2024-04-26
centos stream...
1、更新系统软件包确保系统已经更新到最新版本,打开终端,执行以下命...
2024-03-30
firewall-cmd ...
firewalld的简要说明:firewalld 、firewal...
2024-03-15
linux(centos7...
linux(centos7)firewalld-cmd查看防火墙状...
2024-03-15
centos7 firew...
1. firewalld1.1 firewalld守护进程fire...
2024-03-15
Centos系统firew...
端口放行限制1)放开UDP 161/162端口firewall-c...
2024-03-02

热门资讯

Roundcube 配置过各提... Fileinfo/mime_content_type configuration: OK Mimet...
搭建PostfixAdmin ... 一、原理及其应用: 笔者之前就职在上海一家信息公司,至力于全面的电子邮件营销解决方案,公司中等规模,...
在wdos系统下搭建postf... 一.简介: 1. wdOS是一个基于CentOS版本精简优化过的Linux服务器系统,大部分保留着c...
RHEL5系统中安装Postf... 前提1:安装RHEL5时把所有的开发工具装上。 原理图 前提2 :开始前请确保您已经配置好指向此邮件...
Linux停止和启动postf... 1.启动Postfix服务 启动Postfix服务的命令为: /etc/init.d/postfix...