sendmail Masquerade

sendmail Masquerade

Post by Tom Harringt » Tue, 08 Apr 1997 04:00:00



I'm having some trouble getting sendmail masquerading to work.

I've got a Linux box connected to an ISP using dynamically-allocated
IP numbers.  With pppd this seems to work very well.  Incoming email
gets downloaded with popclient; outgoing is sent with sendmail.

The problem: My ISP is rmi.net; my Linux box is named 'harry'.  All

is not a valid domain, nor is it likely to become one.  Outgoing
email really needs to be from rmi.net.

I thought I had this solved when I read about sendmail masquerading.
I created an m4 file with the following entries:

MASQUERADE_AS(rmi.net)
FEATURE(masquerade_envelope)

...and created a new config file.  But outgoing email still claims
to be from harry.rmi.net.

I get the feeling I've missed some obvious detail here.  Can this
be done with sendmail?  And if not, what should I be using for
outgoing email?

--

  "Usenet is like a tar pit except it's filled with Hershey's syrup...
 I still haven't decided if it's chocolate or strawberry-banana." -Kibo
-> Fractal Kit:  http://rainbow.rmii.com/~tph/fractalkit/fractal.html <-

 
 
 

sendmail Masquerade

Post by Se » Tue, 08 Apr 1997 04:00:00






  With sendmail nothing is obvious. What you want to do can
be done--you can even masquerade the domain of recipients. Here
is the start of my 4m config, if it helps. Order _IS_ important,
as I have discovered to my immense frustration.
  This masquerades the internal 'home' network as 'outside.com'
  masquerade_envelope should be what you want. masquerade_all
may be more than you want.

Paul

divert(-1)
#
#  This is the prototype file for a configuration that supports nothing
#  but basic SMTP connections via TCP.
#
#  You MUST change the `OSTYPE' macro to specify the operating system
#  on which this will run; this will set the location of various
#  support files for your operating system environment.  You MAY
#  create a domain file in ../domain and reference it by adding a
#  `DOMAIN' macro after the `OSTYPE' macro.  I recommend that you
#  first copy this to another file name so that new sendmail releases
#  will not trash your changes.
#

VERSIONID(`$Revision$')
OSTYPE(Mylinux)
DOMAIN(generic)
EXPOSED_USER(root)

MASQUERADE_AS(outside.com)
MASQUERADE_DOMAIN(home)
MASQUERADE_DOMAIN(outside.com)

FEATURE(local_procmail)
FEATURE(always_add_domain)
FEATURE(masquerade_envelope)
FEATURE(allmasquerade)
FEATURE(nouucp)

define(`confFORWARD_PATH', `$z/.forward')
define(`confCW_FILE', `-o /etc/sendmail.cw')

MAILER(smtp)
MAILER(procmail)