郵件服務器互發(fā)
發(fā)布日期:2019-09-12 14:13 | 文章來源:網(wǎng)絡
網(wǎng)關修改
一共三臺服務器,
一、1做mail+dns。Ip192.168.13.1lxy.com網(wǎng)關192.168.13.254二、2啟用網(wǎng)卡轉發(fā)。192.168.13.254/24172.13.13.254/16三、3做mail。Ip172.13.13.1網(wǎng)關172.13.13.254dns192.168.13.1lixiao.com開啟網(wǎng)卡轉發(fā)echo1>/proc/sys/net.ipv4/ip_forwardDNSyuminstallbind-*編輯/var/named/chroot/etc/named.conf/var/named/chroot/var/named/lxy.com.zonemailservicesendmailstop停sendmail服務安裝yuminstallhttpd安裝yuminstallpostfixvim/etc/postfix/main.cf修改以下字段myhostname=mail.lxy.commydomain=lxy.commyorigin=$mydomaininet_interfaces=all#inet_interfaces=localhostmydestination=$myhostname,$mydomainmynetworks=192.168.13.0/24,127.0.0.0/8relay_domains=lxy.com重啟/etc/init.d/saslauthdrestartvim/etc/sysconfig/saslauthd修改MECH=shadow測試testsaslauthd-ulxy-p'lxy'vim/etc/postfix/main.cf添加smtpd_sasl_auth_enable=yessmtpd_sasl_local_domain=''smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destinationbroken_sasl_auth_clients=yessmtpd_client_restrictions=permit_sasl_authenticatedsmtpd_sasl_security_options=noanonymousyuminstalldovecotvim/etc/dovecot.conf修改protocols=pop3pop3sprotocolpop3{listen=*:10100}yuminstallcyrus-imapdcyrus-imapd-devel修改vim/etc/postfix/main.cf去掉注釋mailbox_transport=lmtp:unix:/var/lib/imap/socket/lmtpcyradm-ucyruslocalhostcmuser.lxycmuser.lxy.Sendcmuser.lxy.Trashcmuser.lxy.Drafts安裝配置webmailyuminstallsquirrelmail/usr/share/squirrelmail/config/conf.plzh_CNgb2312serverhttpdrestart再配置另一臺mail驗證Tags:網(wǎng)關修改,郵件服務器互發(fā)
版權聲明:本站文章來源標注為YINGSOO的內容版權均為本站所有,歡迎引用、轉載,請保持原文完整并注明來源及原文鏈接。禁止復制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務器上建立鏡像,否則將依法追究法律責任。本站部分內容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學習參考,不代表本站立場,如有內容涉嫌侵權,請聯(lián)系alex-e#qq.com處理。
相關文章