背景:
阅读新闻
CentOS 6.0安装Postfix+Dovecot+Sasl+OpenWebMail+Httpd+Bind
[日期:2012-04-05] 来源:Linux社区 作者:zh888 [字体:]
配置postfix2.6.6版本
[root@linuxidc sysconfig]# cat /etc/postfix/main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mail.linuxidc.com //修改自己的路径
mydomain = linuxidc.com//修改自己的顶级域名
myorigin = $mydomain
inet_interfaces = all
mydestination = localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.40.0/24//修改自己的ip
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
mail_spool_directory = /var/spool/mail
#mailbox_command = /usr/bin/procmail//这句话启动就发送不了邮件状态为deferred
LOGFILE=/var/log/mail/procmail.log
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
default_process_limit = 50
default_destination_concurrency_limit = 20
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_application_name = smtpd
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,reject_unauth_destination
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
[root@linuxidc ~]# service postfix restart//重新启动postfix服务
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]
[root@linuxidc ~]# chkconfig postfix on//开机启动postfix
测试postfix、dovecot
[root@linuxidc ~]# netstat -altpn|grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 32567/master
tcp 0 48 192.168.40.40:22 192.168.40.41:2577 ESTABLISHED 1613/1
[root@linuxidc ~]# netstat -altpn|grep 110
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 32286/dovecot
[root@linuxidc ~]# netstat -altpn|grep 143
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 32286/dovecot
[root@linuxidc ~]# netstat -altpn|grep 993
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 32286/dovecot
[root@linuxidc ~]# netstat -altpn|grep 995
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 32286/dovecot
相关资讯 CentOS教程
本文评论 查看全部评论 (0)
尊重网上道德,遵守中华人民共和国的各项有关法律法规 承担一切因您的行为而直接或间接导致的民事或刑事法律责任 本站管理人员有权保留或删除其管辖留言中的任意内容 本站有权在网站内转载或引用您的评论 参与本评论即表明您已经阅读并接受上述条款
评论声明
最新资讯