sendmail masquerading

sendmail masquerading

Post by David » Sun, 13 Nov 2005 07:27:14



Hi all.

I'm trying to configure sendmail as masquerading server for my lan.

It works fine but all mail I try to send with "mail" command will send


this is my sendmail.mc

....
FEATURE(always_add_domain)dnl
FEATURE(`masquerade_entire_domain')
FEATURE(`masquerade_envelope')
FEATURE(`allmasquerade')
MASQUERADE_AS(`domain.com.')
MASQUERADE_DOMAIN(`domain.com.')
MASQUERADE_AS(domain.com)
....

now I use the m4 macro

m4 sendmail.mc > sendmail.cf

and send a mail directly from the host:

I'm reading a lot of documents.. it seems the conf is OK.. but cannot
understand!
Cheers.

 
 
 

sendmail masquerading

Post by Giorgos Keramida » Sun, 13 Nov 2005 09:54:54



> Hi all.

> I'm trying to configure sendmail as masquerading server for my lan.

> It works fine but all mail I try to send with "mail" command will send

> I would like to send mail with a specified existant domain (example:

> this is my sendmail.mc

Not all of it though.

Quote:> ....
> FEATURE(always_add_domain)dnl
> FEATURE(`masquerade_entire_domain')
> FEATURE(`masquerade_envelope')
> FEATURE(`allmasquerade')
> MASQUERADE_AS(`domain.com.')
> MASQUERADE_DOMAIN(`domain.com.')
> MASQUERADE_AS(domain.com)
> ....

You have some duplicates there and a few missing quotes.

Quote:> now I use the m4 macro

> m4 sendmail.mc > sendmail.cf

Can you show us your entire "sendmail.mc" file?

 
 
 

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. Netscape Help

3. sendmail masquerade

4. AIX 4.3.1, IBM 6208 Fast Wide SCSI, Seagate Ultra Wide 9.1 Gb drive?

5. Sendmail masquerade questions

6. OpenBSD 2.2 on Twinhead SS2 (sun sparc clone)

7. Sendmail Masquerading headers

8. Q: RS-232 output bit number 8 is zeroed.

9. Sendmail Masquerading Problems

10. Sendmail Masquerading (Error 553)

11. Sendmail masquerading

12. Sendmail masquerading _sometimes_ with dynamic IP