Chinaunix首页 | 论坛 | 博客
  • 博客访问: 371450
  • 博文数量: 114
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1219
  • 用 户 组: 普通用户
  • 注册时间: 2015-02-07 21:23
文章分类

全部博文(114)

文章存档

2018年(1)

2017年(5)

2016年(87)

2015年(21)

我的朋友

分类: 系统运维

2016-01-16 15:41:42

1、安装postfix
安装postfix
shell
# yum install postfix
# rpm -e sendmail
2、配置postfix

shell
# postconf -n > /etc/postfix/main2.cf
# mv /etc/postfix/main.cf /etc/postfix/main.cf.old
# mv /etc/postfix/main2.cf /etc/postfix/main.cf
编辑main.cf:

shell
# vi /etc/postfix/main.cf
增加如下内容:


# hostname
mynetworks = 127.0.0.1
myhostname = mail.extmail.org
mydestination = $mynetworks $myhostname


# banner
mail_name = Postfix - by extmail.org
smtpd_banner = $myhostname ESMTP $mail_name


# response immediately
smtpd_error_sleep_time = 0s


# Message and return code control
message_size_limit = 5242880
mailbox_size_limit = 5242880
show_user_unknown_table_name = no


# Queue lifetime control
bounce_queue_lifetime = 1d
maximal_queue_lifetime = 1d
设置postfix开机自启:


shell
# chkconfig postfix on
阅读(661) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~