From owner-freebsd-questions@FreeBSD.ORG Mon Sep 24 14:03:32 2007 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 997F516A420 for ; Mon, 24 Sep 2007 14:03:32 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 0DFA413C43E for ; Mon, 24 Sep 2007 14:03:31 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile.ondsl.gr [83.235.244.135]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id l8OE2sEn015010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 24 Sep 2007 17:03:08 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l8OE2cbD003855; Mon, 24 Sep 2007 17:02:53 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l8OE2boD003854; Mon, 24 Sep 2007 17:02:37 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 24 Sep 2007 17:02:37 +0300 From: Giorgos Keramidas To: Duane Winner Message-ID: <20070924140237.GD2880@kobe.laptop> References: <46F7AED3.4010305@dwinner.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46F7AED3.4010305@dwinner.net> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.967, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.43, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: urgent sendmail question 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, 24 Sep 2007 14:03:32 -0000 On 2007-09-24 08:34, Duane Winner wrote: > Hello, > > I know if I poked around enough, I could find the answer, but am up > against the wall here and need a quick solution. I just discovered a > major problem with my sendmail configurations. > > Just recently started consolidating servers by virtual hosting apache, > several servers on one box. Problem is that the web app sometimes send > automated emails to users, and now they're getting bounced back because > the emails are going out with "@fakename.mydomain.org" instead of > "@mydomain.org". > > Since there is no DNS entry for "fakename.mydomain.org", recipient's > mail servers are rejecting these emails from my servers. > > So I have an apache box, "fakename.mydomain.org", hosting 5 virtual > hosts with unique domain names that do have public dns records. > > I need to all outbound mail appear to be coming from "user@mydomain.org" > or "user@virtualhostdomainname.org", as long as it can be resolved by > the remote mail server. > > My sendmails are configured to listen on 127.0.0.1 only, since I'm using > to send, not receive. See my recent posts on comp.unix.bsd.freebsd.misc about rewriting email addresses for outgoing email: http://groups.google.com/group/comp.unix.bsd.freebsd.misc/msg/db81b1143946d420 http://groups.google.com/group/comp.unix.bsd.freebsd.misc/msg/562dc23fca32c37c This is _exactly_ what you want to do, and the original poster of that thread is also running Sendmail on 127.0.0.1 only.