Sendmail masquerading

Sendmail masquerading

Post by Lars-G?ran Andersso » Sat, 03 Jan 2004 20:27:16



I wan't to mail outside my LAN - to the Internet!
But my ISP claims that my "From:" is not of an known domain. Of course
it isn't, it's my local domain.
And therefore I have tried to use the Sendmails "MASQURADE" functions.
Without any success.
I've done it like this:

MASQUERADE_AS(My_ISP_DOMAIN)dnl
MASQURADE_DOMAIN(localhost)
MASQURADE_DOMAIN(localhost.domain)

Now I begin to believe that I totaly missunderstood the use of  
MASQUERADE. Is there any other solution that can work or have I to give
up sendmail.

I'm using tripwire and want it to report to an address outside my LAN.
Otherwise it's easy e.g. with Pine you can set the From-address to
whatever you like and then it work's. But in the case of tripwire I
don't know any other way.

 
 
 

Sendmail masquerading

Post by Buck Turgidso » Sun, 04 Jan 2004 03:49:11


Quote:

> MASQUERADE_AS(My_ISP_DOMAIN)dnl
> MASQURADE_DOMAIN(localhost)
> MASQURADE_DOMAIN(localhost.domain)

I find sendmail to be very difficult, but I managed to get my machine to
send outgoing mail just yesterday.  Do you need to include your email
account with "My_ISP_DOMAIN"?  That's what I did.

This is what I did

define(`SMART_HOST', `[smtp.east.cox.net]')

FEATURE(masquerade_envelope)
MASQUERADE_DOMAIN('smooch.turgidson.com')
FEATURE(masquerade_envelope)
FEATURE(`genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')

Then, create these 2 files:

/etc/mail$ cat genericstable

/etc/mail$ cat generics-domains
smooch.turgidson.com

 
 
 

1. sendmail Masquerade

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 <-

2. Staroffice 4.0 installation

3. sendmail masquerade

4. Elf major-minor shared library

5. Sendmail masquerade questions

6. RedHat 5.0 does not have liloconfig

7. Sendmail Masquerading headers

8. RPC programming on Linux

9. Sendmail Masquerading Problems

10. Sendmail Masquerading (Error 553)

11. Sendmail masquerading _sometimes_ with dynamic IP

12. sendmail masquerade