QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 695|回复: 2

求助: 如何不向外部寄件者返回"用户不存在"的错误信息

[复制链接]
发表于 2004-7-22 11:14:24 | 显示全部楼层 |阅读模式
如果收件者不存在, 系统会向寄件者返回错误信息, 这个原是好事, 可是这几个月来很多病毒都会随机仿造地址发来各种病毒邮件, 我如何才能不返回错误提示邮件呢?

我用的是 RedHat Linux 9.0 + fetchmail 6.x, 文中关键地方已做技术处理.

~/.fetchmailrc 内容如下
poll pop.maindomain.org
#poll 202.181.230.106
protocol pop3
localdomains mydomain.org
user mymail-user with pass 1234567890ABCDEabcde to esr * here fetchall


fetchmail 命令行如下(man fetchmail 可知 --nobounce 为不反弹错误信息给寄件人):
#/usr/local/bin/fetchmail --nobounce



有类似错误信息如下, 均是系统自动向该不存在的地址返回本邮件系统"用户不存在"的信息, 白白增加了带宽的消耗, 又增加了系统的不安全性, 还相当于垃圾邮件源(例如寄件者地址后缀伪装成你的邮件域名时).

The original message was received at Thu, 22 Jul 2004 09:38:34 +0800
from localhost.localdomain [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<[email protected]>
    (reason: 550 Unknown local part euii in <[email protected]>)

   ----- Transcript of session follows -----
... while talking to mx01.1and1.com.:
>>> DATA
<<< 550 Unknown local part euii in <[email protected]>
550 5.1.1 <[email protected]>... User unknown
<<< 503 Valid RCPT TO <recipient> must precede DATA

   ----- Original message follows -----

Return-Path: <[email protected]>
Received: from localhost (localhost.localdomain [127.0.0.1])
        by mydomain.org (8.12.8/8.12. with SMTP id i6M1cYuV029375
        for <[email protected]>; Thu, 22 Jul 2004 09:38:34 +0800
Date: Thu, 22 Jul 2004 09:38:34 +0800
Message-Id: <[email protected]>
From: [email protected]
To: [email protected]
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="foo-mani-padme-hum-29189-29187-1090460314"
X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a
        on 127.0.0.1
X-Virus-Status: Clean

--foo-mani-padme-hum-29189-29187-1090460314
Content-Type: text/plain

Some addresses were rejected by the MDA fetchmail forwards to.


--foo-mani-padme-hum-29189-29187-1090460314
Content-Type: message/delivery-status

Reporting-MTA: dns; localhost

Final-Recipient: rfc822; [email protected]
Last-Attempt-Date: Thu, 22 Jul 2004 09:38:34 +0800 (HKT)
Action: failed
Status: 5.1.1
Diagnostic-Code: 550 5.1.1 <[email protected]>... User unknown

--foo-mani-padme-hum-29189-29187-1090460314
Content-Type: text/rfc822-headers

Received: from mydomain.org ([219.130.34.157])
        by ns1.maindomain.org (8.11.6/8.9.3) with ESMTP id i6M1W1u03018
        for <[email protected]>; Thu, 22 Jul 2004 09:32:02 +0800
Message-Id: <[email protected]>
From: [email protected]
To: [email protected]
Subject: Re: <rouno> Information
Date: Thu, 22 Jul 2004 09:32:03 +0800
MIME-Version: 1.0
Content-Type: multipart/mixed;
        boundary="----=_NextPart_000_0012_000031FC.00001AFE"
X-Priority: 3
X-MSMail-Priority: Normal
X-UIDL: Nk("!^>^"!,KZ!!GK)"!

--foo-mani-padme-hum-29189-29187-1090460314--
发表于 2004-7-22 11:29:24 | 显示全部楼层
好象无法避免。
回复

使用道具 举报

 楼主| 发表于 2004-7-26 19:36:37 | 显示全部楼层
原来用RedHat 7.3 的时候没有这种问题出现的. 真是让人头大啊.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-8 03:43 , Processed in 0.036745 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表