免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2143 | 回复: 5
打印 上一主题 下一主题

[Mail] 请大家帮忙看看我的postfix [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-23 18:37 |只看该作者 |倒序浏览
# telnet 127.0.0.1 25没什么反应!如下图所示:

请大侠们,帮忙斟酌斟酌!不胜感激!

下面是相关的详细讯息!

系统版本:RHEL4.6
防火墙关闭状态。
postfix:postfix-2.5.2
计算机名:weiguo.com
其他相关软件:
cyrus-sasl-2.1.19-14
mysql-server-4.1.20-2.RHEL4.1.0.1
openssl-0.9.7a-43.17.el4_6.1
pam_mysql-0.7RC1

postfix配置如下:
# make -f Makefile.init makefiles CCARGS="-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DHAS_MYSQL -I/usr/include/mysql" AUXLIBS="-lssl -lcrypto  -L/usr/lib/mysql -lmysqlclient -lz -lm -lsasl2"
# make install

--------------------------------
/usr/lib/sasl2/smtpd.conf                        /* 配置如下
++++++++++++++++++++++++++++++++++++++++++
pwcheck_method: saslauthd
mech_list: plain login
++++++++++++++++++++++++++++++++++++++++++


--------------------------------
man.cf                                                    /* 相关配置
++++++++++++++++++++++++++++++++++++++++++
myhostname = weiguo.com
mydomain = weiguo.com
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
home_mailbox = Maildir/
mailbox_transport = cyrus
fallback_transport = cyrus
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no
virtual_maps = hash:/etc/postfix/virtual.mysql:/etc/postfix/virtual.mysql


# For SASL
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = ''
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
        check_recipient_access mysql:/etc/postfix/filter.mysql,
        reject_invalid_hostname,
        reject_non_fqdn_hostname,
        reject_unknown_sender_domain,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unknown_recipient_domain,
        reject_unauth_pipelining,
        reject_unauth_destination,
        permit

# For TLS
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_tls_cert_file = /etc/postfix/smtp-cert.pem
smtp_tls_key_file = /etc/postfix/smtp-key.pem
smtp_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
smtp_use_tls = yes
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/smtp-cert.pem
smtpd_tls_key_file = /etc/postfix/smtp-key.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/var/run/smtpd_tls_session_cache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

[ 本帖最后由 Weikey 于 2008-6-24 08:33 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-06-26 09:07 |只看该作者
有没有用虚拟域呢?还是刚刚安装了postfix?

不过看你的配置文件是没有启用虚拟域。

配置文件似乎不完整。

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
3 [报告]
发表于 2008-06-26 16:14 |只看该作者
/etc/postfix/filter.mysql

这个文件呢?

论坛徽章:
0
4 [报告]
发表于 2008-06-26 17:21 |只看该作者
查看一下maillog

论坛徽章:
0
5 [报告]
发表于 2008-06-26 17:54 |只看该作者
原帖由 zenglingping 于 2008-6-26 09:07 发表
有没有用虚拟域呢?还是刚刚安装了postfix?

不过看你的配置文件是没有启用虚拟域。

配置文件似乎不完整。




我觉得就算没有虚拟域也可以用啊!

论坛徽章:
0
6 [报告]
发表于 2008-06-26 17:55 |只看该作者
原帖由 ruochen 于 2008-6-26 16:14 发表
/etc/postfix/filter.mysql

这个文件呢?



有这个文件呢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP