首页 | 资讯动态 | 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

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = server1.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = server1.example.com, localhost.example.com, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter =
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
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

saslauthd用来做认证,我们要做些设置以使它正常工作,因为POSTFIX运行chroot于/var/spool/postfix,我们应该这样:
mkdir -p /var/spool/postfix/var/run/saslauthd
为了激活saslauthd我们必须修改/etc/default/saslauthd这行
:OPTIONS="-c -m /var/run/saslauthd" 成这样 OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r":
vi /etc/default/saslauthd

# Which authentication mechanisms should saslauthd use? (default: pam)
#
# Available options in this Debian package:
# getpwent -- use the getpwent() library function
# kerberos5 -- use Kerberos 5
# pam -- use PAM
# rimap -- use a remote IMAP server
# shadow -- use the local shadow password file
# sasldb -- use the local sasldb database file
# ldap -- use LDAP (configuration is in /etc/saslauthd.conf)
#
# Only one option may be used at a time. See the saslauthd man page
# for more information.
#
# Example: MECHANISMS="pam"
MECHANISMS="pam"

# Additional options for this mechanism. (default: none)
# See the saslauthd man page for information about mech-specific options.
MECH_OPTIONS=""

# How many saslauthd processes should we run? (default: 5)
# A value of 0 will fork a new process for each connection.
THREADS=5

# Other options (default: -c -m /var/run/saslauthd)
# Note: You MUST specify the -m option or saslauthd won't run!
#
# WARNING: DO NOT SPECIFY THE -d OPTION.
# The -d option will cause saslauthd to run in the foreground instead of as
# a daemon. This will PREVENT YOUR SYSTEM FROM BOOTING PROPERLY. If you wish
# to run saslauthd in debug mode, please run it by hand to be safe.
#
# See /usr/share/doc/sasl2-bin/README.Debian for Debian-specific information.
# See the saslauthd man page and the output of 'saslauthd -h' for general
# information about these options.
#
# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
#OPTIONS="-c -m /var/run/saslauthd"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"

将用户postfix加入saal组,(这样postfix才有权限运行saslauthd)
adduser postfix sasl

现在重启服务
/etc/init.d/postfix restart
/etc/init.d/saslauthd start

检查SMTP-AUTH 和 TLS是否工作:
telnet localhost 25

连接后,输入
ehlo localhost
如果能看到
250-STARTTLS

250-AUTH LOGIN PLAIN

共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经典网站搭建实
网摘收藏: