From owner-freebsd-questions@FreeBSD.ORG Fri Feb 25 16:11:30 2005 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 B895216A4CE for ; Fri, 25 Feb 2005 16:11:30 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id D906743D5F for ; Fri, 25 Feb 2005 16:11:29 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j1PGBLKG020698; Fri, 25 Feb 2005 18:11:21 +0200 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j1PGBRIY056839; Fri, 25 Feb 2005 18:11:27 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)j1PGBRva056838; Fri, 25 Feb 2005 18:11:27 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 25 Feb 2005 18:11:27 +0200 From: Giorgos Keramidas To: Ken Hawkins Message-ID: <20050225161127.GB55686@orion.daedalusnetworks.priv> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-questions@freebsd.org Subject: Re: complete rookie sendmail question 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: Fri, 25 Feb 2005 16:11:30 -0000 On 2005-02-25 11:03, Ken Hawkins wrote: > first.... thank you all for the invaluable amount of info and > resorses that flow through this mail list.. I hope to one day > contribute more than I take away. > > that said This is what is happening. I have a webserver > 'web1.foo.com' that is not the mailserver for foo.com (that is > mail.foo.com). /var/log/maillog has errors like: > > Feb 25 07:34:09 web1 sm-mta[98913]: j1PDTdTd098790: > to=, ctladdr= (1002/1002), > delay=00:04:30, xdelay=00:00:00, mailer=esmtp, pri=120427, > relay=mail.foo.com. [64.73.41.34], dsn=4.0.0, > stat=Deferred: Connection refused by mail.foo.com. Is mail.foo.com running an MTA? Does the setup of the MTA, the firewall, whatever else runs on mail.foo.com allow connections from your web1.foo.com host? > how can i configure sendmail for send out mail as foo.com and NOT > web1.foo.com? is this possible? This is probably a job of the MTA running on mail.foo.com, which should probably have the option: MASQUERADE_AS(`foo.com') MASQUERADE_DOMAIN(`foo.com') If it doesn't already, that is. Handling the masquerading of outgoing email in one central place (the MTA setup of mail.foo.com) is much preferable, since you only have to update ONE place whenever you feel like changing the MASQUERADE_AS option. - Giorgos