免费注册 查看新帖 |

Chinaunix

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

[Mail] 问题在哪?freebsd+sendmail+SMTP 认证,adsl用户不能发送邮件给自己,其他都正常! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-24 11:05 |只看该作者 |倒序浏览
麻烦大家帮忙看看,adsl 用户无法发送邮件给自己,而给其他邮件地址(包括同域名的用户,以及域以外的邮箱)
都正常!

环境如下:
freebsd 7.2 +sendmail +SASL2   设定好了 smtp 认证,而且ADSL用户可以发送邮件给域名内其他用户,
域外其他邮箱,这些都可以,可唯独不能发给自己,下面是outlook express 错误提示,麻烦大家帮忙看看,谢谢!

-------------------------

由于服务器拒绝收件人之一,无法发送邮件。被拒绝的电子邮件地址是“testdg1@xxx.xxx.xxx”。 主题 'say hello',
帐户: 'xxx.xxx.xxx', 服务器: 'xxx.xxx.xxx', 协议: SMTP, 服务器响应: '551 User not local;
please try <forward-path>', 端口: 25, 安全(SSL): 否, 服务器错误: 551, 错误号: 0x800CCC79

----------------------

我在outlook 中设定好testdg1@xxx.xxx.xxx邮箱,发送给比如 aaa@xxx.xxx.xxx,或 bbb@hotmail.com等都正常
而给 自己 testdg1@xxx.xxx.xxx就出现上面提示!

[ 本帖最后由 forever_best 于 2009-9-24 16:20 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-09-24 11:08 |只看该作者

回复 #1 forever_best 的帖子

下面内容是我 /usr/share/sendmail/cf/cf/freebsd.mc 内容,我是用
m4 ../m4/cf.m4    freebsd.mc  > /etc/mail/sendmail.cf
来建立  /etc/mail/sendmail.cf 文件的 ,
然后重新启动sendmail !


divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
#        The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#        This product includes software developed by the University of
#        California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#

#
#  This is a generic configuration file for FreeBSD 5.X and later systems.
#  If you want to customize it, copy it to a name appropriate for your
#  environment and do the modifications there.
#
#  The best documentation for this .mc file is:
#  /usr/share/sendmail/cf/README or
#  /usr/src/contrib/sendmail/cf/README
#

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.3.4.1 2009/04/15 03:14:26 kensmith Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)

FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl       your permission.
dnl FEATURE(relay_based_on_MX)

dnl DNS based black hole lists
dnl --------------------------------
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl http://www.google.com/Top/Comput ... il/Spam/Blacklists/

dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', ``"550 Mail from " $&{client_addr} " rejected, see http://mail-abuse.org/cgi-bin/lookup?" $&{client_addr}'')

dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `your.isp.mail.server')

dnl Uncomment the first line to change the location of the default
dnl /etc/mail/local-host-names and comment out the second line.
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)

论坛徽章:
0
3 [报告]
发表于 2009-09-25 10:25 |只看该作者
晕,难道你自己发自己还上了国际出口?这是GFW的典型提示。

论坛徽章:
0
4 [报告]
发表于 2009-09-25 10:26 |只看该作者
用tls发信或在sendmail中设置允许多端口通信,换个端口发信看看。

论坛徽章:
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-25 10:29 |只看该作者
而给其他邮件地址(包括同域名的用户,以及域以外的邮箱)
都正常!

这个不就可以了么?
有很多自己给自己发信的必要么?

论坛徽章:
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-25 17:44 |只看该作者
最简单的是让adsl用户用webmail来访问邮件服务

论坛徽章:
0
7 [报告]
发表于 2009-10-10 08:34 |只看该作者
原帖由 forever_best 于 2009-9-25 16:15 发表
还有由于上面主管担心邮件过滤时误判,所以把自己的域设定为不扫描!
结果外面垃圾邮件仿冒自己域内的账户发过来的垃圾邮件也没做扫描识别为垃圾邮件,请问这要怎么处理?

这个做认证啊,本域发信需要认证就搞定了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP