yum –y installpostfix*
yum –y installdovecot*
yum –y installcyrus-imapd*
yum –y installsaslauthd*
yum –y install squirrelmail*
service sendmailstop
chkconfig sendmailoff
安裝postfix
yum installpostfix -y
配置postfix
配置檔案
vim/etc/postfix/main.cf
修改以下配置檔案
myhostname =mail.***.com
mydomain = ***.com
myorigin =$mydomain
inet_inte***ces =all
mydestination =$myhostname, $mydomain
mailbox_transport= lmtp:unix:/var/lib/imap/socket/lmtp
mynetworks =192.168.1.0/24, 192.168.2.0/24, 192.168.3.0/24, 192.168.4.0/24, 192.168.5.0/24,192.168.10.0/24, 192.168.100.0/24, 202.10.10.0/30
,www.163.com, www.126.com, qq.com
service postfix restart
yum installdovecot -y
protocols = pop3pop3s
protocol pop3
啟動服務
/etc/init.d/dovecot start
必須修改驗證方式為
shadow
yum installcurus-sasl-*
修改配置檔案
vim /etc/sysconfig/saslauthd
mech = shadow
/etc/inin.d/saslauthdrestart
chkconfig saslauthd on
useradd test
passwd test
密碼為test
yum installcurus-imapd cyrus-imapd-devel -y
給自動生成的
cyrus
使用者設定密碼
passwd cyrus
cyradm -u cyruslocalhost
連線本機
/etc/init.d/cyrus-imapdstart
cyradm -u cyrus localhost
用cyrus
使用者登入本機
mailbox
輸入正確密碼後
login
>createmailbox user.test
建立乙個
test帳號
配置檔案
/usr/share/squirrelmail/config/conf.pl
d cyrus
2 1 ***.com(
設定網域名稱
) 3 2
(型別)
4 5 y
(區別大小寫)
10 1 zh_cn 2 gb2312(
語言編碼)
s
儲存退出
postfix郵件伺服器安全
分析smtp傳送 把內部ip從郵件 的信任網路中去掉,然後測試郵件傳送 依靠郵件發件人 root slackbox telnet mail.com 25 trying 10.70.253.52.connected to mail.com.escape character is 220 mail.co...
郵件postfix服務以及DNS解析
root localhost systemctl stop firewalld root localhost setenforce 0 root localhost mount dev sr0 mnt root localhost yum install postfix y root localho...
postfix郵件伺服器安全
分析smtp傳送 把內部ip從郵件 的信任網路中去掉,然後測試郵件傳送 依靠郵件發件人 root slackbox telnet mail.com 25 trying 10.70.253.52.connected to mail.com.escape character is 220 mail.co...