From owner-freebsd-questions@FreeBSD.ORG Sat Aug 14 23:57:17 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C439816A4CE for ; Sat, 14 Aug 2004 23:57:17 +0000 (GMT) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F35743D2F for ; Sat, 14 Aug 2004 23:57:17 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp137-206.lns1.adl2.internode.on.net [150.101.137.206])i7ENujHY037498; Sun, 15 Aug 2004 09:26:46 +0930 (CST) From: Malcolm Kay Organization: at home To: Shantanoo Date: Sun, 15 Aug 2004 09:26:45 +0930 User-Agent: KMail/1.5.4 References: <200408141740.58105.malcolm.kay@internode.on.net> <411E6239.7030704@dhumketu.cjb.net> In-Reply-To: <411E6239.7030704@dhumketu.cjb.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200408150926.45448.malcolm.kay@internode.on.net> cc: freebsd-questions@freebsd.org Subject: Re: Fetchmail/Sendmail rejects X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Aug 2004 23:57:17 -0000 On Sunday 15 August 2004 04:34, you wrote: > Malcolm Kay wrote: > > I run fetchmail in daemon mode to download > > POP3 mail from my ISP. > > > > Sendmail rejects many messages as for example: > > Aug 14 16:59:33 beta sm-mta[35000]: i7E7DYje035000: > > ruleset=check_mail, arg1=, > > relay=localhost.home [127.0.0.1], reject=451 > > 4.1.8 Domain of sender address fbbjqwvcydimv@lightspeedcredit.com > > does not resolve > > > > I am quite happy to have these rejected but it seems they don't > > get deleted at the ISP end and clog up the mail box, I think > > eventually confusing fetchmail. > > > > Is there some reasonable way of disposing of these messages. I would > > prefer not to download these into my normal user mailbox but I would > > be quite happy to divert them to some pseudo user setup for the > > purpose. I would imagine sendmail can be coaxed into doing this, but > > how? > > > > Responding to 2 or 3 lists using a valid e-mail address means that > > I receive a lot of spam including much with unresolvable addresses. > > have a look at mail/filtermail > I've just downloaded this port and find it quite interesting. However it seems not to offer very much in this particular case as the criteria used are similar to those used by my ISP to reject mail -- I'm able to set the level. But I don't see a way of getting filtermail to reject based on domain name resolution. Others have pointed out that spam filtering in fetchmail can be used to delete mail based on the error code returned by sendmail. It seems it might also be reasonable to change sendmail.cf to issue a 553 error in place of the 451 as the 553 invoking messages are deleted by fetchmail by default. Thanks for the thought and bringing an interesting port to my attention. Malcolm