Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 1996 05:03:06 +1000 (EST)
From:      michael butler <imb@scgt.oz.au>
To:        rohit@cs.umd.edu (Rohit Dube)
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: Sendmail question
Message-ID:  <199610091903.FAA28866@asstdc.scgt.oz.au>
In-Reply-To: <199610091743.NAA12781@seine.cs.umd.edu> from Rohit Dube at "Oct 9, 96 01:43:41 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Rohit Dube writes:

> I was wondering if somebody knew of a fix to the /etc/sendmail.cf
> which would force the return path to be user@domain-name instead
> of user@machine-name.domain-name.

Don't make life too hard for yourself .. use the 'm4' files from
/usr/src/sendmail/cf/... my 'mc' files usually read something like ..

divert(-1)
include(`../m4/cf.m4')
VERSIONID(`$Id$')
OSTYPE(bsd4.4)
MASQUERADE_AS(scgt.oz.au)
define(`confCW_FILE', /etc/sendmail.cw)
FEATURE(use_cw_file)
FEATURE(always_add_domain)
MAILER(`local')
MAILER(`smtp')
FEATURE(mailertable)

 .. the 'MASQUERADE_AS' is the one you want.

I then run 'm4 filename.mc >/etc/sendmail.cf', add the relevant domain name
into /etc/sendmail.cw so that it knows that mail to user@do.main is local,
kill and restart sendmail and .. voila !
 
	michael



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