Masquerade the from field using sendmail

Brian Somers brian at
Tue May 21 16:12:21 BST 2002

> On Tue, May 21, 2002 at 03:15:27PM +0100, Mervyn Passmore wrote:
> > I have a 4.5 BSD server that does our transactions, like invoices etc. I
> > would like it to email our customers as the order status changes. I want the
> > message to appear to come from our sales dept, but sendmail uses the
> > server's login and server name. I can alter the 'Reply to', but not the
> > 'From' by sendmail options.
> > 
> > I read that masqerade_as can be set in my sendmail config file, and tried to
> > follow the instructions. My cf directory is empty, so cannot modify and make
> > the .mc file.
> > 
> > Does anyone know how to go about this? Which .mc file should I modify?  Or
> > can I just modify the file?
> Have a look at in /etc/mail.  You'll probably need to add the
> lines:
> FEATURE(`masquerade_envelope')
> In fact, you're probably best off copying to $ and
> changing that instead.
> When you've done your changes, cd into /etc/mail and run 'make'.
> You're probably best off reading the Makefile and README in /etc/mail, as
> I've never used this.  :-)


SENDMAIL_MC=            /etc/mail/$

to /etc/make.conf will ensure that this is built into at 
buildworld time.

> -Dom

Brian <brian at>                    <brian at>
      <>                   <brian@[uk.]>
Don't _EVER_ lose your sense of humour !          <brian@[uk.]>

More information about the Ukfreebsd mailing list