安装iRedMail
vi /etc/sysconfig/network #加入 HOSTNAME=mail.iamle.com vi /etc/hosts #加入 127.0.0.1 mail.iamle.com hostname mail.iamle.com wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.8.4.tar.bz2 tar xvf iRedMail-0.8.4.tar.bz2 cd iRedMail-0.8.4 sh iRedMail.sh
卸载uninstall iRedMail
#进到iRedMail安装文件如下目录
cd /root/iRedMail-0.8.4/tools wget http://iredmail.googlecode.com/hg/extra/clear_iredmail.sh sh clear_iredmail.sh
iredmail spf dkim
#配置spf
http://www.openspf.org/SPF_Record_Syntax#all
#配置dkim
amavisd showkey #显示以下信息 #; key#1, domain mail.iamle.com, /var/lib/dkim/mail.iamle.com.pem #dkim._domainkey.mail.iamle.com. 3600 TXT ( # "v=DKIM1; p=" # "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC0pyMfH1M2hP1jvakdnun15lXY" # "zOflQsIC7T3egyMhRMquwkeLdO6AY4F4Qyi8l9yoqbFlfwkKSXwWg3KWt7XJutWB" # "qHeDZqUnLyHvmxTF6IumUO9tJ0/77HI2ccjmkM0Y/nyPonX+cvMvHi2nyJ3BcGo8" # "1bturjgk1wd57AqFuQIDAQAB") #dns txt解析 dkim._domainkey.mail.iamle.com text ="v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC0pyMfH1M2hP1jvakdnun15lXYzOflQsIC7T3egyMhRMquwkeLdO6AY4F4Qyi8l9yoqbFlfwkKSXwWg3KWt7XJutWBqHeDZqUnLyHvmxTF6IumUO9tJ0/77HI2ccjmkM0Y/nyPonX+cvMvHi2nyJ3BcGo81bturjgk1wd57AqFuQIDAQAB" amavisd testkeys #TESTING#1: dkim._domainkey.mail.iamle.com => pass #显示pass为成功!