sendmail config for desktop

Matthew Seaman m.seaman at infracaninophile.co.uk
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 socal.rr.com", which is what the ISP expects, mail 
> is sent out as being from "gwschenk at fuzz.socal.rr.com".

You can put:

    set   from=gwschenk at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030622/311e77e2/attachment.bin


More information about the freebsd-questions mailing list