首页 | 资讯动态 | linux基础 | 系统管理 | 网络管理 | 编程开发 | linux数据库 | 服务器技术 | linux相关 | linux认证 | 嵌入式 | 下载中心 | 专题 | linux招聘 | HR | 镜像
OKLinux中文技术站
·设为首页
·加入收藏
·联系我们
系统管理: 中文环境 系统管理 桌面应用 内核技术 | Linux基础: 基础入门 安装配置 常用命令 经验技巧 软件应用 | Linux数据库: Mysql Postgre Oracle DB2 Sybase other
网络管理: 网络安全 网络应用 Linux服务器 环境配置 黑客安全 | 编程开发: PHP CC++ Python Perl Shell 嵌入式开发 java jsp | PHP技术: PHP基础 PHP技巧 PHP应用 PHP文摘
搜索中心 Linux招聘 Linux专题 Apache | Linux相关: 硬件相关 Linux解决方案 Linux认证 企业应用 其它Unix | 相关下载: 资料下载 参考手册 开发工具 服务器类 软路由 其它
 技术搜索:
会员中心 注册会员 高级搜索  
  → 当前位置:首页>网络管理>linux服务器>正文

完美的服务器--Ubuntu Jaunty Jackalope (Ubuntu 9.04) ISPconfig设置

http://www.oklinux.cn  2009-04-27  Ubuntu社区    会员收藏  游客收藏  【 】 
您查看的文章来源于http://www.oklinux.cn
15,安装使用SMTP-AUTH和TLS的Postfix
为了做到这些应该这样:
aptitude install postfix libsasl2-2 sasl2-bin libsasl2-modules procmail
你将被问及
General type of mail configuration: <-- Internet Site
System mail name: <-- server1.example.com
如实回答 然后运行
dpkg-reconfigure postfix

你将再次被问及
General type of mail configuration: <-- Internet Site
System mail name: <-- server1.example.com
Root and postmaster mail recipient: <-- [blank]
Other destinations to accept mail for (blank for none): <-- server1.example.com, localhost.example.com, localhost.localdomain, localhost
Force synchronous updates on mail queue? <-- No
Local networks: <-- 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
Use procmail for local delivery? <-- Yes
Mailbox size limit (bytes): <-- 0
Local address extension character: <--
Internet protocols to use: <-- all

然后,这样
postconf -e 'smtpd_sasl_local_domain ='
postconf -e 'smtpd_sasl_auth_enable = yes'
postconf -e 'smtpd_sasl_security_options = noanonymous'
postconf -e 'broken_sasl_auth_clients = yes'
postconf -e 'smtpd_sasl_authenticated_header = yes'
postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination'
postconf -e 'inet_interfaces = all'
echo 'pwcheck_method: saslauthd' >> /etc/postfix/sasl/smtpd.conf
echo 'mech_list: plain login' >> /etc/postfix/sasl/smtpd.conf

然后我们创建TLS认证
mkdir /etc/postfix/ssl
cd /etc/postfix/ssl/
openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024

chmod 600 smtpd.key
openssl req -new -key smtpd.key -out smtpd.csr

openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt

openssl rsa -in smtpd.key -out smtpd.key.unencrypted

mv -f smtpd.key.unencrypted smtpd.key
openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650

然后我们配置postfix以启用TLS(保证你使用了正确的主机名)
postconf -e 'myhostname = server1.example.com'

postconf -e 'smtpd_tls_auth_only = no'
postconf -e 'smtp_use_tls = yes'
postconf -e 'smtpd_use_tls = yes'
postconf -e 'smtp_tls_note_starttls_offer = yes'
postconf -e 'smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key'
postconf -e 'smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt'
postconf -e 'smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem'
postconf -e 'smtpd_tls_loglevel = 1'
postconf -e 'smtpd_tls_received_header = yes'
postconf -e 'smtpd_tls_session_cache_timeout = 3600s'
postconf -e 'tls_random_source = dev:/dev/urandom'

文件/etc/postfix/main.cf现在看起来应该像这样
cat /etc/postfix/main.cf

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

共15页: 上一页 [1] [2] [3] [4] [5] [6] [7] [8] 9 [10] [11] [12] [13] [14] [15] 下一页

上一篇:中标软携海龙电子城共促软件正版化   下一篇:微软资助密歇根州立大学开发开源版NFS V4

收藏于收藏夹】 【评论】 【推荐】 【打印】 【关闭
相关文档
·LAMP:RedHat 9下配置APACHE2.0.50 PHP5 MYSQL4.0.20 G
·Linux下LAMP安装配置测试
·实战:用Linux构建高效FTP服务器
·在Fedora 10下面配置SVN服务器
·SAMBA连接过程中的常见错误解析
·Ubuntu下Apache重启错误:Could not reliably determin
·Ubuntu在数据中心服务器上日渐普及
·三种方法实现SAMBA服务随机启动
·RedHat 企业版 5.0下YUM服务器搭建
·SAMBA是Windows与Linux之间的红娘
·Ubuntu 下 PHP 环境快速配置
·服务器虚拟化如何平衡网络安全上的利弊
·强过Win Server!SUSE服务器版初体验
·Oracle融合中间件在Dell服务器上测试创世界纪录
·Solaris10 性能监控 (整体篇)
·Linux-Bind-DNS服务器配置案例
发表评论
密码: 匿名评论
评论内容:

(不超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规)
 
  最新文档
·LAMP:RedHat 9下配置APACHE2.0.50 PHP5
·Linux下LAMP安装配置测试
·实战:用Linux构建高效FTP服务器
·在Fedora 10下面配置SVN服务器
·SAMBA连接过程中的常见错误解析
·Ubuntu下Apache重启错误:Could not rel
·Ubuntu在数据中心服务器上日渐普及
·三种方法实现SAMBA服务随机启动
·RedHat 企业版 5.0下YUM服务器搭建
·SAMBA是Windows与Linux之间的红娘
·Ubuntu 下 PHP 环境快速配置
·服务器虚拟化如何平衡网络安全上的利弊
  阅读排行
·详解远程SHELL下安装配置RedHat ES 5的
·Linux系统下架设APACHE SVN服务器全过
·Linux 下配置vsftp虚拟用户总结
·Linux下用vsftp轻松搭建FTP服务器(修订
·LVS集群学习笔记(NAT\DR\IP tunnel)
·安装大型Linux集群(4):节点安装和 GPFS
·Ubuntu下安装tftp服务器的步骤
·Linux与Linux,Linux与Windows之间使用S
·Linux服务器存储空间巧妙管理
·安装大型Linux集群(1): 简介和硬件配置
·Linux DNS Server -bind 9.5.0 安装配
·Linux平台下安装code::blocks
·Linux下安装Rdesktop远程桌面到Windows
·安装大型Linux集群(2):配置管理服务器
·RedHat Linux AS4 LAMP经典网站搭建实
网摘收藏: