歡迎您光臨本站 註冊首頁

問題在哪?freebsd+sendmail+SMTP 認證,adsl用戶不能發送郵件給自己,其他都正常!

麻煩大家幫忙看看,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 編輯 ]
《解決方案》

回復 #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/Computers/Internet/E-mail/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)
《解決方案》

暈,難道你自己發自己還上了國際出口?這是GFW的典型提示。
《解決方案》

用tls發信或在sendmail中設置允許多埠通信,換個埠發信看看。
《解決方案》

而給其他郵件地址(包括同域名的用戶,以及域以外的郵箱)
都正常!

這個不就可以了么?
有很多自己給自己發信的必要麼?
《解決方案》

回復 #5 ruochen 的帖子

謝謝大家指點!
發給自己的情況是比較少,可還是有啊,問題是向要弄清楚是哪個環節出了問題!
我上網查了許多,看來不少說到的是國家防護牆的問題!
我們公司網路是VPN到香港,所以郵件伺服器的IP 都是香港的!
這樣看來,是不是可以說是繞過國家防火牆了呢?

還有由於上面主管擔心郵件過濾時誤判,所以把自己的域設定為不掃描!
結果外面垃圾郵件仿冒自己域內的賬戶發過來的垃圾郵件也沒做掃描識別為垃圾郵件,請問這要怎麼處理?
謝謝!
《解決方案》

你的網路結構是什麼樣的?
怎麼vpn到香港的?adsl用戶在哪裡?
《解決方案》

最簡單的是讓adsl用戶用webmail來訪問郵件服務
《解決方案》

原帖由 forever_best 於 2009-9-25 16:15 發表 http://bbs2.chinaunix.net/images/common/back.gif
還有由於上面主管擔心郵件過濾時誤判,所以把自己的域設定為不掃描!
結果外面垃圾郵件仿冒自己域內的賬戶發過來的垃圾郵件也沒做掃描識別為垃圾郵件,請問這要怎麼處理?
這個做認證啊,本域發信需要認證就搞定了。

[火星人 ] 問題在哪?freebsd+sendmail+SMTP 認證,adsl用戶不能發送郵件給自己,其他都正常!已經有950次圍觀

http://coctec.com/docs/service/show-post-20433.html