免费注册 查看新帖 |

Chinaunix

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

[Mail] [postfix]使用 客户端发信失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-11 15:30 |只看该作者 |倒序浏览
提示不能通过认证,在本机telnet25端口,显示如下:
[root@RHL27 software]# telnet 172.16.1.138 25
Trying 172.16.1.138...
Connected to RHL27.Server (172.16.1.13.
Escape character is '^]'.


我记得正常情况下应该类似于如下

220 cnc-mx.extmail.net ESMTP Postfix - by XX Inc.


有谁帮忙看一下?

论坛徽章:
0
2 [报告]
发表于 2009-09-11 16:02 |只看该作者
搞定了。
把源码包的sasl-2.1.22重装,重新做过链接,重启postfix就好了。

论坛徽章:
0
3 [报告]
发表于 2009-09-11 16:35 |只看该作者
本帖最后由 lasama 于 2010-12-04 19:01 编辑

想起了我之前的操作
看到cyrus-sasl既有安装rpm包,也有安装源码包,而认证使用的是源码包,觉得那个rpm包的多余了,就把它干掉了。

哪知,一干掉,outlook就发不出邮件了。。。赶紧又把那几个rpm包装上,还是一样;
仔细看了下以前marion兄的安装文档,重新源码编译了一遍cyrus-sasl,链接也重做了,原有的链接删除掉,又重新加载了下库文件,再重启下postfix,可爱的字符终于出现了

[root@RHL27 software]# telnet 172.16.1.138 25
Trying 172.16.1.138...
Connected to RHL27.Server (172.16.1.13.
Escape character is '^]'.
220 Welcome to our mail.xxx.com ESMTP,MyMTA - by abc.com.cn!

论坛徽章:
0
4 [报告]
发表于 2009-09-11 16:36 |只看该作者
以后不敢再随便动生产系统的任何东东了

论坛徽章:
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
5 [报告]
发表于 2009-09-11 18:14 |只看该作者
原帖由 lasama 于 2009-9-11 16:36 发表
以后不敢再随便动生产系统的任何东东了



呵呵
已经上线的系统,万不得已就不要去动
平时监控下就可以鸟

论坛徽章:
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
6 [报告]
发表于 2009-09-11 18:15 |只看该作者
原帖由 lasama 于 2009-9-11 16:35 发表
想起了我之前的操作
看到cyrus-sasl既有安装rpm包,也有安装源码包,而认证使用的是源码包,觉得那个rpm包的多余了,就把它干掉了。

哪知,一干掉,outlook就发不出邮件了。。。赶紧又把那几个rpm包装上,还 ...




我之前有过下面的经历:

1)修改mail服务器的时间后,dovecot当掉了,导致mail服务器暂停了一会
2)由此使升级extmail,也出了点乱子

论坛徽章:
0
7 [报告]
发表于 2009-09-11 22:24 |只看该作者
原帖由 ruochen 于 2009-9-11 18:15 发表




我之前有过下面的经历:

1)修改mail服务器的时间后,dovecot当掉了,导致mail服务器暂停了一会
2)由此使升级extmail,也出了点乱子




咳,明天还要升级postifix、extmil和extman,方案倒是做了一个,希望不要出什么乱子

论坛徽章:
0
8 [报告]
发表于 2009-09-11 22:55 |只看该作者
原帖由 lasama 于 2009-9-11 22:24 发表




咳,明天还要升级postifix、extmil和extman,方案倒是做了一个,希望不要出什么乱子



做系统管理的,要胆大,还要心细。一般不会出问题。做任何变动之前最好备份。

论坛徽章:
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
9 [报告]
发表于 2009-09-12 09:23 |只看该作者
原帖由 lasama 于 2009-9-11 22:24 发表




咳,明天还要升级postifix、extmil和extman,方案倒是做了一个,希望不要出什么乱子



postfix有功能性的需求么?

论坛徽章:
0
10 [报告]
发表于 2009-09-12 16:03 |只看该作者
原帖由 ruochen 于 2009-9-12 09:23 发表



postfix有功能性的需求么?



没有功能性需求,只是把版本从2.6.0升级到2.6.5


问题果然来了,覆盖安装postfix后,smtp又认证不了

#make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/sasl2/include/sasl -I/usr/local/BerkeleyDB/include  -DUSE_TLS -I/usr/local/ssl/include/openssl ' 'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -L/usr/local/sasl2/lib -lsasl2 -L/usr/local/BerkeleyDB/lib -L/usr/local/ssl/lib -lssl -lcrypto'
#make
#make install


/bin/sh postfix-install

    Warning: if you use this script to install Postfix locally,
    this script will replace existing sendmail or Postfix programs.
    Make backups if you want to be able to recover.

    Before installing files, this script prompts you for some definitions.
    Most definitions will be remembered, so you have to specify them
    only once. All definitions should have a reasonable default value.

Please specify the prefix for installed file names. Specify this ONLY
if you are building ready-to-install packages for distribution to other
machines.
install_root: [/]

Please specify a directory for scratch files while installing Postfix. You
must have write permission in this directory.
tempdir: [/root/software/postfix-2.6.5] /tmp

Please specify the final destination directory for installed Postfix
configuration files.
config_directory: [/etc/postfix]

Please specify the final destination directory for installed Postfix
administrative commands. This directory should be in the command search
path of adminstrative users.
command_directory: [/usr/sbin]

Please specify the final destination directory for installed Postfix
daemon programs. This directory should not be in the command search path
of any users.
daemon_directory: [/usr/libexec/postfix]

Please specify the final destination directory for Postfix-writable
data files such as caches or random numbers. This directory should not
be shared with non-Postfix software.
data_directory: [/var/lib/postfix]

Please specify the destination directory for the Postfix HTML
files. Specify "no" if you do not want to install these files.
html_directory: [no]

Please specify the owner of the Postfix queue. Specify an account with
numerical user ID and group ID values that are not used by any other
accounts on the system.
mail_owner: [postfix]

Please specify the final destination pathname for the installed Postfix
mailq command. This is the Sendmail-compatible mail queue listing command.
mailq_path: [/usr/bin/mailq]

Please specify the destination directory for the Postfix on-line manual
pages. You can no longer specify "no" here.
manpage_directory: [/usr/local/man]

Please specify the final destination pathname for the installed Postfix
newaliases command. This is the Sendmail-compatible command to build
alias databases for the Postfix local delivery agent.
newaliases_path: [/usr/bin/newaliases]

Please specify the final destination directory for Postfix queues.
queue_directory: [/var/spool/postfix]

Please specify the destination directory for the Postfix README
files. Specify "no" if you do not want to install these files.
readme_directory: [no]

Please specify the final destination pathname for the installed Postfix
sendmail command. This is the Sendmail-compatible mail posting interface.
sendmail_path: [/usr/sbin/sendmail]

