。。。。。。。。。。。。。。。。。。
首先现解决 域名解析问题,
已经假设 路由 端口 110 25 23 143 IP 192.168.1.103
安装 lynx
sudo apt-get install lynx
最简单的域名解析方式,之前请到 3322上申请用户 http://www.3322.org
lynx -mime_header -auth=USER:PASSWD "http://www.3322.org/dyndns/update?syste ... &hostname=DOMAIN.3322.org"
红色处 根据自己实际情况填写
花生壳不推荐了 ,它不支持 mx
.............................................................................................
postfix 安装
代码: 全选
sudo apt-get install postfix libsasl2-2 sasl2-bin libsasl2-modules procmail
代码: 全选
sudo dpkg-reconfigure postfix
* Internet Site
* NONE
* ubuntu.3322.rog
* ubuntu.3322.rog, localhost.ubuntu.3322.rog, localhost
* No
* 127.0.0.0/8, 192.168.1.0/24
* Yes
* 0
* +
* all
然后编辑 mian,cf
sudo gedit /etc/postfix/main.cf
检查刚才的输入是否正确,然后添加下列代码
home_mailbox = Maildir/ 为了支持maildir
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
保存
重启 sudo /etc/init.d/postfix restart
安装完成
参考postfix快速设置http://wiki.ubuntu.org.cn/Postfix_%E5%B ... 7%E5%8D%97 基本设置http://wiki.ubuntu.org.cn/index.php?tit ... nt=zh-hant
测试
telnet ubuntu .3322.org 25
出现
Trying 58.40.69.220...
Connected to ubuntu.3322.org.
Escape character is '^]'.
220 mail.ubuntu.3322.org ESMTP Postfix (Ubuntu)
则成功大吉~~