From owner-freebsd-questions@FreeBSD.ORG Mon May 28 11:49:44 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC2BB106564A for ; Mon, 28 May 2012 11:49:44 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id A32598FC0C for ; Mon, 28 May 2012 11:49:44 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1SYySF-0002cW-RB for freebsd-questions@freebsd.org; Mon, 28 May 2012 12:49:43 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SYySF-0000rw-NS for freebsd-questions@freebsd.org; Mon, 28 May 2012 12:49:43 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id q4SBnhJS030726 for ; Mon, 28 May 2012 12:49:43 +0100 (BST) (envelope-from mexas@bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id q4SBnhFE030725 for freebsd-questions@freebsd.org; Mon, 28 May 2012 12:49:43 +0100 (BST) (envelope-from mexas@bris.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bris.ac.uk using -f Date: Mon, 28 May 2012 12:49:43 +0100 From: Anton Shterenlikht To: freebsd-questions@freebsd.org Message-ID: <20120528114943.GA30701@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: sendmail, masquerading, exposed root? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2012 11:49:45 -0000 I've a problem with sendmail setup, for which I have no satisfactory solution. I've several hosts, all on the university network. I'd like to forward all root's mail from all these hosts to my personal email. The problem seems to be with the From field. If I leave the root exposed, the From field looks e.g. root@mech-anton240.men.bris.ac.uk, which is rejected by the university mailer, because it has no knowledge of this address. The only solution I've found is not to expose root, and then masquerade all From to @bris.ac.uk, which is acceptable, but then I get root mail from all my hosts always originating at root@bris.ac.uk, so I have trouble distinguishing between individual hosts. I solve this by setting the hostname in the subject like. But I'm mostly worried about not exposing root. Plus the network people hate to see root@bris.ac.uk anywhere on the network. Can anybody suggest a better solution? Thanks -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423