From owner-freebsd-questions Tue Apr 21 13:08:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA09224 for freebsd-questions-outgoing; Tue, 21 Apr 1998 13:08:43 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cesit1.unifi.it (cesit1.unifi.it [150.217.1.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA09048 for ; Tue, 21 Apr 1998 20:08:07 GMT (envelope-from ugo@dsi.UNIFI.IT) Received: from aguirre.dsi.unifi.it by CESIT1.UNIFI.IT (PMDF V5.1-10 #23168) with SMTP id <01IW5AM31ITK000GHE@CESIT1.UNIFI.IT> for freebsd-questions@FreeBSD.ORG; Tue, 21 Apr 1998 22:08:33 MET Received: from by aguirre.dsi.unifi.it (4.1/SMI-4.1) id AB15595; Tue, 21 Apr 1998 22:09:43 +0200 Received: from pegasus.home.net (pegasus.home.net [192.168.1.3]) by dsi.unifi.it (8.8.8/8.8.8) with ESMTP id OAA15093; Tue, 21 Apr 1998 14:15:10 +0200 (MET DST envelope-from ugo) Received: (from ugo@localhost) by pegasus.home.net (8.8.8/8.8.7) id OAA14594; Tue, 21 Apr 1998 14:15:09 +0200 (MET DST) Date: Tue, 21 Apr 1998 14:15:09 +0200 (MET DST) From: Ugo Paternostro Subject: Re: DNS Cache+MX+SendMail = Host not found... In-reply-to: To: Doug White Cc: freebsd-questions@FreeBSD.ORG Message-id: Organization: Not an organization MIME-version: 1.0 X-Mailer: XFMail 1.2 [p0] on FreeBSD Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 8bit X-Priority: 3 (Normal) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 20-Apr-98 Doug White wrote about "Re: DNS Cache+MX+SendMail = Host not found...": >> mail hub. All the other machines on the network (3, btw, so not so big >> network...) are configured to send mail to the first one, using sendmail's >> nullclient config. > > I thought you were supposed to use the SmartHost feature for that? I think you may. But I prefer this way, so that I control all mail parameter (e.g. masquerading, canonify and so on) from my mail hub, while all the other hosts are dumb ones. >> Everything works flawlessly, but one case: suppose that the DNS >> maintains in its cache a record to somewhere.some.domain, with an MX >> record pointing to anotherplace.some.domain, but that it has no memory >> of what anotherplace.some.domain is, and you send a mail to >> foo@somewhere.some.domain. > > That isn't the client's problem -- your smart mail host should determine Yes, I know. I'm sorry that I didn't point out this clearly. > this. I don't think that MX records cause address rewriting tho. Well, it seems to do that: the mail bounces back to me with a "host not found" error referring to anotherplace.some.domain (the MX record). What seems strange to me is that sendmail will queue a mail if it cannot resolve its address, but it will complain loudly if it cannot resolve its MX... should'n it simply queue the mail with a "deferred: Name server: anotherplace.some.domain: host name lookup failure" type of error? Is there some configuration option to do that? Please note that I'm tampering with the sendmail .mc file here: I started from /usr/src/usr.sbin/sendmail/cf/cf/freebsd.mc and modified it to suit my need (added a few mailers, mailer & virtuser tables, cw file, GECOS matching and full masquerading, the latter thanks to freebsd that otherwise would reject my mails), but I can't see anything related to queue/direct send. Thanks for your time: I see you have a lot of work here in questions ;-) > Doug White | University of Oregon Bye, UP To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message