From owner-freebsd-questions@FreeBSD.ORG Sun Jun 22 01:31:52 2003 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 7D1E937B401 for ; Sun, 22 Jun 2003 01:31:52 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B4EC43FB1 for ; Sun, 22 Jun 2003 01:31:51 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h5M8VgSn013300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 Jun 2003 09:31:47 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h5M8Vg3i013299; Sun, 22 Jun 2003 09:31:42 +0100 (BST) (envelope-from matthew) Date: Sun, 22 Jun 2003 09:31:41 +0100 From: Matthew Seaman To: Gary Schenk Message-ID: <20030622083141.GB12760@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Gary Schenk , freebsd-questions@freebsd.org References: <200306211738.05302.gwschenk@socal.rr.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OwLcNYc0lM97+oe1" Content-Disposition: inline In-Reply-To: <200306211738.05302.gwschenk@socal.rr.com> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.4 required=5.0 tests=AWL,BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-questions@freebsd.org Subject: Re: sendmail config for desktop 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: Sun, 22 Jun 2003 08:31:52 -0000 --OwLcNYc0lM97+oe1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 21, 2003 at 05:38:05PM -0700, Gary Schenk wrote: > I am running 4.7-RELEASE. When I installed freeBSD I made the localhost= =20 > name fuzz. >=20 > I am now attempting to get mutt running on this computer. >=20 > I cannot send email to the outside world. My email is rejected because=20 > the doamin part of the address includes the localhost name "fuzz". So=20 > instead of "gwschenk@socal.rr.com", which is what the ISP expects, mail= =20 > is sent out as being from "gwschenk@fuzz.socal.rr.com". You can put: set from=3Dgwschenk@socal.rr.com into your ~/.muttrc which should help, but yes, the general solution is to use sendmail's Masquerade feature. =20 > In one attempt to get things working, I edited freebsd.mc in a couple of= =20 > places. I defined 'SMART_HOST' as my isp, and included a line=20 > MASQUERADE_AS('socal.rr.com'). I did make cf, and make install. After=20 > running sendmail -q it gives me an error message in sendmail.cf "line=20 > 66: unknown configuration line "\n" > MASQUERADE_AS('socal.rr.com') dnl > dnl Dialup users should uncomment and define this appropriately > define(`SMART_HOST', `smtp-server.socal.rr.com') dnl Hmmm.. Try this in your `hostname`.mc. Don't leave a space before the 'dnl' after those entries, and make sure you get the quoting right. With m4(1) you need to use quotes like `this', not like 'this': MASQUERADE_AS(`socal.rr.com')dnl define(`SMART_HOST', `smtp-server.socal.rr.com')dnl In case your screen font doesn't make the distinction clear, the first quote mark ` is character 96, and the second quote mark ' is character 39 -- see ascii(7) for the whole table. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --OwLcNYc0lM97+oe1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+9WltdtESqEQa7a0RAtBoAKCVn7K2aRjij3jKTOuCTBct4u5FQACgjUig RFhXb5XcH/Pq45WI2ATAa40= =l5yM -----END PGP SIGNATURE----- --OwLcNYc0lM97+oe1--