自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

CentOS postfix安裝創(chuàng)建rpm與切換mta

系統(tǒng) Linux
CentOS postfix下載軟件包[root@localhost i386]# cd [root@localhost ~]# wget http://ftp.wl0.org/official/2.5/SRPMS/postfix-2.5.4-2.src.rpm

漫長歲月經(jīng)我多年的學習研究CentOS postfix系統(tǒng),發(fā)現(xiàn)你可能會遇到CentOS postfix安裝問題,這里將介紹CentOS postfix安裝問題的解決方法,CentOS Linux和與之對應版本號的RHEL發(fā)行版具有軟件包級別的二進制兼容性,即某個RPM軟件包如果可以安裝運行在RHEL產(chǎn)品中,就可以正常地安裝運行在對應版本的CentOS Linux中。講解CentOS postfix學習安裝。

A、CentOS postfix下載軟件包
[root@localhost i386]# cd
[root@localhost ~]# wget http://ftp.wl0.org/official/2.5/SRPMS/postfix-2.5.4-2.src.rpm
[root@localhost ~]# rpm -ivh postfix-2.5.4-2.src.rpm
[root@localhost ~]# cd $SPEC
編輯postfix.spec 修改下面的選項
%define distribution rhel-5.0
%define with_mysql_redhat 1
%define with_sasl         2
%define with_vda          1

B、CentOS postfix安裝創(chuàng)建rpm
[root@localhost SPECS]# rpmbuild -bb postfix.spec
[root@localhost RPMS]# cd $RPMS/i386
[root@localhost i386]# rpm -ivh postfix-2.5.4-2.rhel4.i386.rpm

C、CentOS postfix安裝切換mta
[root@localhost i386]# alternatives --config mta (選擇2,postfix)
[root@localhost i386]# rpm -e sendmail
[root@localhost i386]# cd /usr/sbin/
[root@localhost sbin]# mv sendmail sendmail.bak
[root@localhost sbin]# newaliases
[root@localhost sbin]# ln -s sendmail.postfix sendmail

D、CentOS postfix安裝配置
[root@localhost ~]# cd /etc/postfix/
[root@localhost postfix]# mv main.cf main.cf.bak
[root@localhost postfix]# vim main.cf
輸入下面的內(nèi)容:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = /usr/share/doc/postfix-2.5.2-documentation/html
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.5.2-documentation/readme
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
myhostname = mail.yiyou.org
mydomain = yiyou.org
mydestination = $myhostname
smtpd_banner = yiyou.org ESMTP Mail System
message_size_limit = 14680064
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_base = /home/data/domains
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_limit_maps.cf
virtual_transport = maildrop:
maildrop_destination_recipient_limit = 1

#sasl
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_unauth_pipelining,
reject_invalid_hostname

復制extman/docs 目錄的cf 文件到/etc/postfix
[root@localhost postfix]# cp /root/extman-0.2.5b1/docs/mysql_virtual_* .
因為CentOS postfix安裝配置文件的用戶、密碼與數(shù)據(jù)庫時一樣,所以不用修改。
[root@localhost postfix]# service postfix start

【編輯推薦】

  1. 使用rpm文件手動安裝CentOS authlib軟件
  2. 運用CentOS RPM安裝CentOS 5.2中相關(guān)軟件如vhmgr
  3. CentOS5.3安裝Oracle過程講解與創(chuàng)建軟件賬戶
  4. CentOS VSFTPD安裝時RPM軟件包安裝的方法
  5. 安裝CentOS oracle過程設置使用解壓包
責任編輯:佚名 來源: CSDN
相關(guān)推薦

2010-01-14 13:17:42

CentOS安裝

2011-01-19 16:12:00

Postfix安裝啟動

2019-11-21 08:50:54

CentOS 8Postfix郵件服務器

2010-02-22 18:35:01

2011-01-18 14:47:22

Postfix

2011-01-18 15:00:17

Postfix安裝

2010-06-02 17:36:31

postfix概述

2010-01-15 10:16:50

CentOS rpm安

2010-01-14 11:09:01

COURIER-ima

2010-01-14 10:55:34

CentOS auth

2010-01-14 10:32:19

CentOS RPM安

2010-01-14 09:48:05

CentOS VSFT

2010-06-07 11:22:28

2021-07-09 07:40:06

CentOS 7GitLab開源

2010-04-01 09:12:46

CentOS系統(tǒng)

2010-01-14 10:08:01

CentOS5.3安裝

2010-06-02 18:17:09

Postfix郵件

2010-06-09 18:08:52

Postfix郵件

2017-11-21 09:30:06

CentOSRedHatrpm包

2018-03-29 08:54:42

Linux電子郵件郵件傳輸代理
點贊
收藏

51CTO技術(shù)棧公眾號