From owner-freebsd-questions@FreeBSD.ORG Tue Aug 17 13:36:42 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 7E0AD16A4CE for ; Tue, 17 Aug 2004 13:36:42 +0000 (GMT) Received: from mta08-svc.ntlworld.com (mta08-svc.ntlworld.com [62.253.162.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B84743D3F for ; Tue, 17 Aug 2004 13:36:41 +0000 (GMT) (envelope-from swampdog@ntlworld.com) Received: from sd.swampdog ([80.4.128.81]) by mta08-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20040817133632.TLME512.mta08-svc.ntlworld.com@sd.swampdog> for ; Tue, 17 Aug 2004 14:36:32 +0100 From: SD To: freebsd-questions@freebsd.org Date: Tue, 17 Aug 2004 13:31:46 +0100 User-Agent: KMail/1.6.2 References: <200408141740.58105.malcolm.kay@internode.on.net> <411E6239.7030704@dhumketu.cjb.net> <200408150926.45448.malcolm.kay@internode.on.net> In-Reply-To: <200408150926.45448.malcolm.kay@internode.on.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408171331.47668.swampdog@ntlworld.com> 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: Tue, 17 Aug 2004 13:36:42 -0000 On Sunday 15 August 2004 00:56, Malcolm Kay wrote: > 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. No need. Assuming you do want to reject (trash) the email you can specify multiple return codes to fetchmail.