From owner-freebsd-questions Fri Dec 6 8:48:54 2002 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 08A5237B401 for ; Fri, 6 Dec 2002 08:48:53 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CDE743EBE for ; Fri, 6 Dec 2002 08:48:52 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gB6GmkOR002196 for ; Fri, 6 Dec 2002 16:48:46 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gB6GmfBr002195 for questions@FreeBSD.ORG; Fri, 6 Dec 2002 16:48:41 GMT Date: Fri, 6 Dec 2002 16:48:41 +0000 From: Matthew Seaman To: questions@FreeBSD.ORG Subject: Re: Mail Question Message-ID: <20021206164841.GC1630@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , questions@FreeBSD.ORG References: <0B28E102-0938-11D7-8D76-0003937FE8D0@collins-ca.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0B28E102-0938-11D7-8D76-0003937FE8D0@collins-ca.com> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-3.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.43 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Dec 06, 2002 at 11:30:34AM -0500, Chris Collins wrote: > I have a very simple question that I cannot seem to find a simple > answer for. > > I would like to have all SMTP delivered mail to (Box A)relayed to a > external mail server (Box B) for delivery then have the mail delivered > to its destination. > > > User A send mail ---- 10.0.0.10(smtp Box A) ---- relay to 216.X.X.X > (external server Box B) for delivery ---- to destination host. > > Is there any simple way to do this? I am not sure how to relay the mail > from box A to Box B Define box B as the smart host in box A's /etc/mail/`hostname`.mc: define(`SMART_HOST', `boxb.your.dom.ain') If `hostname`.mc doesn't exist, typing 'make' in /etc/mail will generate a default version. After editing that file, simply: cd /etc/mail make install restart-mta to generate the modified sendmail.cf and load it into the sendmail MTA process. Simple enough for you? Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message