From owner-freebsd-questions Fri Mar 15 21:32:31 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tomts16-srv.bellnexxia.net (tomts16.bellnexxia.net [209.226.175.4]) by hub.freebsd.org (Postfix) with ESMTP id 04EF337B417 for ; Fri, 15 Mar 2002 21:32:28 -0800 (PST) Received: from xena.gsicomp.on.ca ([65.95.178.46]) by tomts16-srv.bellnexxia.net (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020316053227.EHDE8059.tomts16-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sat, 16 Mar 2002 00:32:27 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.3/8.11.1) with SMTP id g2G5KvK35839; Sat, 16 Mar 2002 00:20:57 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <004101c1ccab$f510aff0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Jon Larssen" , References: Subject: Re: Sendmail to company mailserver, how? Date: Sat, 16 Mar 2002 00:32:25 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 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 > Hello, > > I'be banging my head against a wall for several days with Sendmail. I have > this box working as a router, the company mail server is another box. Now, > I'd like to send email from the routerbox to mailserver (like the daily > security reports). What should be the sendmail.cf options to this? > > I have already disabled sendmail in rc.conf, since I don't need the daemon > running in this box. Do I have to disable the local mailer? All important system mail is sent to 'root' (or an alias that maps to root). All you need to do is add an alias in /etc/mail/aliases that forwards all 'root' mail to 'user@companymail.com'. You can leave sendmail disabled, and you don't need to touch sendmail.cf. I do this for all of the FreeBSD-based NAT/Firewall boxes I deploy at client sites, and it's wonderful coming in to work in the morning and seeing status reports for all of my boxen. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message