免费注册 查看新帖 |

Chinaunix

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

[Mail] sendmail 8.13.8 smtp作为client认证问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-25 16:43 |只看该作者 |倒序浏览
我把垃圾suse 9.1升级成为垃圾suse 10.1,sendmail也从8.12.10升级到8.13.8了。突然发现smtp 认证通不过了,配置文件没有任何更改,就是不能通过isp 的smtp 转发邮件出去。
sendmail.cf中包含:

DSsmtp:auth.mail.onlinehome.de.

'Kauthinfo hash -o /etc/mail/auth/auth-info'

'O AuthMechanisms=login plain'

/etc/mail/auth/auth-info包含:
AuthInfo:auth.mail.onlinehome.de "P:passwd" "U:user"
(其他各种组合我都试过)

出错信息:
sendmail[32372]: k7P8T6Ia032367: to=<bss03arg@studserv.uni-leipzig.de>, ctladdr=<test@htg-net.dyndns.de> (1000/100), delay=00:00:08, xdelay=00:00:05, mailer=esmtp, pri=120341, relay=auth.mail.onlinehome.de. [212.227.15.164], dsn=5.1.1, stat=User unknown
Aug 25 10:29:17 htg-sn sendmail[32372]: k7P8T6Ia032367: k7P8THIa032372: DSN: User unknown
Aug 25 10:29:17 htg-sn sendmail[32372]: k7P8THIa032372: to=<test@htg-net.dyndns.de>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31615, dsn=2.0.0, stat=Sent
Aug 25 10:29:17 htg-sn sendmail[32372]: k7P8T6Ia032367: k7P8THIb032372: postmaster notify: User unknown
Aug 25 10:29:17 htg-sn sendmail[32372]: k7P8THIb032372: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent

好象sendmail根本就没有管/etc/mail/auth/的信息。
垃圾系统就是好,这下suse+sendmail,垃圾distribution + 垃圾mta =我想跳楼!
大家帮忙,嘿嘿!

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
2 [报告]
发表于 2006-08-25 16:54 |只看该作者

  1. Providing SMTP AUTH Data when sendmail acts as Client
  2. -----------------------------------------------------

  3. If sendmail acts as client, it needs some information how to
  4. authenticate against another MTA.  This information can be provided
  5. by the ruleset authinfo or by the option DefaultAuthInfo.  The
  6. authinfo ruleset looks up {server_name} using the tag AuthInfo: in
  7. the access map.  If no entry is found, {server_addr} is looked up
  8. in the same way and finally just the tag AuthInfo: to provide
  9. default values.  Note: searches for domain parts or IP nets are
  10. only performed if the access map is used; if the authinfo feature
  11. is used then only up to three lookups are performed (two exact
  12. matches, one default).

  13. Note: If your daemon does client authentication when sending, and
  14. if it uses either PLAIN or LOGIN authentication, then you *must*
  15. prevent ordinary users from seeing verbose output.  Do NOT install
  16. sendmail set-user-ID.  Use PrivacyOptions to turn off verbose output
  17. ("goaway" works for this).

  18. Notice: the default configuration file causes the option DefaultAuthInfo
  19. to fail since the ruleset authinfo is in the .cf file. If you really
  20. want to use DefaultAuthInfo (it is deprecated) then you have to
  21. remove the ruleset.
  22. The RHS for an AuthInfo: entry in the access map should consists of a
  23. list of tokens, each of which has the form: "TDstring" (including
  24. the quotes).  T is a tag which describes the item, D is a delimiter,
  25. either ':' for simple text or '=' for a base64 encoded string.
  26. Valid values for the tag are:

  27.         U       user (authorization) id
  28.         I       authentication id
  29.         P       password
  30.         R       realm
  31.         M       list of mechanisms delimited by spaces

  32. Example entries are:

  33. AuthInfo:other.dom "U:user" "I:user" "P:secret" "R:other.dom" "M:DIGEST-MD5"
  34. AuthInfo:host.more.dom "U:user" "P=c2VjcmV0"

  35. User id or authentication id must exist as well as the password.  All
  36. other entries have default values.  If one of user or authentication
  37. id is missing, the existing value is used for the missing item.
  38. If "R:" is not specified, realm defaults to $j.  The list of mechanisms
  39. defaults to those specified by AuthMechanisms.

  40. Since this map contains sensitive information, either the access
  41. map must be unreadable by everyone but root (or the trusted user)
  42. or FEATURE(`authinfo') must be used which provides a separate map.
  43. Notice: It is not checked whether the map is actually
  44. group/world-unreadable, this is left to the user.

复制代码

论坛徽章:
0
3 [报告]
发表于 2006-08-25 17:22 |只看该作者
这个我都读过了,照上面设置,没有用。关键是8.12能验证成功,8.13不行,十分奇怪。
auth-info 中,各种组合,都尝试过了
AuthInfo:auth.mail.onlinehome.de "M:PLAIN" "P:passwd" "U:user" "I:user" "R:auth.mail.onlinehome.de"
AuthInfo:auth.mail.onlinehome.de "M:DIGEST-MD5" "P:password" "U:user" "I:user" "R:auth.mail.onlinehome.de"
AuthInfo:auth.mail.onlinehome.de "P:passwd" "U:user"
AuthInfo:auth.mail.onlinehome.de "U:user" "P:passwd"

[ 本帖最后由 cnchun 于 2006-8-25 17:23 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP