Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2003 09:31:41 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Gary Schenk <gwschenk@socal.rr.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sendmail config for desktop
Message-ID:  <20030622083141.GB12760@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <200306211738.05302.gwschenk@socal.rr.com>
References:  <200306211738.05302.gwschenk@socal.rr.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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 
> name fuzz.
> 
> I am now attempting to get mutt running on this computer.
> 
> I cannot send email to the outside world. My email is rejected because 
> the doamin part of the address includes the localhost name "fuzz". So 
> instead of "gwschenk@socal.rr.com", which is what the ISP expects, mail 
> is sent out as being from "gwschenk@fuzz.socal.rr.com".

You can put:

    set   from=gwschenk@socal.rr.com

into your ~/.muttrc which should help, but yes, the general solution
is to use sendmail's Masquerade feature.

 
> In one attempt to get things working, I edited freebsd.mc in a couple of 
> places. I defined 'SMART_HOST' as my isp, and included a line 
> MASQUERADE_AS('socal.rr.com'). I did make cf, and make install. After 
> running sendmail -q it gives me an error message in sendmail.cf "line 
> 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
-- 
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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+9WltdtESqEQa7a0RAtBoAKCVn7K2aRjij3jKTOuCTBct4u5FQACgjUig
RFhXb5XcH/Pq45WI2ATAa40=
=l5yM
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030622083141.GB12760>