[分享系列] postfix +3322 安装手记

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
tonysong
帖子: 27
注册时间: 2008-03-09 14:13

[分享系列] postfix +3322 安装手记

#1

帖子 tonysong » 2009-02-04 13:14

只为自己留作备份参考,应为自己是菜鸟 如有不对之处请指出
。。。。。。。。。。。。。。。。。。

首先现解决 域名解析问题,
已经假设 路由 端口 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 
配置postfix

代码: 全选

sudo dpkg-reconfigure postfix
假定 域名 ubuntu .3322.org
* 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)

则成功大吉~~
头像
lerosua
论坛版主
帖子: 8455
注册时间: 2007-11-29 9:41
联系:

Re: [分享系列] postfix +3322 安装手记

#2

帖子 lerosua » 2009-02-04 13:59

收藏学习之
9981
帖子: 200
注册时间: 2007-05-19 16:24

Re: [分享系列] postfix +3322 安装手记

#3

帖子 9981 » 2009-02-06 10:22

收藏
9981 学习的过程
http://abcde.blog.ubuntu.org.cn/
blog上的都是原来学习时的记录,现在来看,还需重新整理
ubuntu-server-8.04-lts
我想在日常的工作和生活中应该更多的使用linux
绝对新手
学以致用
回复