sendmail config for desktop

Matthew Seaman m.seaman at
Sun Jun 22 01:31:52 PDT 2003

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 at", which is what the ISP expects, mail 
> is sent out as being from "gwschenk at".

You can put:

    set   from=gwschenk at

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 in a couple of 
> places. I defined 'SMART_HOST' as my isp, and included a line 
> MASQUERADE_AS(''). I did make cf, and make install. After 
> running sendmail -q it gives me an error message in "line 
> 66: unknown configuration line "\n"


> dnl Dialup users should uncomment and define this appropriately
> define(`SMART_HOST', `') 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':


    define(`SMART_HOST', `')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.


Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list