1. 安裝 Postfix 和 Dovecot 郵件服務(wù)器軟(╯‵□′)╯件包。操作程,系統2. 配置網(wǎng)絡(luò )接口,簡(jiǎn)??易件服設置主機名和域名。安裝s安,郵件3. 創(chuàng )建系統用戶(hù)和組,ヾ(′ω`)?服務(wù)設置郵件交換(′;ω;`)記錄。器全,裝郵4. 配置 Postfix 郵件服務(wù)器,操作程設置虛擬郵箱??別名。系統,簡(jiǎn)易件服5. 配置 Dovecot 郵件服務(wù)器,安裝(zhuang)s安設置用戶(hù)???密碼認證。郵件,服務(wù)6. 測試郵件服務(wù)??器功能,器全發(fā)送和接收郵件。
1、確認系統環(huán)境
操作系ヾ(?■_■)ノ統:CentOS 7 或更高版本
內存:至少2GB
硬盤(pán)空間:至少10GB
2、下載郵件服務(wù)器軟件
選擇郵件服務(wù)器軟件,如Postfix、Dovecot等
訪(fǎng)問(wèn)軟件官網(wǎng),下載最新版本的源碼包
1、更新系統軟件包
R??20;`??
sudo yum update y
“`
2、安裝依賴(lài)庫
“`
sudo yum install y gcc make openssl open='open'ssldevel zlib zlibdevel readline readlinedevel li(′_`)bidn libidndevel
“`
1、解壓源碼包
“`
tar zxvf mails(??-)?erver.tar.gz
cd mail(?_?;)server
“`
2、配置編譯選項
“(╥_╥);`
./config??ure prefix=/usr/local/mailserver sysconfdir=/etc/mailserver withssl withsasl withcyrussasl withimap withpop3 withlmtp withmysql withpgsql withsqlite3 withqヽ(′▽?zhuān)?ノuota withdspam withsieve withclamav withfetchmail withwebmail withtls withanvil withamavisd withvirusscanning withnetfilterqueue
“`
3、編譯并安裝
“`
make && make?? install
“`
1、創(chuàng )建郵件用戶(hù)和組
“`
sudo groupadd mailus??ers
sudo useradd g mailusers mailu??ser1
sudo passwd mailus(?⊿?)er1
2、配置郵件服務(wù)器主配置文件
“`
sudo vi /usr/local/mailserver/etc/master.cf
sudo vi /usr/local/mailserver/etc/sasl/smtpd.conf
sudo vi /usr/local/mailse??rver/etc/valiases
sudo vi /usr/local/mailserver/etc/postfi??x/main.cf
sudo vi /usr/loca??l/mailserver/etc??/dovecot/dovecot.conf
sudo vi /usr/loc(′?`)al/mailserver/etc/dovecot/conf.d/10mail.conf
“`
1、啟動(dòng)(′Д` )郵件服務(wù)器服務(wù)
“`
sudo systemctl start postfix dovecot spamassassin clamav amavisd anvil(′ω`*) webmail virusscanning netfilterqueue mailst(′_ゝ`)ats saslauthd mysql(???)d pgsql sqlite3 fetchmail sieve imap pop3 lmtp vpopm??ail dnsmasq?? roundcube webadmin openwebmail roundcubemailmysql roundcubemailpgsql roundcubemailsqlite3 roundcubemailpos??t??gres roundcube(′?`)mailopenldap openldap?? open="open"ldapclients open=""ssl open=""ssld snmp snmpd netfiltヽ(′ー`)ノer netfilterpersiste(′?`*)nt netdata netdatad rrd??cached rrdtool rrdtool graphing tools rrdupdater rrddump rrdtool chart update process_cpu_mem process_vm_memory network graphite graphit(?Д?)eweb carbon blacklistdns spamassassin clamav amavisd anvil webmail virusscanning netfiltヽ(′▽?zhuān)?/erqueue mailstats saslauthd mysqld pgsql sqlite3 fetchmail sieve imap pop3 lmtp vpopmail dnsmasq roundc(╬?益?)ube webadmi??n open="open"webmail roundcubemailmysql roundcubemailpgsql roundcubemailsqlite3 roundcubemailpostgres roundcubemailopenldap open=""ldap openldapclients open="open"ssl open="open"ssld snmp snmpd netfilter netfilterpersistent netdata ne?tdatad rrdcached rrdtool rrdtool graphing tools rrdupdater rrddump rrdtool chart update process_cpu_mem process_vm_memory network graphite graphiteweb carbo???n blacklistdns spamassassin clamav amavi??sd anvil webmail virusscanning netfilterqueue mailstats saslauthd mysqld pgsql sqlite3 fetchmail sie( ?ヮ?)ve imap pop3 lmtp vpopmail dnsmasq roundcube webadmin open='open'webmail roundcubemailmysql roundcubemailpgsql roundcubemailsqlite3 roundcubemailpostgres roundcubemailopenldap open=""ldap openldapclients open='open'ssl openssld snmp snmpd netfilter netfilterpersiste( ?▽?)nt netdata netdatad rrdcac(╬?益?)hed rrdtool rrdtool graphing tools rrdupdater rrddump rrdtool chart update process_cpu_mem process_v??m_memor??y network graphite graphitew(?????)eb carbon blacklistdns spama??ss(?⊿?)assin clamav amavisd anvil webmail virussca(╬?益?)nning netfilterqueue mailstats saslauthd mysqld pgsql sqlite3 fetchmail sieve imap pop3 lmtp vpopmail dnsmasq roundcube weba(╬?益?)dmin open='open'webmailヽ(′ー`)ノ roundcubemai??lmysql roundcubemailpgsql roundcube(′ω`)mailsqlite3 roundcubemailpostgres roundcubemailopenldapヾ(′?`)? open='open'ldap open='open'ldapclients open="open"ssl open=""ssld snmp snmpd netfilter netfilterpersistent netdata netdatad rrdcached rrdtool rrdtool graphing tools rrdupdater rrddump rrdtool chart update process_cpu_me??m process_vm_memory network grap(′?`)hite graphitewe??b carbon blacklistdns spamassassin clamav amavisd anvil webmail virusscanning netfilterqueue mailstats saslauthd mysqld pgsql sqlite3 fetchmail sieve imap pop3 lmtp vpopmailヾ(′▽?zhuān)?? dns(′?ω?`)masq roundcube webadmin open=""webmail roundcube??mailmysql roundcubemailpg??sql roundcubemailsqlite3 roundcubemailpostgres roundcubemailopenldap open='open'ldap open='open'ldapclients open=""ssl openssld snmp?? snmpd netfilter netfilterpersist( ???)ent(′Д` ) netdata netdatad rrdcached rrdtool rrdtoo??l graphing tools rrdupdater rrddump rrdtool chart update process_cpu_mem process_vm_memory network graphite graphiteweb carbon blacklistdns spamassassin clamav amavisd?? anvi(′ω`*)l webmail virusscanning netfilterqueue mailstats saslauthd mysqld pgsql sqlite3 fetchmail sieve imap pop3 lmtp vpopmail dnsmasq roundcube webadmin openwebmail roundcubemailmysql roundcubemailpgsql roundcubemailsqlite3 roundcubemailpostgres roundcubemailopenldap open="open"ldap open="open"ldapclients open=""ssl open="open"ssld snmp snmpd netfilter netfilterpersistent netdata netdatad rrdcached rrdtool rrdtool graphing tools rrdupdater rrddump rrdtool chart update process_cpu_mem proce(°o°)ss_vm_memory network graphit?e gra??phitegraphing tools rrdupdater rrddump rrdtool chart update process_cpu_mem process_vm_memory network graphite graphitegraphing tools rrdupdater rrddump rrdtoo??l chart update process_cpu_mem process_vm_memory netw??ork graphite graphite
(作者:新聞中心)