Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Aug 2009 23:29:21 -0500
From:      Jeffrey Goldberg <jeffrey@goldmark.org>
To:        fbsd@dannysplace.net
Cc:        questions@freebsd.org
Subject:   Re: Sendmail Masqurading and root mails
Message-ID:  <BEC920DC-7D86-46A0-AE65-B02CE583D628@goldmark.org>
In-Reply-To: <4A763BDD.2010308@dannysplace.net>
References:  <4A763BDD.2010308@dannysplace.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 2, 2009, at 8:22 PM, Danny Carroll wrote:

> MASQUERADE_AS(`mypublicdomain.com')dnl
> FEATURE(masquerade_envelope)dnl
> MASQUERADE_DOMAIN(beasie.lan)dnl
>
> Recompiled the cf files and restarted sendmail.
>
> Here is the kicker.  If I log in as a normal user it masquerades just
> fine.
>
> If I simply "su -"  to root, the masquerading works fine and the  
> mail is
> sent as the original logged in user.
>
> But if I log in as root via the console then it does not alter the  
> messages.

I found the answer to your problem here:

  http://www.grok.org.uk/docs/smroot.html


The file that is being included which has the

   EXPOSED_USER(`root')

line lives at

  /usr/share/sendmail/cf/domain/generic.m4

Just make a copy of that file, call it beasie.m4, remove the  
"EXPOSE_USER" directive from your copy and then change

  DOMAIN(generic)

to

  DOMAIN(beasie)

in your mail .mc file.

Cheers,

-j




-- 
Jeffrey Goldberg                        http://www.goldmark.org/jeff/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BEC920DC-7D86-46A0-AE65-B02CE583D628>