Please specify the group for mail submission and for queue management
commands. Specify a group name with a numerical group ID that is
not shared with other accounts, not even with the Postfix mail_owner
account. You can no longer specify "no" here.
setgid_group: [postdrop]
Updating /usr/libexec/postfix/anvil...
Updating /usr/libexec/postfix/bounce...
Updating /usr/libexec/postfix/cleanup...
Updating /usr/libexec/postfix/discard...
Updating /usr/libexec/postfix/error...
Updating /usr/libexec/postfix/flush...
Updating /usr/libexec/postfix/local...
Skipping /usr/libexec/postfix/main.cf...
Skipping /usr/libexec/postfix/master.cf...
Updating /usr/libexec/postfix/master...
Updating /usr/libexec/postfix/oqmgr...
Updating /usr/libexec/postfix/pickup...
Updating /usr/libexec/postfix/pipe...
Skipping /usr/libexec/postfix/post-install...
Skipping /usr/libexec/postfix/postfix-files...
Skipping /usr/libexec/postfix/postfix-script...
Skipping /usr/libexec/postfix/postfix-wrapper...
Updating /usr/libexec/postfix/postmulti-script...
Updating /usr/libexec/postfix/proxymap...
Updating /usr/libexec/postfix/qmgr...
Updating /usr/libexec/postfix/qmqpd...
Updating /usr/libexec/postfix/scache...
Updating /usr/libexec/postfix/showq...
Updating /usr/libexec/postfix/smtp...
Updating /usr/libexec/postfix/smtpd...
Updating /usr/libexec/postfix/spawn...
Updating /usr/libexec/postfix/tlsmgr...
Updating /usr/libexec/postfix/trivial-rewrite...
Updating /usr/libexec/postfix/verify...
Updating /usr/libexec/postfix/virtual...
Updating /usr/libexec/postfix/nqmgr...
Updating /usr/libexec/postfix/lmtp...
Updating /usr/sbin/postalias...
Updating /usr/sbin/postcat...
Updating /usr/sbin/postconf...
Updating /usr/sbin/postfix...
Updating /usr/sbin/postkick...
Updating /usr/sbin/postlock...
Updating /usr/sbin/postlog...
Updating /usr/sbin/postmap...
Updating /usr/sbin/postmulti...
Updating /usr/sbin/postsuper...
Updating /usr/sbin/postdrop...
Updating /usr/sbin/postqueue...
Updating /usr/sbin/sendmail...
Skipping /usr/bin/newaliases...
Skipping /usr/bin/mailq...
Skipping /etc/postfix/LICENSE...
Skipping /etc/postfix/TLS_LICENSE...
Skipping /etc/postfix/access...
Skipping /etc/postfix/aliases...
Skipping /etc/postfix/bounce.cf.default...
Skipping /etc/postfix/canonical...
Skipping /etc/postfix/generic...
Skipping /etc/postfix/header_checks...
Updating /etc/postfix/main.cf.default...
Skipping /etc/postfix/main.cf...
Skipping /etc/postfix/makedefs.out...
Skipping /etc/postfix/master.cf...
Skipping /etc/postfix/relocated...
Skipping /etc/postfix/transport...
Skipping /etc/postfix/virtual...
Skipping /usr/local/man/man1/mailq.1...
Skipping /usr/local/man/man1/newaliases.1...
Skipping /usr/local/man/man1/postalias.1...
Skipping /usr/local/man/man1/postcat.1...
Skipping /usr/local/man/man1/postconf.1...
Skipping /usr/local/man/man1/postdrop.1...
Skipping /usr/local/man/man1/postfix.1...
Skipping /usr/local/man/man1/postkick.1...
Skipping /usr/local/man/man1/postlock.1...
Skipping /usr/local/man/man1/postlog.1...
Skipping /usr/local/man/man1/postmap.1...
Skipping /usr/local/man/man1/postmulti.1...
Skipping /usr/local/man/man1/postqueue.1...
Skipping /usr/local/man/man1/postsuper.1...
Skipping /usr/local/man/man1/sendmail.1...
Skipping /usr/local/man/man5/access.5...
Skipping /usr/local/man/man5/aliases.5...
Skipping /usr/local/man/man5/body_checks.5...
Skipping /usr/local/man/man5/bounce.5...
Skipping /usr/local/man/man5/canonical.5...
Skipping /usr/local/man/man5/cidr_table.5...
Skipping /usr/local/man/man5/generic.5...
Skipping /usr/local/man/man5/header_checks.5...
Skipping /usr/local/man/man5/ldap_table.5...
Skipping /usr/local/man/man5/master.5...
Skipping /usr/local/man/man5/mysql_table.5...
Skipping /usr/local/man/man5/nisplus_table.5...
Skipping /usr/local/man/man5/pcre_table.5...
Skipping /usr/local/man/man5/pgsql_table.5...
Updating /usr/local/man/man5/postconf.5...
Skipping /usr/local/man/man5/postfix-wrapper.5...
Skipping /usr/local/man/man5/regexp_table.5...
Skipping /usr/local/man/man5/relocated.5...
Skipping /usr/local/man/man5/tcp_table.5...
Skipping /usr/local/man/man5/transport.5...
Skipping /usr/local/man/man5/virtual.5...
Skipping /usr/local/man/man8/bounce.8...
Updating /usr/local/man/man8/cleanup.8...
Skipping /usr/local/man/man8/anvil.8...
Skipping /usr/local/man/man8/defer.8...
Skipping /usr/local/man/man8/discard.8...
Skipping /usr/local/man/man8/error.8...
Skipping /usr/local/man/man8/flush.8...
Skipping /usr/local/man/man8/lmtp.8...
Updating /usr/local/man/man8/local.8...
Skipping /usr/local/man/man8/master.8...
Skipping /usr/local/man/man8/oqmgr.8...
Skipping /usr/local/man/man8/pickup.8...
Updating /usr/local/man/man8/pipe.8...
Skipping /usr/local/man/man8/proxymap.8...
Skipping /usr/local/man/man8/qmgr.8...
Skipping /usr/local/man/man8/qmqpd.8...
Skipping /usr/local/man/man8/scache.8...
Skipping /usr/local/man/man8/showq.8...
Updating /usr/local/man/man8/smtp.8...
Updating /usr/local/man/man8/smtpd.8...
Skipping /usr/local/man/man8/spawn.8...
Skipping /usr/local/man/man8/tlsmgr.8...
Skipping /usr/local/man/man8/trace.8...
Skipping /usr/local/man/man8/trivial-rewrite.8...
Skipping /usr/local/man/man8/verify.8...
Skipping /usr/local/man/man8/virtual.8...

请ruochen兄帮忙看看

[root@RHL27 software]# telnet 172.16.1.138 25
Trying 172.16.1.138...
Connected to RHL27.Server (172.16.1.138).
Escape character is '^]'.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP